Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.auth.tests.test_cli::test_auth_remove_token_ok
Failed

TEST RESULT

Run At
Dec 19 2022, 11:24 AM
Details
keycloak_oidc = <swh.auth.pytest_plugin.KeycloackOpenIDConnectMock object at 0x7f9ba5ab9ba8> def test_auth_remove_token_ok(keycloak_oidc): command = ["revoke-token", OIDC_PROFILE["refresh_token"]] > result = _run_auth_command(command, keycloak_oidc) .tox/py3/lib/python3.7/site-packages/swh/auth/tests/test_cli.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ command = ['revoke-token', 'eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJmNjMzMDE5MS01YTU4LTQxMDAtOGIzYS00ZDdlM2U1NjA3MTgi...W5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUifQ.xQYrl2CMP_GQ_TFqhsTz-rTs3WuZz5I37toi1eSsDMI'] keycloak_oidc = <swh.auth.pytest_plugin.KeycloackOpenIDConnectMock object at 0x7f9ba5ab9ba8> input = None def _run_auth_command(command, keycloak_oidc, input=None): server_url = "http://localhost:5080/auth" realm_name = "realm-test" client_id = "client-test" result = runner.invoke( auth, [ "--oidc-server-url", server_url, "--realm-name", realm_name, "--client-id", client_id, *command, ], input=input, ) > assert keycloak_oidc.server_url == server_url E AssertionError: assert 'http://keycl...eycloak/auth/' == 'http://localhost:5080/auth' E - http://localhost:5080/auth E + http://keycloak:8080/keycloak/auth/ .tox/py3/lib/python3.7/site-packages/swh/auth/tests/test_cli.py:45: AssertionError