Skip to content

Commit

Permalink
Merge pull request #440 from trepel/keycloak-realm-cleanup
Browse files Browse the repository at this point in the history
Cleanup of Keycloak Realms created for tests
  • Loading branch information
averevki authored Jun 17, 2024
2 parents 7064bbc + 19cc2de commit 1410147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testsuite/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def keycloak(testconfig, blame, skip_or_fail):
cnf["test_user"]["username"],
cnf["test_user"]["password"],
)

request.addfinalizer(info.delete)
info.commit()
return info
except KeycloakAuthenticationError:
Expand Down
5 changes: 4 additions & 1 deletion testsuite/tests/kuadrant/authorino/dinosaur/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def admin_rhsso(blame, keycloak):
)

info.commit()
return info
yield info

# Realm cleanup
info.delete()


@pytest.fixture(scope="module", autouse=True)
Expand Down

0 comments on commit 1410147

Please sign in to comment.