From deffd1782ff02afcaf21e8a69d0f35afbb5b887b Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Tue, 17 Sep 2024 17:33:29 +0530 Subject: [PATCH] fixed ingest client assignment in TestSmokeRoles test --- quest_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quest_test.go b/quest_test.go index f7ce55f..a99dcb8 100644 --- a/quest_test.go +++ b/quest_test.go @@ -479,11 +479,13 @@ func TestSmokeRoles(t *testing.T) { queryClient.Username = username queryClient.Password = password if NewGlob.IngestorUrl.String() != "" { - ingestClient := NewGlob.IngestorClient + ingestClient = NewGlob.IngestorClient ingestClient.Username = username ingestClient.Password = password } else { - ingestClient = queryClient + ingestClient = NewGlob.QueryClient + ingestClient.Username = username + ingestClient.Password = password } checkAPIAccess(t, queryClient, ingestClient, NewGlob.Stream, tc.roleName)