Skip to content

Commit

Permalink
CLOUDP-266477: cleanup test data federations from default project (#3172
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tibulca authored Aug 9, 2024
1 parent 60f66ef commit fb95210
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/e2e/atlas/cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,18 @@ func TestCleanup(t *testing.T) {
for _, project := range projects.GetResults() {
projectID := project.GetId()
if projectID == os.Getenv("MCLI_PROJECT_ID") {
t.Log("skipping project", projectID)
// we have to cleanup data federations from default project
// as this is the only project configured for data federation
// (has a configured awsRoleId)
t.Run("delete data federations", func(t *testing.T) {
t.Parallel()
deleteAllDataFederations(t, cliPath, projectID)
})

t.Log("skip deleting default project", projectID)
continue
}

t.Run("trying to delete project "+projectID, func(t *testing.T) {
t.Parallel()
t.Cleanup(func() {
Expand All @@ -85,7 +94,7 @@ func TestCleanup(t *testing.T) {
t.Parallel()
deleteDatapipelinesForProject(t, cliPath, projectID)
})
t.Run("delete data deferations", func(t *testing.T) {
t.Run("delete data federations", func(t *testing.T) {
t.Parallel()
deleteAllDataFederations(t, cliPath, projectID)
})
Expand Down

0 comments on commit fb95210

Please sign in to comment.