Skip to content

Commit

Permalink
Merge pull request #140 from alexander-demicev/e2efixes
Browse files Browse the repository at this point in the history
Split E2E test workflows
  • Loading branch information
alexander-demicev authored Sep 26, 2023
2 parents e483c15 + 776546f commit 2d489f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Run nightly e2e tests
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main

env:
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
Expand All @@ -12,7 +15,6 @@ env:

jobs:
e2e:
concurrency: test-e2e
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,6 +28,7 @@ jobs:
- name: Run e2e tests
run: make test-e2e
- name: Collect run artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: artifacts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
name: Run e2e tests
name: Run short e2e tests

on:
push:
branches:
- "main"
pull_request:

env:
RANCHER_PASSWORD: ${{ secrets.RANCHER_PASSWORD }}

jobs:
e2e:
concurrency: test-e2e
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,6 +18,7 @@ jobs:
- name: Run e2e tests
run: ISOLATED_MODE=true make test-e2e
- name: Collect run artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: artifacts
Expand Down
1 change: 0 additions & 1 deletion test/e2e/data/rancher/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ spec:
readOnly: true
dnsPolicy: ClusterFirst
nodeSelector:
ingress-ready: "true"
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 0
Expand Down
7 changes: 0 additions & 7 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,6 @@ func configureIsolatedEnvironment(clusterProxy framework.ClusterProxy) {
break
}
}

if cpNode.GetLabels() == nil {
cpNode.Labels = map[string]string{}
}
cpNode.Labels["ingress-ready"] = "true"

Expect(clusterProxy.GetClient().Update(ctx, &cpNode)).To(Succeed())
}

// setupIngress sets up the ingress for the e2e test. If isolatedMode is true, it will install the nginx ingress controller configured for kind, see https://kind.sigs.k8s.io/docs/user/ingress/#ingress-nginx
Expand Down

0 comments on commit 2d489f5

Please sign in to comment.