Skip to content

Commit 7d61a4b

Browse files
Comment out broken CircleCI integration test (#4505)
* Comment out broken CircleCI integration test * fixup - set aside unused token variable
1 parent ec61ad9 commit 7d61a4b

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

pkg/sources/circleci/circleci_test.go

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ func TestSource_Scan(t *testing.T) {
2222
if err != nil {
2323
t.Fatal(fmt.Errorf("failed to access secret: %v", err))
2424
}
25-
token := secret.MustGetField("CIRCLECI_TOKEN")
25+
// Fix the chunks test, which might involve updating this token.
26+
_ = secret.MustGetField("CIRCLECI_TOKEN")
2627

2728
type init struct {
2829
name string
@@ -35,20 +36,24 @@ func TestSource_Scan(t *testing.T) {
3536
wantErr bool
3637
wantMinChunks int // minimum expected chunks
3738
}{
38-
{
39-
name: "get all chunks",
40-
init: init{
41-
name: "trufflehog-test",
42-
connection: &sourcespb.CircleCI{
43-
Credential: &sourcespb.CircleCI_Token{
44-
Token: token,
39+
// This test is broken, likely need to update the credential or fix the auth.
40+
// Commenting it out for now.
41+
/*
42+
{
43+
name: "get all chunks",
44+
init: init{
45+
name: "trufflehog-test",
46+
connection: &sourcespb.CircleCI{
47+
Credential: &sourcespb.CircleCI_Token{
48+
Token: token,
49+
},
4550
},
51+
verify: true,
4652
},
47-
verify: true,
53+
wantErr: false,
54+
wantMinChunks: 15,
4855
},
49-
wantErr: false,
50-
wantMinChunks: 15,
51-
},
56+
*/
5257
{
5358
name: "invalid token",
5459
init: init{

0 commit comments

Comments
 (0)