Skip to content

Commit

Permalink
add e2e test for regular modules
Browse files Browse the repository at this point in the history
  • Loading branch information
c-pius committed Jan 24, 2025
1 parent f4eb1a5 commit 8db543a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/deploy-lifecycle-manager-e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ runs:
kustomize edit add patch --path certificate_renewal.yaml --kind Certificate --group cert-manager.io --version v1 --name watcher-serving
popd
- name: Create and use maintenance window policy
if: ${{matrix.e2e-test == 'modulereleasemeta-maintenance-window-with-module-downtime'}}
if: ${{matrix.e2e-test == 'modulereleasemeta-maintenance-window-with-module-downtime' ||
matrix.e2e-test == 'maintenance-window-with-module-downtime'}}
working-directory: lifecycle-manager/config
shell: bash
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/deploy-template-operator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ runs:
}}
shell: bash
run: |
if [ "${{ matrix.e2e-test }}" == "maintenance-window-with-module-downtime" ]; then
yq e '.spec.requiresDowntime = true' -i tests/e2e/moduletemplate/moduletemplate_template_operator_v2_fast.yaml
fi
kubectl apply -f tests/e2e/moduletemplate/moduletemplate_template_operator_v2_fast.yaml
kubectl apply -f tests/e2e/moduletemplate/moduletemplate_template_operator_v1_regular.yaml
- name: Create Template Operator Module for installation by version
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
- rbac-privileges
- ocm-compatible-module-template
- labelling
- maintenance-window-with-module-downtime
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,6 @@ labelling:

modulereleasemeta-maintenance-window-with-module-downtime:
go test -timeout 20m -ginkgo.v -ginkgo.focus "Maintenance Window With ModuleReleaseMeta and Module Downtime"

maintenance-window-with-module-downtime:
go test -timeout 20m -ginkgo.v -ginkgo.focus "Maintenance Window With ModuleReleaseMeta and Module Downtime"

0 comments on commit 8db543a

Please sign in to comment.