-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework kuttl test to be organize like in nova-operator
- Loading branch information
1 parent
3f8c9ec
commit 3f6d2c3
Showing
20 changed files
with
1,182 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestSuite | ||
reportFormat: JSON | ||
reportName: kuttl-test-placement | ||
namespace: placement-kuttl-tests | ||
# we could set this lower, but the initial image pull can take a while | ||
timeout: 300 | ||
parallel: 1 | ||
skipDelete: true | ||
testDirs: | ||
- tests/kuttl/test-suites/default/ | ||
suppress: | ||
- events | ||
artifactsDir: test/kuttl/test-suites/default/output |
16 changes: 16 additions & 0 deletions
16
tests/kuttl/test-suites/default/deps/OpenStackControlPlane.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
storageClass: "crc-csi-hostpath-provisioner" | ||
ironic: | ||
enabled: false | ||
template: | ||
ironicConductors: [] | ||
manila: | ||
enabled: false | ||
template: | ||
manilaShares: {} | ||
horizon: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
mariadb: | ||
enabled: false | ||
galera: | ||
enabled: true | ||
templates: | ||
openstack: | ||
storageRequest: 500M | ||
openstack-cell1: | ||
storageRequest: 500M | ||
rabbitmq: | ||
templates: | ||
rabbitmq: | ||
replicas: 1 | ||
rabbitmq-cell1: | ||
replicas: 1 | ||
memcached: | ||
templates: | ||
memcached: | ||
replicas: 1 | ||
ovn: | ||
enabled: false | ||
template: | ||
ovnController: | ||
external-ids: | ||
ovn-encap-type: geneve | ||
ovs: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
keystone: | ||
template: | ||
databaseInstance: openstack | ||
secret: osp-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: placement-kuttl-tests | ||
|
||
secretGenerator: | ||
- literals: | ||
- AdminPassword=password | ||
- DbRootPassword=password | ||
- DatabasePassword=password | ||
- KeystoneDatabasePassword=password | ||
- PlacementPassword=password | ||
- PlacementDatabasePassword=password | ||
- GlancePassword=password | ||
- GlanceDatabasePassword=password | ||
- NeutronPassword=password | ||
- NeutronDatabasePassword=password | ||
- NovaPassword=password | ||
- NovaAPIDatabasePassword=password | ||
- NovaCell0DatabasePassword=password | ||
- NovaCell1DatabasePassword=password | ||
- MetadataSecret=42 | ||
name: osp-secret | ||
generatorOptions: | ||
disableNameSuffixHash: true | ||
labels: | ||
type: osp-secret | ||
|
||
resources: | ||
- namespace.yaml | ||
- OpenStackControlPlane.yaml | ||
|
||
patches: | ||
- patch: |- | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
secret: osp-secret | ||
- path: infra.yaml | ||
- path: keystone.yaml | ||
- path: placement.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: nova-kuttl-multi-cell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
placement: | ||
template: | ||
databaseInstance: openstack | ||
secret: osp-secret |
Empty file.
36 changes: 36 additions & 0 deletions
36
tests/kuttl/test-suites/default/output/kuttl-default-results.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "", | ||
"tests": 3, | ||
"failures": 0, | ||
"time": "214.322", | ||
"testsuite": [ | ||
{ | ||
"tests": 3, | ||
"failures": 0, | ||
"timestamp": "2023-08-04T11:39:21.251975663+02:00", | ||
"time": "202.907", | ||
"name": "test/kuttl/test-suites/default/", | ||
"testcase": [ | ||
{ | ||
"classname": "default", | ||
"name": "deps", | ||
"timestamp": "2023-08-04T11:39:21.252056484+02:00", | ||
"time": "0.000" | ||
}, | ||
{ | ||
"classname": "default", | ||
"name": "scale-tests", | ||
"timestamp": "2023-08-04T11:39:21.257387947+02:00", | ||
"time": "202.901", | ||
"assertions": 69 | ||
}, | ||
{ | ||
"classname": "default", | ||
"name": "output", | ||
"timestamp": "2023-08-04T11:42:44.158903202+02:00", | ||
"time": "0.000" | ||
} | ||
] | ||
} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/kuttl/test-suites/default/scale-tests/00-cleanup-placement.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
delete: | ||
- apiVersion: placement.openstack.org/v1beta1 | ||
kind: PlacementAPI | ||
name: placement |
Oops, something went wrong.