Skip to content

Commit aac916d

Browse files
e2e-integration-test: increase timeout and remove unecessary test to avoid flakes into the ci (#5275)
Signed-off-by: Camila Macedo <[email protected]>
1 parent 7685cb1 commit aac916d

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

test/integration/packagemanifests_test.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
package integration
1616

1717
import (
18-
"fmt"
19-
2018
. "github.com/onsi/ginkgo"
2119
. "github.com/onsi/gomega"
2220
)
@@ -50,23 +48,4 @@ var _ = Describe("run packagemanifests", func() {
5048
It("should succeed with a single operator version in OwnNamespace mode", func() {
5149
Expect(runPackageManifests(&tc, "--install-mode", "OwnNamespace", "--version", "0.0.1")).To(Succeed())
5250
})
53-
54-
It("should successfully deploy the second of two operator versions", func() {
55-
versions := []string{"0.0.1", "0.2.0"}
56-
channels := []string{"alpha", "stable"}
57-
for i, version := range versions {
58-
imageTag := fmt.Sprintf("integration/%s:%s", tc.ProjectName, version)
59-
By("building the manager image " + imageTag)
60-
Expect(tc.Make("docker-build", "IMG="+imageTag)).To(Succeed())
61-
if onKind {
62-
Expect(tc.LoadImageToKindClusterWithName(imageTag)).To(Succeed())
63-
}
64-
makeArgs := []string{"packagemanifests", "IMG=" + imageTag, "VERSION=" + version, "CHANNEL=" + channels[i]}
65-
if i != 0 {
66-
makeArgs = append(makeArgs, "FROM_VERSION="+versions[i-1])
67-
}
68-
Expect(tc.Make(makeArgs...)).To(Succeed())
69-
}
70-
Expect(runPackageManifests(&tc, "--version", versions[len(versions)-1])).To(Succeed())
71-
})
7251
})

test/integration/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func warn(output string, err error) {
129129
}
130130

131131
func runPackageManifests(tc *testutils.TestContext, args ...string) error {
132-
allArgs := []string{"run", "packagemanifests", "--timeout", "4m", "--namespace", tc.Kubectl.Namespace}
132+
allArgs := []string{"run", "packagemanifests", "--timeout", "6m", "--namespace", tc.Kubectl.Namespace}
133133
output, err := tc.Run(exec.Command(tc.BinaryName, append(allArgs, args...)...))
134134
if err == nil {
135135
fmt.Fprintln(GinkgoWriter, string(output))

0 commit comments

Comments
 (0)