set signed in user namespace in query_test.go
CodeQL checks / Detect whether code changed (push) Has been cancelled Details
CodeQL checks / Analyze (actions) (push) Has been cancelled Details
CodeQL checks / Analyze (go) (push) Has been cancelled Details
CodeQL checks / Analyze (javascript) (push) Has been cancelled Details

This commit is contained in:
PoorlyDefinedBehaviour 2025-10-09 13:55:21 -03:00
parent cc21b92fc6
commit 73f7a357d2
1 changed files with 1 additions and 2 deletions

View File

@ -726,7 +726,6 @@ func TestIntegrationQueryDataWithQSDSClient(t *testing.T) {
// Use the fake caching service for testing.
fakeCachingService := caching.NewFakeOSSCachingService()
fakeCachingService.ReturnHit = false
// fakeCachingService.ReturnQueryResponse = caching.CachedQueryDataResponse{Response: stubbedResponse}
cachingServiceClient := caching.ProvideCachingServiceClient(fakeCachingService, nil)
tc := setup(t, true, testClient, WithCachingServiceClient(cachingServiceClient))
mr := metricRequestWithQueries(t, `{
@ -855,7 +854,7 @@ func setup(t *testing.T, isMultiTenant bool, mockClient clientapi.QueryDataClien
secretStore: ss,
pluginRequestValidator: rv,
queryService: queryService,
signedInUser: &user.SignedInUser{OrgID: 1, Login: "login", Name: "name", Email: "email", OrgRole: identity.RoleAdmin},
signedInUser: &user.SignedInUser{OrgID: 1, Login: "login", Name: "name", Email: "email", OrgRole: identity.RoleAdmin, Namespace: "ns1"},
}
}