from testcontainer_python_keycloak import KeycloakContainer
def test_keycloak_token():
config = KeycloakContainer()
with config as container:
# creates a realm with a user with same name
result = container.create_realm("foo")
assert result["url"] is not None
# get a access token
token = container.get_access_token(realm="foo", username="foo", password="test")
assert token is not None
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Serviceware/testcontainer-python-keycloak
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published