Skip to content

Commit 60c3f86

Browse files
authored
feat(e2e): Add uniqueID to SSM repository naming (#2015)
1 parent c9a5e2d commit 60c3f86

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

e2e/nomostest/gitproviders/secure_source_manager.go

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,11 @@ func (c *SSMClient) CreateRepository(name string) (string, error) {
121121
return fullName, nil
122122
}
123123

124-
// DeleteRepositories calls the gcloud SDK to delete the provided repositories from SSM.
125-
func (c *SSMClient) DeleteRepositories(names ...string) error {
126-
for _, name := range names {
127-
_, err := c.shell.ExecWithDebug("gcloud", "beta", "source-manager", "repos",
128-
"delete", name,
129-
"--region", c.region,
130-
"--project", c.project)
131-
if err != nil {
132-
return fmt.Errorf("deleting source repository: %w", err)
133-
}
134-
}
124+
// DeleteRepositories is a no-op because SSM repo names are determined by the
125+
// test cluster name and RSync namespace and name, so it can be reused if it
126+
// failed to be deleted after the test.
127+
func (c *SSMClient) DeleteRepositories(_ ...string) error {
128+
c.shell.Logger.Info("[SSM] Skip deletion of repos")
135129
return nil
136130
}
137131

0 commit comments

Comments
 (0)