Keystone states test was added.
Added test items for testing domain_presentan and domain_absent.
Change-Id: I4e7b5cb46cd3a1b7b829d2658c1dc5ccb3e5db67
Related-PROD: PROD-25260 (PROD:25260)
diff --git a/runtest/salttest/states/openstack/keystonev3.sls b/runtest/salttest/states/openstack/keystonev3.sls
index d869409..fc57a12 100644
--- a/runtest/salttest/states/openstack/keystonev3.sls
+++ b/runtest/salttest/states/openstack/keystonev3.sls
@@ -5,6 +5,16 @@
{%- set Keystone_Test_Role = 'TestKeystoneRole' %}
{%- set Keystone_Test_Endpoint = 'TestKeystoneEndpoint' %}
+keystone_domain_present:
+ keystonev3.domain_present:
+ - cloud_name: admin_identity
+ - name: {{ Keystone_Test_Domain }}
+ - description: Description
+ - enabled: True
+ - tags:
+ - 'someTag0'
+ - 'someTag1'
+
keystonev3_service_present:
keystonev3.service_present:
- name: {{ Keystone_Test_Service }}
@@ -75,3 +85,9 @@
keystonev3.user_absent:
- name: {{ Keystone_Test_User }}
- cloud_name: admin_identity
+
+keystone_domain_absent:
+ keystonev3.domain_absent:
+ - cloud_name: admin_identity
+ - name: {{ Keystone_Test_Domain }}
+ - force_delete: True