Skip to content
Open
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
10 changes: 9 additions & 1 deletion test/openshift/e2e/ginkgo/fixture/gitserver/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gitserver
import (
"encoding/base64"
"fmt"
"runtime"
"strings"

. "github.com/onsi/ginkgo/v2"
Expand All @@ -16,11 +17,18 @@ import (
)

const (
// Use latest for multi-arch support
// TODO: Build s390x image (upstream lacks it). See argo-rollouts-manager pattern:
// https://github.com/argoproj-labs/argo-rollouts-manager/blob/67002e569d7f7de26a60a1f5a8d0b4924931b4da/hack/run-upstream-argo-rollouts-e2e-tests.sh#L31
giteaImage = "ghcr.io/go-gitea/gitea:latest-rootless"
giteaCustomPath = "/data/gitea"
)

func init() {
if runtime.GOARCH == "s390x" {
GinkgoWriter.Printf("Gitea tests skipped on s390x (no upstream image). See TODO above.\n")
}
}

func giteaEnvVars(domain, internalToken string) []corev1.EnvVar {
return []corev1.EnvVar{
{Name: "USER_UID", Value: "1000"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,26 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
It("verifies that toolchain versions have the expected values", Label("openshift"), func() {

// These variables need to be maintained according to the component matrix: https://spaces.redhat.com/display/GITOPS/GitOps+Component+Matrix
// RC4 (Final Build) component versions
expected_kustomizeVersion := "v5.8.1"
expected_helmVersion := "v4.2.4"
expected_argocdVersion := "v3.5.2"
//only checking major.minor, patch version can shift independently of the argocd bump
expected_helmVersion := "v4.2"

var expected_argocdVersion string
var expected_dexVersion string
var expected_redisVersion string

if os.Getenv("CI") == "prow" {
// when running against openshift-ci
expected_argocdVersion = "v3.5.2"
expected_dexVersion = "v2.45.1"
expected_redisVersion = "7.2.14"
expected_redisVersion = "8.2.3"

} else {
// when running against RC/ released version of gitops
expected_argocdVersion = "v3.5.4"
expected_dexVersion = "v2.45.1"
expected_redisVersion = "7.2.14"
expected_redisVersion = "7.2.16"
}

By("locating pods containing toolchain in openshift-gitops")
Expand Down Expand Up @@ -175,7 +179,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
By("verifying containers have expected toolchain versions")

Expect(kustomizeVersion).To(Equal(expected_kustomizeVersion))
Expect(helmVersion).To(Equal(expected_helmVersion))
Expect(helmVersion).To(HavePrefix(expected_helmVersion))
Expect(dexVersion).To(Equal(expected_dexVersion))

// We are as argocdVersion contains v2.7.6+00c914a suffix addition to the version no.
Expand Down
Loading
Loading