Add test for ironic volume_connector_present
Change-Id: Ieb99f8cedc660b88e50518f3ebe86e552e98e5d1
Closes-bug: PROD-26096 (PROD:26096)
diff --git a/runtest/salttest/states/openstack/ironicv1.sls b/runtest/salttest/states/openstack/ironicv1.sls
index ea8b491..56e1f4b 100644
--- a/runtest/salttest/states/openstack/ironicv1.sls
+++ b/runtest/salttest/states/openstack/ironicv1.sls
@@ -16,12 +16,35 @@
- node: test
- address: "11:11:11:11:11:11"
+volume_connector_present:
+ ironicv1.volume_connector_present:
+ - cloud_name: admin_identity
+ - node: test
+ - volume_type: iqn
+ - name: iqn.2017-08.org.openstack.test
+
ironicv1_port_absent:
ironicv1.port_absent:
- cloud_name: admin_identity
- node: test
- address: "11:11:11:11:11:11"
+ironicv1_node_power_state_change:
+ module.run:
+ - name: ironicv1.node_power_state_change
+ - kwargs:
+ cloud_name: admin_identity
+ node_ident: {{ Ironic_Test_Node_ID }}
+ target: power off
+
+volume_connector_absent:
+ ironicv1.volume_connector_absent:
+ - cloud_name: admin_identity
+ - node: test
+ - name: iqn.2017-08.org.openstack.test
+ - volume_type: iqn
+
+
ironicv1_node_absent:
ironicv1.node_absent:
- cloud_name: admin_identity