-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from kajinamit/resource-kuttl
Add kuttl tests to test KeystoneEndpoint and KeystoneService
- Loading branch information
Showing
14 changed files
with
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/assert_sample_deployment.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 @@ | ||
../../common/keystoneapi_deploy.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,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 |
1 change: 1 addition & 0 deletions
1
tests/kuttl/tests/keystone_resources/01-deploy-keystoneservice.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 @@ | ||
../../../../config/samples/keystone_v1beta1_keystoneservice.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,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 |
1 change: 1 addition & 0 deletions
1
tests/kuttl/tests/keystone_resources/02-deploy-keystoneendpoint.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 @@ | ||
../../../../config/samples/keystone_v1beta1_keystoneendpoint.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,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 |
6 changes: 6 additions & 0 deletions
6
tests/kuttl/tests/keystone_resources/03-cleanup-keystoneendpoint.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: keystone.openstack.org/v1beta1 | ||
kind: KeystoneEndpoint | ||
name: placement |
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 @@ | ||
# | ||
# Check for: | ||
# | ||
# - No KeystoneEndpoint CR | ||
# | ||
apiVersion: keystone.openstack.org/v1beta1 | ||
kind: KeystoneEndpoint | ||
metadata: | ||
name: placement |
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,11 @@ | ||
# | ||
# Check for: | ||
# | ||
# - 1 KeystoneAPI CR | ||
# | ||
apiVersion: keystone.openstack.org/v1beta1 | ||
kind: KeystoneAPI | ||
metadata: | ||
finalizers: | ||
- KeystoneAPI | ||
name: keystone |
6 changes: 6 additions & 0 deletions
6
tests/kuttl/tests/keystone_resources/04-cleanup-keystoneservice.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: keystone.openstack.org/v1beta1 | ||
kind: KeystoneService | ||
name: placement |
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 @@ | ||
# | ||
# Check for: | ||
# | ||
# - No KeystoneService CR | ||
# | ||
apiVersion: keystone.openstack.org/v1beta1 | ||
kind: KeystoneService | ||
metadata: | ||
name: placement |
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 @@ | ||
../../common/cleanup-keystone.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 @@ | ||
../../common/errors_cleanup_keystone.yaml |