Skip to content

Commit

Permalink
OCM-9725 | test: Fix 45161 to make it skip shared vpc profile due to …
Browse files Browse the repository at this point in the history
…it's special
  • Loading branch information
xueli181114 committed Jul 23, 2024
1 parent 4d2071b commit 7fffc9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/e2e/test_rosacli_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,10 @@ var _ = Describe("Classic cluster creation validation",
// Get a random profile
profilesMap = profilehandler.ParseProfilesByFile(path.Join(ciConfig.Test.YAMLProfilesDir, "rosa-classic.yaml"))
profilesNames := make([]string, 0, len(profilesMap))
for k := range profilesMap {
profilesNames = append(profilesNames, k)
for k, v := range profilesMap {
if !v.ClusterConfig.SharedVPC {
profilesNames = append(profilesNames, k)
}
}
profile = profilesMap[profilesNames[common.RandomInt(len(profilesNames))]]
profile.NamePrefix = constants.DefaultNamePrefix
Expand Down

0 comments on commit 7fffc9f

Please sign in to comment.