-
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 a675af3
Showing
25 changed files
with
946 additions
and
7 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
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: tests/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: placement-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: placement-secret | ||
generatorOptions: | ||
disableNameSuffixHash: true | ||
labels: | ||
type: placement-secret | ||
|
||
resources: | ||
- namespace.yaml | ||
- OpenStackControlPlane.yaml | ||
|
||
patches: | ||
- patch: |- | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
secret: placement-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: placement-kuttl-tests |
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: placement-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" | ||
} | ||
] | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
tests/kuttl/test-suites/default/output/kuttl-test-placement.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,40 @@ | ||
{ | ||
"name": "", | ||
"tests": 3, | ||
"failures": 1, | ||
"time": "334.084", | ||
"testsuite": [ | ||
{ | ||
"tests": 3, | ||
"failures": 1, | ||
"timestamp": "2024-01-05T16:01:14.739927108+01:00", | ||
"time": "322.664", | ||
"name": "tests/kuttl/test-suites/default/", | ||
"testcase": [ | ||
{ | ||
"classname": "default", | ||
"name": "deps", | ||
"timestamp": "2024-01-05T16:01:14.740035321+01:00", | ||
"time": "0.000" | ||
}, | ||
{ | ||
"classname": "default", | ||
"name": "scale-tests", | ||
"timestamp": "2024-01-05T16:01:14.743540703+01:00", | ||
"time": "322.661", | ||
"assertions": 18, | ||
"failure": { | ||
"text": "resource Deployment:placement-kuttl-tests/placement: .spec.replicas: value mismatch, expected: 2 != actual: 1", | ||
"message": "failed in step 3-scale-placementapi" | ||
} | ||
}, | ||
{ | ||
"classname": "default", | ||
"name": "output", | ||
"timestamp": "2024-01-05T16:06:37.404168159+01:00", | ||
"time": "0.000" | ||
} | ||
] | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
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,7 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
delete: | ||
- apiVersion: placement.openstack.org/v1beta1 | ||
kind: PlacementAPI | ||
name: placement-kuttl | ||
namespace: placement-kuttl-tests |
Oops, something went wrong.