Skip to content

Commit

Permalink
skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjirewis committed Oct 9, 2024
1 parent 697d37b commit 67fd456
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions testutils/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,18 @@ func ArtifactGoogleCreds(tb testing.TB) string {
}

func backingMongoDBURI() (string, error) {
mongoURI, ok := os.LookupEnv("TEST_MONGODB_URI")
if !ok || mongoURI == "" {
return "", errors.New("no MongoDB URI found")
}
setupMongoDBForTests()
return mongoURI, nil
// TODO(RSDK-8952): Re-enable tests that interact with MDB once
// we resurrect the downed MBD instance or create a new one.
return "", errors.New("skipping MongoDB related test for now; see RSDK-8952")

/*
mongoURI, ok := os.LookupEnv("TEST_MONGODB_URI")
if !ok || mongoURI == "" {
return "", errors.New("no MongoDB URI found")
}
setupMongoDBForTests()
return mongoURI, nil
*/
}

// SkipUnlessBackingMongoDBURI verifies there is a backing MongoDB URI to use.
Expand Down

0 comments on commit 67fd456

Please sign in to comment.