MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / TestDetectTenant_Disabled

Function TestDetectTenant_Disabled

cli/internal/platform/inject_test.go:203–208  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

201}
202
203func TestDetectTenant_Disabled(t *testing.T) {
204 t.Setenv(envDisable, "1")
205 t.Setenv(EnvPlatformToken, cqpdTokenWithURL(t, "https://x.example.com"))
206 _, ok := DetectTenant(context.Background(), "", "")
207 require.False(t, ok, "disable env suppresses detection")
208}
209
210func TestDetectTenant_NoCredentials(t *testing.T) {
211 _, ok := DetectTenant(context.Background(), "", "")

Callers

nothing calls this directly

Calls 2

cqpdTokenWithURLFunction · 0.85
DetectTenantFunction · 0.85

Tested by

no test coverage detected