Skip to content

Find, verify, and analyze leaked credentials

Comment out broken CircleCI integration test (#4505)

trufflesteeeve7d61a4b57019
diff --git a/pkg/sources/circleci/circleci_test.go b/pkg/sources/circleci/circleci_test.go
index 2daf8881a..ec4f143cb 100644
--- a/pkg/sources/circleci/circleci_test.go
+++ b/pkg/sources/circleci/circleci_test.go
@@ -22,7 +22,8 @@ func TestSource_Scan(t *testing.T) {
if err != nil {
t.Fatal(fmt.Errorf("failed to access secret: %v", err))
}
- token := secret.MustGetField("CIRCLECI_TOKEN")
+ // Fix the chunks test, which might involve updating this token.
+ _ = secret.MustGetField("CIRCLECI_TOKEN")
type init struct {
name string
@@ -35,20 +36,24 @@ func TestSource_Scan(t *testing.T) {
wantErr bool
wantMinChunks int // minimum expected chunks
}{
- {
- name: "get all chunks",
- init: init{
- name: "trufflehog-test",
- connection: &sourcespb.CircleCI{
- Credential: &sourcespb.CircleCI_Token{
- Token: token,
+ // This test is broken, likely need to update the credential or fix the auth.
+ // Commenting it out for now.
+ /*
+ {
+ name: "get all chunks",
+ init: init{
+ name: "trufflehog-test",
+ connection: &sourcespb.CircleCI{
+ Credential: &sourcespb.CircleCI_Token{
+ Token: token,
+ },
},
+ verify: true,
},
- verify: true,
+ wantErr: false,
+ wantMinChunks: 15,
},
- wantErr: false,
- wantMinChunks: 15,
- },
+ */
{
name: "invalid token",
init: init{