diff --git a/tests/kuttl/tests/keystone_resources/00-assert.yaml b/tests/kuttl/tests/keystone_resources/00-assert.yaml new file mode 120000 index 00000000..461654ea --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/00-assert.yaml @@ -0,0 +1 @@ +../../common/assert_sample_deployment.yaml \ No newline at end of file diff --git a/tests/kuttl/tests/keystone_resources/00-deploy_keystone.yaml b/tests/kuttl/tests/keystone_resources/00-deploy_keystone.yaml new file mode 120000 index 00000000..835e6c11 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/00-deploy_keystone.yaml @@ -0,0 +1 @@ +../../common/keystoneapi_deploy.yaml \ No newline at end of file diff --git a/tests/kuttl/tests/keystone_resources/01-assert.yaml b/tests/kuttl/tests/keystone_resources/01-assert.yaml new file mode 100644 index 00000000..5b5dd9f2 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/01-assert.yaml @@ -0,0 +1,28 @@ +# +# Check for: +# +# - 1 KeystoneAPI CR +# - 1 KeystoneService CR +# +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneAPI +metadata: + finalizers: + - KeystoneAPI + - KeystoneService-placement + name: keystone +--- +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneService +metadata: + finalizers: + - KeystoneService + name: placement +spec: + enabled: true + passwordSelector: PlacementPassword + secret: osp-secret + serviceDescription: Placement service + serviceName: placement + serviceType: placement + serviceUser: placement diff --git a/tests/kuttl/tests/keystone_resources/01-deploy-keystoneservice.yaml b/tests/kuttl/tests/keystone_resources/01-deploy-keystoneservice.yaml new file mode 120000 index 00000000..93c76b47 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/01-deploy-keystoneservice.yaml @@ -0,0 +1 @@ +../../../../config/samples/keystone_v1beta1_keystoneservice.yaml \ No newline at end of file diff --git a/tests/kuttl/tests/keystone_resources/02-assert.yaml b/tests/kuttl/tests/keystone_resources/02-assert.yaml new file mode 100644 index 00000000..72ac9dbb --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/02-assert.yaml @@ -0,0 +1,36 @@ +# +# Check for: +# +# - 1 KeystoneAPI CR +# - 1 KeystoneService CR +# - 1 KeystoneEndpoint CR +# +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneAPI +metadata: + finalizers: + - KeystoneAPI + - KeystoneService-placement + - KeystoneEndpoint-placement + name: keystone +--- +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneService +metadata: + finalizers: + - KeystoneService + - KeystoneEndpoint-placement + name: placement +--- +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneEndpoint +metadata: + finalizers: + - KeystoneEndpoint + name: placement +spec: + endpoints: + admin: http://placement-admin-openstack.apps-crc.testing + internal: http://placement-internal-openstack.apps-crc.testing + public: http://placement-public-openstack.apps-crc.testing + serviceName: placement diff --git a/tests/kuttl/tests/keystone_resources/02-deploy-keystoneendpoint.yaml b/tests/kuttl/tests/keystone_resources/02-deploy-keystoneendpoint.yaml new file mode 120000 index 00000000..8d5ed96b --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/02-deploy-keystoneendpoint.yaml @@ -0,0 +1 @@ +../../../../config/samples/keystone_v1beta1_keystoneendpoint.yaml \ No newline at end of file diff --git a/tests/kuttl/tests/keystone_resources/03-assert.yaml b/tests/kuttl/tests/keystone_resources/03-assert.yaml new file mode 100644 index 00000000..888ec809 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/03-assert.yaml @@ -0,0 +1,20 @@ +# +# Check for: +# +# - 1 KeystoneAPI CR +# - 1 KeystoneService CR +# +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneAPI +metadata: + finalizers: + - KeystoneAPI + - KeystoneService-placement + name: keystone +--- +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneService +metadata: + finalizers: + - KeystoneService + name: placement diff --git a/tests/kuttl/tests/keystone_resources/03-cleanup-keystoneendpoint.yaml b/tests/kuttl/tests/keystone_resources/03-cleanup-keystoneendpoint.yaml new file mode 100644 index 00000000..f800e10f --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/03-cleanup-keystoneendpoint.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: keystone.openstack.org/v1beta1 + kind: KeystoneEndpoint + name: placement diff --git a/tests/kuttl/tests/keystone_resources/03-errors.yaml b/tests/kuttl/tests/keystone_resources/03-errors.yaml new file mode 100644 index 00000000..4194cc26 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/03-errors.yaml @@ -0,0 +1,9 @@ +# +# Check for: +# +# - No KeystoneEndpoint CR +# +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneEndpoint +metadata: + name: placement diff --git a/tests/kuttl/tests/keystone_resources/04-assert.yaml b/tests/kuttl/tests/keystone_resources/04-assert.yaml new file mode 100644 index 00000000..4b4f47a7 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/04-assert.yaml @@ -0,0 +1,11 @@ +# +# Check for: +# +# - 1 KeystoneAPI CR +# +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneAPI +metadata: + finalizers: + - KeystoneAPI + name: keystone diff --git a/tests/kuttl/tests/keystone_resources/04-cleanup-keystoneservice.yaml b/tests/kuttl/tests/keystone_resources/04-cleanup-keystoneservice.yaml new file mode 100644 index 00000000..561f32e1 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/04-cleanup-keystoneservice.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: keystone.openstack.org/v1beta1 + kind: KeystoneService + name: placement diff --git a/tests/kuttl/tests/keystone_resources/04-errors.yaml b/tests/kuttl/tests/keystone_resources/04-errors.yaml new file mode 100644 index 00000000..8c4ffc01 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/04-errors.yaml @@ -0,0 +1,9 @@ +# +# Check for: +# +# - No KeystoneService CR +# +apiVersion: keystone.openstack.org/v1beta1 +kind: KeystoneService +metadata: + name: placement diff --git a/tests/kuttl/tests/keystone_resources/05-cleanup-keystone.yaml b/tests/kuttl/tests/keystone_resources/05-cleanup-keystone.yaml new file mode 120000 index 00000000..995da707 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/05-cleanup-keystone.yaml @@ -0,0 +1 @@ +../../common/cleanup-keystone.yaml \ No newline at end of file diff --git a/tests/kuttl/tests/keystone_resources/05-errors.yaml b/tests/kuttl/tests/keystone_resources/05-errors.yaml new file mode 120000 index 00000000..82b31f18 --- /dev/null +++ b/tests/kuttl/tests/keystone_resources/05-errors.yaml @@ -0,0 +1 @@ +../../common/errors_cleanup_keystone.yaml \ No newline at end of file