From 95b83276f652f320a8f42d6f4845c261e7668840 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha <131262146+nikhilsinhaparseable@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:34:22 +0530 Subject: [PATCH] fixed ingest client assignment in TestSmokeRoles test (#77) --- 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)