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:40 AM
Details
keycloak_oidc = <swh.auth.pytest_plugin.KeycloackOpenIDConnectMock object at 0x7f708b0f5f60> 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 0x7f708b0f5f60> input = None def _run_auth_command(command, keycloak_oidc, input=None): server_url = "http://keycloak:8080/keycloak/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 > assert keycloak_oidc.realm_name == realm_name E AssertionError: assert 'SoftwareHeritage' == 'realm-test' E - realm-test E + SoftwareHeritage .tox/py3/lib/python3.7/site-packages/swh/auth/tests/test_cli.py:46: AssertionError