Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
738e3d8
For 1.19.0 build, Pull Ginkgo test cases from argocd-operator repo an…
nas438 Nov 20, 2025
e9684e2
fix merge conflict
nas438 Nov 21, 2025
3779fa2
Update go.mod and go.sum
nas438 Nov 21, 2025
7853726
Update the test
nas438 Nov 21, 2025
c654cf4
For 1.19.0 build, Pull Ginkgo test cases from argocd-operator repo an…
nas438 Nov 20, 2025
2e203d4
fix merge conflict
nas438 Nov 21, 2025
83caf4d
Update the test
nas438 Nov 21, 2025
df31a0b
Resolve conflict of go.mod and go.sum
nas438 Nov 24, 2025
2b5befa
resolve CI test failures and add ginkgo test for image pull policy
nas438 Nov 24, 2025
ac2f607
clean up go.sum duplicate entries for CI synchronicity check
nas438 Nov 24, 2025
2e3d14e
Fix CI failures in sequential tests and improve image updater test st…
nas438 Nov 25, 2025
dbb2cc0
Merge branch 'redhat-developer:master' into pull-ginkgo-tests-from-ar…
Naveena-058 Nov 25, 2025
6e2a9aa
resolve conflict in go.mod and go.sum file
nas438 Nov 26, 2025
29bb5f5
Wait for ArgoCD instance to be available before deploying application…
nas438 Nov 26, 2025
97c5c67
Revert "Wait for ArgoCD instance to be available before deploying app…
nas438 Nov 27, 2025
e865741
Merge branch 'master' into pull-ginkgo-tests-from-argocd-operator
Naveena-058 Nov 28, 2025
beba49d
fix agent principal test to support cluster-scoped resources
nas438 Dec 1, 2025
bda01a1
Fix:1-051_validate_argocd_agent_principal_test
nas438 Dec 4, 2025
91ee901
Resolve merge conflicts in go.mod and go.sum
nas438 Dec 8, 2025
607a0c0
Fix CI failures: Update import paths to use local fixtures
nas438 Dec 8, 2025
7384d21
Merge branch 'master' into pull-ginkgo-tests-from-argocd-operator
Naveena-058 Dec 8, 2025
882aaee
Fix go.sum: Add missing argocd-image-updater v1.0.1 entries
nas438 Dec 8, 2025
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
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.24.6

require (
github.com/argoproj-labs/argo-rollouts-manager v0.0.7-0.20251105123110-0c547c7a7765
github.com/argoproj-labs/argocd-image-updater v1.0.1
github.com/argoproj-labs/argocd-operator v0.17.0-rc1.0.20251203145554-258914335b86
github.com/argoproj/argo-cd/v3 v3.1.9
github.com/argoproj/gitops-engine v0.7.1-0.20250905160054-e48120133eec
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
github.com/argoproj-labs/argo-rollouts-manager v0.0.7-0.20251105123110-0c547c7a7765 h1:zVN+W/nQrRB/kB63YcvcCseuiE//sEzNw6Oa8rqiFOs=
github.com/argoproj-labs/argo-rollouts-manager v0.0.7-0.20251105123110-0c547c7a7765/go.mod h1:WPyZkNHZjir/OTt8mrRwcUZKe1euHrHPJsRv1Wp/F/0=
github.com/argoproj-labs/argocd-image-updater v1.0.1 h1:g6WRF33TQ0/CPDndbC97oP0aEqJMEesQenz0Cz8F6XQ=
github.com/argoproj-labs/argocd-image-updater v1.0.1/go.mod h1:PJ+Pb3faVqSzNNs35INUZYtzlaqKvBE2ZgZGdDabJQM=
github.com/argoproj-labs/argocd-operator v0.17.0-rc1.0.20251203145554-258914335b86 h1:crfiDUoEdB1wDUZCpo6Q4rQZmEoFqsrS5swvckM3OUw=
github.com/argoproj-labs/argocd-operator v0.17.0-rc1.0.20251203145554-258914335b86/go.mod h1:JUvpFGuOdBL23437e/IdBsdwUE+69J6LzKQ2Q42ycc0=
github.com/argoproj/argo-cd/v3 v3.1.9 h1:9P9vJKo1RGWu6mtQnGu61r+0h3XKlA2j3kVhwogUQ/0=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ import (
//lint:ignore ST1001 "This is a common practice in Gomega tests for readability."
. "github.com/onsi/gomega" //nolint:all
olmv1alpha1 "github.com/operator-framework/api/pkg/operators/v1alpha1"
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/utils"
"k8s.io/client-go/util/retry"
"sigs.k8s.io/controller-runtime/pkg/client"
)

// Update will update a ClusterServiceVersion CR. Update will keep trying to update object until it succeeds, or times out.
func Update(obj *olmv1alpha1.ClusterServiceVersion, modify func(*olmv1alpha1.ClusterServiceVersion)) {
if fixture.EnvNonOLM() || fixture.EnvLocalRun() || fixture.EnvCI() {
// Skipping CSV update as operator is not managed via OLM in these environments.
// In CI environment, the operator is managed via Subscription rather than direct CSV access.
return
}

k8sClient, _ := utils.GetE2ETestKubeClient()

err := retry.RetryOnConflict(retry.DefaultRetry, func() error {
Expand Down
5 changes: 3 additions & 2 deletions test/openshift/e2e/ginkgo/fixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ func EnsureSequentialCleanSlateWithError() error {
// RemoveDynamicPluginFromCSV ensures that if the CSV in 'openshift-gitops-operator' NS exists, that the CSV does not contain the dynamic plugin env var
func RemoveDynamicPluginFromCSV(ctx context.Context, k8sClient client.Client) error {

if EnvNonOLM() || EnvLocalRun() {
// Skipping as CSV does exist when not using OLM, nor does it exist when running locally
if EnvNonOLM() || EnvLocalRun() || EnvCI() {
// Skipping as CSV does not exist when not using OLM, nor when running locally.
// In CI environment, the operator is managed via Subscription rather than direct CSV access.
return nil
}

Expand Down
41 changes: 23 additions & 18 deletions test/openshift/e2e/ginkgo/fixture/utils/fixtureUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@ import (
"k8s.io/client-go/tools/clientcmd"
"sigs.k8s.io/controller-runtime/pkg/client"

argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
argocdv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"

osappsv1 "github.com/openshift/api/apps/v1"
olmv1alpha1 "github.com/operator-framework/api/pkg/operators/v1alpha1"

rolloutmanagerv1alpha1 "github.com/argoproj-labs/argo-rollouts-manager/api/v1alpha1"
argov1alpha1api "github.com/argoproj-labs/argocd-operator/api/v1alpha1"
consolev1 "github.com/openshift/api/console/v1"
routev1 "github.com/openshift/api/route/v1"
securityv1 "github.com/openshift/api/security/v1"
monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
gitopsoperatorv1alpha1 "github.com/redhat-developer/gitops-operator/api/v1alpha1"
admissionv1 "k8s.io/api/admissionregistration/v1"
apps "k8s.io/api/apps/v1"
autoscalingv2 "k8s.io/api/autoscaling/v2"
Expand All @@ -30,6 +23,14 @@ import (
rbacv1 "k8s.io/api/rbac/v1"
crdv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

rolloutmanagerv1alpha1 "github.com/argoproj-labs/argo-rollouts-manager/api/v1alpha1"
imageUpdater "github.com/argoproj-labs/argocd-image-updater/api/v1alpha1"
olmv1alpha1 "github.com/operator-framework/api/pkg/operators/v1alpha1"
gitopsoperatorv1alpha1 "github.com/redhat-developer/gitops-operator/api/v1alpha1"

argov1alpha1api "github.com/argoproj-labs/argocd-operator/api/v1alpha1"
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"

//lint:ignore ST1001 "This is a common practice in Gomega tests for readability."
. "github.com/onsi/gomega" //nolint:all
)
Expand Down Expand Up @@ -94,14 +95,6 @@ func getKubeClient(config *rest.Config) (client.Client, *runtime.Scheme, error)
return nil, nil, err
}

if err := gitopsoperatorv1alpha1.AddToScheme(scheme); err != nil {
return nil, nil, err
}

if err := olmv1alpha1.AddToScheme(scheme); err != nil {
return nil, nil, err
}

if err := routev1.AddToScheme(scheme); err != nil {
return nil, nil, err
}
Expand All @@ -113,9 +106,6 @@ func getKubeClient(config *rest.Config) (client.Client, *runtime.Scheme, error)
if err := consolev1.AddToScheme(scheme); err != nil {
return nil, nil, err
}
if err := rolloutmanagerv1alpha1.AddToScheme(scheme); err != nil {
return nil, nil, err
}

if err := argov1alpha1api.AddToScheme(scheme); err != nil {
return nil, nil, err
Expand All @@ -137,6 +127,21 @@ func getKubeClient(config *rest.Config) (client.Client, *runtime.Scheme, error)
return nil, nil, err
}

if err := imageUpdater.AddToScheme(scheme); err != nil {
return nil, nil, err
}

if err := olmv1alpha1.AddToScheme(scheme); err != nil {
return nil, nil, err
}

if err := gitopsoperatorv1alpha1.AddToScheme(scheme); err != nil {
return nil, nil, err
}

if err := rolloutmanagerv1alpha1.AddToScheme(scheme); err != nil {
return nil, nil, err
}
k8sClient, err := client.New(config, client.Options{Scheme: scheme})
if err != nil {
return nil, nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,20 @@ import (
"context"
"strings"

argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
"github.com/google/uuid"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"
argocdFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/argocd"
k8sFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/k8s"
fixtureUtils "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/utils"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/ptr"

argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"
argocdFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/argocd"
k8sFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/k8s"
fixtureUtils "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/utils"

"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
Loading