Skip to content

Commit

Permalink
fix: fail pac-build tests for redhat-appstudio-qe org if private imag…
Browse files Browse the repository at this point in the history
…e repo creation fails (#773)

Fix skipping pac-build tests for redhat-appstudio-qe
  • Loading branch information
tisutisu authored Jan 30, 2024
1 parent 327e55d commit 8fb1084
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ var _ = framework.BuildSuiteDescribe("Build service E2E tests", Label("build", "
Skip("Using private cluster (not reachable from Github), skipping...")
}

quayOrg := utils.GetEnv("DEFAULT_QUAY_ORG", "")
supports, err := build.DoesQuayOrgSupportPrivateRepo()
Expect(err).ShouldNot(HaveOccurred(), fmt.Sprintf("error while checking if quay org supports private repo: %+v", err))
if !supports {
Skip("Quay org does not support private quay repository creation, please add support for private repo creation before running this test")
if quayOrg == "redhat-appstudio-qe" {
Fail("Failed to create private image repo in redhat-appstudio-qe org")
} else {
Skip("Quay org does not support private quay repository creation, please add support for private repo creation before running this test")
}
}
Expect(err).ShouldNot(HaveOccurred())

Expand Down

0 comments on commit 8fb1084

Please sign in to comment.