Add runtest tests for octavia formula
Add module and state tests for heat octavia formula.
Related-PROD: PROD-22019
Change-Id: I544c5a95ac0fe98c983ea809b9e64a769c8c5f91
diff --git a/runtest/salttest/modules/openstack/octaviav2.sls b/runtest/salttest/modules/openstack/octaviav2.sls
new file mode 100644
index 0000000..ef0f328
--- /dev/null
+++ b/runtest/salttest/modules/openstack/octaviav2.sls
@@ -0,0 +1,5 @@
+octaviav2_loadbalancer_list:
+ module.run:
+ - name: octaviav2.loadbalancer_list
+ - kwargs:
+ cloud_name: admin_identity
diff --git a/runtest/salttest/states/openstack/octaviav2.sls b/runtest/salttest/states/openstack/octaviav2.sls
new file mode 100644
index 0000000..ad97a90
--- /dev/null
+++ b/runtest/salttest/states/openstack/octaviav2.sls
@@ -0,0 +1,23 @@
+{%- set neutron_test_network = 'OctaviaStateTestNetwork' %}
+{%- set neutron_test_subnet = 'OctaviaStateTestSubnet' %}
+
+neutronv2_network_present:
+ neutronv2.network_present:
+ - cloud_name: admin_identity
+ - name: {{ neutron_test_network }}
+
+neutronv2_subnet_present:
+ neutronv2.subnet_present:
+ - name: {{ neutron_test_subnet }}
+ - cloud_name: admin_identity
+ - network_id: {{ neutron_test_network }}
+ - ip_version: 4
+ - cidr: 192.168.100.0/24
+
+{%- set subnet_id = salt['neutronv2.subnet_list'](cloud_name='admin_identity',name=neutron_test_subnet)['subnets'][0].id %}
+
+octavia_loadbalancer:
+ octaviav2.loadbalancer_present:
+ - cloud_name: admin_identity
+ - name: lb1
+ - vip_subnet_id: {{ subnet_id }}