Fixed cloud endpoint test
This commit is contained in:
@@ -1230,7 +1230,7 @@ func TestEngineInitializesCloudProviderDetectors(t *testing.T) {
|
|||||||
for _, det := range e.detectors {
|
for _, det := range e.detectors {
|
||||||
if endpoints, ok := det.(interface{ Endpoints(...string) []string }); ok {
|
if endpoints, ok := det.(interface{ Endpoints(...string) []string }); ok {
|
||||||
id := config.GetDetectorID(det)
|
id := config.GetDetectorID(det)
|
||||||
if len(endpoints.Endpoints()) == 0 && det.Type() != detectorspb.DetectorType_ArtifactoryAccessToken && det.Type() != detectorspb.DetectorType_TableauPersonalAccessToken { // artifactory and tableau does not have any cloud endpoint
|
if len(endpoints.Endpoints()) == 0 && det.Type() != detectorspb.DetectorType_ArtifactoryAccessToken && det.Type() != detectorspb.DetectorType_TableauPersonalAccessToken && det.Type() != detectorspb.DetectorType_DatadogToken { // artifactory and tableau does not have any cloud endpoint and datadog has multiple endpoints
|
||||||
t.Fatalf("detector %q Endpoints() is empty", id.String())
|
t.Fatalf("detector %q Endpoints() is empty", id.String())
|
||||||
}
|
}
|
||||||
count++
|
count++
|
||||||
|
|||||||
Reference in New Issue
Block a user