Browse Source

test: test admin init with token

pull/406/head
Jerónimo Mendes 2 years ago
parent
commit
ea624540c6
  1. 9
      tests/test_keycloak_admin.py

9
tests/test_keycloak_admin.py

@ -90,6 +90,15 @@ def test_keycloak_admin_init(env):
) )
assert admin.token assert admin.token
token = admin.token
admin = KeycloakAdmin(
server_url=f"http://{env.KEYCLOAK_HOST}:{env.KEYCLOAK_PORT}",
token=token,
realm_name=None,
user_realm_name=None,
)
assert admin.token == token
admin.create_realm(payload={"realm": "authz", "enabled": True}) admin.create_realm(payload={"realm": "authz", "enabled": True})
admin.realm_name = "authz" admin.realm_name = "authz"
admin.create_client( admin.create_client(

Loading…
Cancel
Save