Skip to content

Commit

Permalink
Change kuttl tests to run in arbitrary namespace
Browse files Browse the repository at this point in the history
This patch improves the PR [1] that allows to run kuttl tests in an
arbitrary namespace.

Co-authored-by: Vida Haririan <[email protected]>

[1] #122
  • Loading branch information
vhariria authored and fmount committed Sep 6, 2023
1 parent 41dee07 commit fc5d988
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apiVersion: kuttl.dev/v1beta1
kind: TestSuite
reportFormat: JSON
reportName: kuttl-test-manila
namespace: openstack
namespace: manila-kuttl-tests
timeout: 180
parallel: 1
suppress:
Expand Down
1 change: 0 additions & 1 deletion tests/kuttl/common/assert_sample_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ apiVersion: manila.openstack.org/v1beta1
kind: Manila
metadata:
name: manila
namespace: openstack
spec:
customServiceConfig: |
[DEFAULT]
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/tests/deploy/01-deploy-manila.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: TestStep
commands:
- script: |
cp ../../../../config/samples/manila_v1beta1_manila.yaml deployment
oc kustomize deployment | oc apply -n openstack -f -
oc kustomize deployment | oc apply -n $NAMESPACE -f -
1 change: 0 additions & 1 deletion tests/kuttl/tests/deploy/03-cleanup-manila.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ delete:
- apiVersion: manila.openstack.org/v1beta1
kind: Manila
name: manila
namespace: openstack
1 change: 0 additions & 1 deletion tests/kuttl/tests/deploy/03-errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ apiVersion: manila.openstack.org/v1beta1
kind: Manila
metadata:
name: manila
namespace: openstack
3 changes: 3 additions & 0 deletions tests/kuttl/tests/deploy/deployment/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ patches:
- op: replace
path: /spec/secret
value: osp-secret
- op: replace
path: /metadata/namespace
value: manila-kuttl-tests
target:
kind: Manila
patchesStrategicMerge:
Expand Down

0 comments on commit fc5d988

Please sign in to comment.