Skip to content

Commit

Permalink
skip test when miwi active
Browse files Browse the repository at this point in the history
  • Loading branch information
mrWinston committed Jan 16, 2025
1 parent 38ee4c7 commit 25c3c90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ var (
clusterName string
clusterResourceID string
clients *clientSet
isMiwi bool

Check failure on line 118 in test/e2e/setup.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofmt`-ed with `-s` (gofmt)
)

func skipIfNotInDevelopmentEnv() {
Expand Down Expand Up @@ -503,6 +504,7 @@ func setup(ctx context.Context) error {
vnetResourceGroup = conf.VnetResourceGroup
clusterName = conf.ClusterName
clusterResourceID = resourceIDFromEnv()
isMiwi = conf.UseWorkloadIdentity

clients, err = newClientSet(ctx)
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ var _ = Describe("Update clusters", func() {
})

It("must restart the aro-operator-master Deployment", func(ctx context.Context) {
if isMiwi {
Skip("This test is not relevant for miwi clusters")
}
By("saving the current revision of the aro-operator-master Deployment")
getFunc := clients.Kubernetes.AppsV1().Deployments("openshift-azure-operator").Get
deployment := GetK8sObjectWithRetry(ctx, getFunc, "aro-operator-master", metav1.GetOptions{})
Expand Down

0 comments on commit 25c3c90

Please sign in to comment.