Skip to content

Commit

Permalink
OCM-11127 | ci: fix id:73753,67414,55883,75927
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraj7 committed Sep 13, 2024
1 parent a5c17f1 commit 1910f8b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions tests/e2e/test_rosacli_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3530,6 +3530,7 @@ var _ = Describe("Sts cluster creation supplemental testing",
testOperatorRolePrefix := common.GenerateRandomName("opp75927", 2)
flags, err := profilehandler.GenerateClusterCreateFlags(customProfile, rosaClient)
Expect(err).ToNot(HaveOccurred())
rolePrefix = flags[16]

command := "rosa create cluster --cluster-name " + testingClusterName + " " + strings.Join(flags, " ")
rosalCommand := config.GenerateCommand(command)
Expand Down
13 changes: 7 additions & 6 deletions tests/e2e/test_rosacli_kubelet_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ var _ = Describe("Kubeletconfig on HCP cluster",
AfterEach(func() {
By("Clean the cluster")
kubes, err := kubeletService.ListKubeletConfigsAndReflect(clusterID)
if !meetThrottleVersion {
Expect(err).To(HaveOccurred())
Expect(err.Error()).Should(
ContainSubstring("KubeletConfig management is only supported on clusters with OCP '4.14' onwards"))
return
}
Expect(err).NotTo(HaveOccurred())
for _, kube := range kubes.KubeletConfigs {
kubeletService.DeleteKubeletConfig(clusterID,
Expand All @@ -264,6 +270,7 @@ var _ = Describe("Kubeletconfig on HCP cluster",
Expect(err).To(HaveOccurred())
Expect(out.String()).Should(
ContainSubstring("KubeletConfig management is only supported on clusters with OCP '4.14' onwards"))
return
} else {
Expect(err).ToNot(HaveOccurred())
Expect(out.String()).
Expand All @@ -276,12 +283,6 @@ var _ = Describe("Kubeletconfig on HCP cluster",
out, err = kubeletService.CreateKubeletConfig(clusterID,
"--pod-pids-limit", "4096",
)
if !meetThrottleVersion {
Expect(err).To(HaveOccurred())
Expect(out.String()).Should(
ContainSubstring("KubeletConfig management is only supported on clusters with OCP '4.14' onwards"))
return
}

Expect(err).To(HaveOccurred())
Expect(out.String()).Should(ContainSubstring("Name?"))
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/test_rosacli_node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ var _ = Describe("Edit nodepool",
lVersion = lowerVersion.Version
if lowerVersion.AvailableUpgrades != "" {
upgrades := common.ParseCommaSeparatedStrings(lowerVersion.AvailableUpgrades)
upgradeVersion = upgrades[len(upgrades)-1]
upgradeVersion = upgrades[0]
break
}
Logger.Debugf("The lower version %s has no available upgrades continue to find next one\n", lVersion)
Expand All @@ -695,6 +695,7 @@ var _ = Describe("Edit nodepool",
return
}
Logger.Infof("Using previous version %s", lVersion)
Logger.Infof("Using upgrade version %s", upgradeVersion)

By("Prepare a node pool with optional-1 version with manual upgrade")
nodePoolManualName := common.GenerateRandomName("np-67414", 2)
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/test_rosacli_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,6 @@ var _ = Describe("Cluster Upgrade testing",
By("Check upgrade state")
err = WaitForUpgradeToState(upgradeService, clusterID, con.Scheduled, 4)
Expect(err).To(BeNil())
err = WaitForUpgradeToState(upgradeService, clusterID, con.Started, 70)
Expect(err).To(BeNil())
})

It("to upgrade wide AMI roles with the managed policies in auto mode - [id:57444]",
Expand Down

0 comments on commit 1910f8b

Please sign in to comment.