Skip to content

Commit

Permalink
Adding checks to e2e tests to verify make manifest and generate command
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Jun 20, 2023
1 parent 90a3b40 commit f7d980d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/e2e/deployimage/plugin_cluster_test.go
Expand Up @@ -159,14 +159,18 @@ func Run(kbc *utils.TestContext) {
err = kbc.Tidy()
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make all")
err = kbc.Make("all")
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make manifests")
err = kbc.Make("manifests")
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make generate")
err = kbc.Make("generate")
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make all")
err = kbc.Make("all")
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make install")
err = kbc.Make("install")
ExpectWithOffset(1, err).NotTo(HaveOccurred())
Expand Down
8 changes: 8 additions & 0 deletions test/e2e/v4/plugin_cluster_test.go
Expand Up @@ -107,6 +107,14 @@ func Run(kbc *utils.TestContext) {
err = kbc.Tidy()
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make manifests")
err = kbc.Make("manifests")
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("run make generate")
err = kbc.Make("generate")
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("building the controller image")
err = kbc.Make("docker-build", "IMG="+kbc.ImageName)
ExpectWithOffset(1, err).NotTo(HaveOccurred())
Expand Down

0 comments on commit f7d980d

Please sign in to comment.