From 392b71b351c741cb914883624d9022d169262c7c Mon Sep 17 00:00:00 2001 From: Simone Ferrigno Date: Thu, 3 Aug 2023 18:59:50 +0200 Subject: [PATCH] test: fix auth_flow test and authentication_configs based on KC 22 pre-settings --- tests/test_keycloak_admin.py | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index 0951db3..b878634 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -1869,7 +1869,7 @@ def test_auth_flows(admin: KeycloakAdmin, realm: str): admin.realm_name = realm res = admin.get_authentication_flows() - assert len(res) == 8, res + assert len(res) == 7, res assert set(res[0].keys()) == { "alias", "authenticationExecutions", @@ -2023,7 +2023,7 @@ def test_authentication_configs(admin: KeycloakAdmin, realm: str): # Test list of auth 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") assert res == { diff --git a/tox.ini b/tox.ini index 9fe190a..a829231 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ skipsdist = true envlist = check, apply-check, docs, tests, build, changelog [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 = poetry install --sync