Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/e2e-ansible/e2e_ansible_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ var _ = Describe("Running ansible projects", func() {

By("ensuring the created controller-manager Pod")
podNames := kbtestutils.GetNonEmptyLines(podOutput)
if len(podNames) != 1 {
return fmt.Errorf("expect 1 controller pods running, but got %d", len(podNames))
}
Expect(podNames).To(HaveLen(1))
controllerPodName = podNames[0]
Expect(controllerPodName).Should(ContainSubstring("controller-manager"))

Expand Down
2 changes: 1 addition & 1 deletion test/e2e-ansible/e2e_ansible_olm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var _ = Describe("Integrating ansible Projects with OLM", func() {
Expect(err).NotTo(HaveOccurred())
err = json.Unmarshal(scorecardOutputBytes, &scorecardOutput)
Expect(err).NotTo(HaveOccurred())
Expect(len(scorecardOutput.Items)).To(Equal(1))
Expect(scorecardOutput.Items).To(HaveLen(1))
Expect(scorecardOutput.Items[0].Status.Results[0].State).To(Equal(v1alpha3.PassState))

By("running the package")
Expand Down
4 changes: 1 addition & 3 deletions test/e2e-go/e2e_go_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ var _ = Describe("operator-sdk", func() {

By("ensuring the created controller-manager Pod")
podNames := kbtestutils.GetNonEmptyLines(podOutput)
if len(podNames) != 1 {
return fmt.Errorf("expect 1 controller pods running, but got %d", len(podNames))
}
Expect(podNames).To(HaveLen(1))
controllerPodName = podNames[0]
Expect(controllerPodName).Should(ContainSubstring("controller-manager"))

Expand Down
4 changes: 2 additions & 2 deletions test/e2e-go/e2e_go_olm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var _ = Describe("Integrating Go Projects with OLM", func() {
Expect(err).NotTo(HaveOccurred())
err = json.Unmarshal(scorecardOutputBytes, &scorecardOutput)
Expect(err).NotTo(HaveOccurred())
Expect(len(scorecardOutput.Items)).To(Equal(1))
Expect(scorecardOutput.Items).To(HaveLen(1))
Expect(scorecardOutput.Items[0].Status.Results[0].State).To(Equal(v1alpha3.PassState))

By("running custom scorecard tests")
Expand All @@ -102,7 +102,7 @@ var _ = Describe("Integrating Go Projects with OLM", func() {
Expect(err).NotTo(HaveOccurred())
err = json.Unmarshal(scorecardOutputBytes, &scorecardOutput)
Expect(err).NotTo(HaveOccurred())
Expect(len(scorecardOutput.Items)).To(Equal(2))
Expect(scorecardOutput.Items).To(HaveLen(2))

By("running olm scorecard tests")
runOLMScorecardCmd := exec.Command(tc.BinaryName, "scorecard", "bundle",
Expand Down
4 changes: 1 addition & 3 deletions test/e2e-helm/e2e_helm_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ var _ = Describe("Running Helm projects", func() {

By("ensuring the created controller-manager Pod")
podNames := kbtestutils.GetNonEmptyLines(podOutput)
if len(podNames) != 1 {
return fmt.Errorf("expect 1 controller pods running, but got %d", len(podNames))
}
Expect(podNames).To(HaveLen(1))
controllerPodName = podNames[0]
Expect(controllerPodName).Should(ContainSubstring("controller-manager"))

Expand Down
2 changes: 1 addition & 1 deletion test/e2e-helm/e2e_helm_olm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var _ = Describe("Integrating Helm Projects with OLM", func() {
Expect(err).NotTo(HaveOccurred())
err = json.Unmarshal(scorecardOutputBytes, &scorecardOutput)
Expect(err).NotTo(HaveOccurred())
Expect(len(scorecardOutput.Items)).To(Equal(1))
Expect(scorecardOutput.Items).To(HaveLen(1))
Expect(scorecardOutput.Items[0].Status.Results[0].State).To(Equal(v1alpha3.PassState))

By("running the package")
Expand Down