From 42b4cfb25bf16304f5b2059cc0e5c5641790ac78 Mon Sep 17 00:00:00 2001 From: Tobias Theel Date: Tue, 5 Nov 2024 10:55:04 +0100 Subject: [PATCH] fix some tests --- client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client_test.go b/client_test.go index cf50285a..205e95ea 100644 --- a/client_test.go +++ b/client_test.go @@ -820,7 +820,7 @@ func Test_LoginClient_UnknownRealm(t *testing.T) { cfg.GoCloak.ClientSecret, "ThisRealmDoesNotExist") require.Error(t, err, "Login shouldn't be successful") - require.EqualError(t, err, "404 Not Found: Realm does not exist: For more on this error consult the server log at the debug level.") + require.EqualError(t, err, "404 Not Found: Realm does not exist") } func Test_GetIssuer(t *testing.T) { @@ -4865,7 +4865,7 @@ func Test_CreateDeleteClientScopeWithMappers(t *testing.T) { cfg.GoCloak.Realm, id, ) - require.EqualError(t, err, "404 Not Found: Could not find client scope: For more on this error consult the server log at the debug level.") + require.EqualError(t, err, "404 Not Found: Could not find client scope") require.Nil(t, clientScopeActual, "client scope has not been deleted") } @@ -6456,7 +6456,7 @@ func Test_CheckError(t *testing.T) { expectedError := &gocloak.APIError{ Code: http.StatusNotFound, - Message: "404 Not Found: Could not find client: For more on this error consult the server log at the debug level.", + Message: "404 Not Found: Could not find client", Type: gocloak.APIErrTypeUnknown, }