Skip to content

Commit f6d3b51

Browse files
committed
- added make api token to exception list next to tableau and artifactory
- regenerated detectors.pb.go
1 parent b037651 commit f6d3b51

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

pkg/engine/engine_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ func TestEngineInitializesCloudProviderDetectors(t *testing.T) {
12281228
for _, det := range e.detectors {
12291229
if endpoints, ok := det.(interface{ Endpoints(...string) []string }); ok {
12301230
id := config.GetDetectorID(det)
1231-
if len(endpoints.Endpoints()) == 0 && det.Type() != detectorspb.DetectorType_ArtifactoryAccessToken && det.Type() != detectorspb.DetectorType_TableauPersonalAccessToken { // artifactory and tableau does not have any cloud endpoint
1231+
if len(endpoints.Endpoints()) == 0 && det.Type() != detectorspb.DetectorType_ArtifactoryAccessToken && det.Type() != detectorspb.DetectorType_TableauPersonalAccessToken && det.Type() != detectorspb.DetectorType_MakeApiToken { // artifactory, tableau, and make api token do not have any cloud endpoint
12321232
t.Fatalf("detector %q Endpoints() is empty", id.String())
12331233
}
12341234
count++

pkg/pb/detectorspb/detectors.pb.go

Lines changed: 12 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)