Skip to content

Commit

Permalink
OCM-9904 | test: automated cases id:72174
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrazierRH committed Jul 26, 2024
1 parent ecd93cd commit de23535
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/e2e/test_rosacli_machine_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ var _ = Describe("Create machinepool",
"--permissions-boundary", permissionsBoundaryArn,
"-y")
Expect(err).To(BeNil())
defer ocmResourceService.DeleteAccountRole("--mode", "auto", "--prefix", accountRolePrefix, "-y")

accountRoleList, _, err := ocmResourceService.ListAccountRole()
Expect(err).To(BeNil())
classicInstallerRoleArn := accountRoleList.InstallerRole(accountRolePrefix, false).RoleArn
Expand All @@ -272,13 +274,6 @@ var _ = Describe("Create machinepool",
"--region", "xxx", "--role-arn", classicInstallerRoleArn)
Expect(err).To(HaveOccurred())
Expect(output.String()).Should(ContainSubstring("ERR: Unsupported region 'xxx', available regions"))

By("Delete the account-roles")
rosaClient.Runner.UnsetArgs()
_, err = ocmResourceService.DeleteAccountRole("--mode", "auto",
"--prefix", accountRolePrefix,
"-y")
Expect(err).To(BeNil())
})

It("can create spot machinepool - [id:43251]",
Expand Down

0 comments on commit de23535

Please sign in to comment.