Browse Source

test: fix auth_flow test and authentication_configs based on KC 22 pre-settings

pull/474/head
Simone Ferrigno 1 year ago
parent
commit
392b71b351
  1. 4
      tests/test_keycloak_admin.py
  2. 2
      tox.ini

4
tests/test_keycloak_admin.py

@ -1869,7 +1869,7 @@ def test_auth_flows(admin: KeycloakAdmin, realm: str):
admin.realm_name = realm admin.realm_name = realm
res = admin.get_authentication_flows() res = admin.get_authentication_flows()
assert len(res) == 8, res
assert len(res) == 7, res
assert set(res[0].keys()) == { assert set(res[0].keys()) == {
"alias", "alias",
"authenticationExecutions", "authenticationExecutions",
@ -2023,7 +2023,7 @@ def test_authentication_configs(admin: KeycloakAdmin, realm: str):
# Test list of auth providers # Test list of auth providers
res = admin.get_authenticator_providers() res = admin.get_authenticator_providers()
assert len(res) == 38
assert len(res) == 35
res = admin.get_authenticator_provider_config_description(provider_id="auth-cookie") res = admin.get_authenticator_provider_config_description(provider_id="auth-cookie")
assert res == { assert res == {

2
tox.ini

@ -4,7 +4,7 @@ skipsdist = true
envlist = check, apply-check, docs, tests, build, changelog envlist = check, apply-check, docs, tests, build, changelog
[testenv] [testenv]
allowlist_externals = poetry, ./test_keycloak_init.sh, black, isort, flake8, codespell
allowlist_externals = poetry, ./test_keycloak_init.sh, black, isort, flake8, codespell, sphinx-build
commands_pre = commands_pre =
poetry install --sync poetry install --sync

Loading…
Cancel
Save