Add pre creating resources for heat tempest plugin

Add functionality for pre creating resources for heat tempest plugin

Change-Id: Ie230a6090a82a79a75d79d7d91a7c38130da3efe
Related-prod: PROD-18144
diff --git a/metadata/service/tempest/glance.yml b/metadata/service/tempest/glance.yml
new file mode 100644
index 0000000..6093c84
--- /dev/null
+++ b/metadata/service/tempest/glance.yml
@@ -0,0 +1,32 @@
+parameters:
+  _param:
+    glance_image_cirros_location: 'http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img'
+    glance_image_fedora_location: 'https://mirror.chpc.utah.edu/pub/fedora/linux/releases/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.qcow2'
+    glance_image_cirros_name: 'TestCirros-0.3.5'
+    glance_image_fedora_name: 'TestFedora-27-1.6'
+  glance:
+    client:
+      enabled: True
+      identity:
+        admin_identity:
+          image:
+            cirros:
+              name: ${_param:glance_image_cirros_name}
+              location: ${_param:glance_image_cirros_location}
+              import_from_format: 'qcow2'
+              container_format: 'bare'
+              disk_format: 'qcow2'
+              tags:
+                - 'cirros'
+              visibility: public
+              wait_timeout: 1000
+            fedora:
+              name: ${_param:glance_image_fedora_name}
+              location: ${_param:glance_image_fedora_location}
+              import_from_format: 'qcow2'
+              container_format: 'bare'
+              disk_format: 'qcow2'
+              tags:
+                - 'fedora'
+              visibility: public
+              wait_timeout: 1000
\ No newline at end of file
diff --git a/metadata/service/tempest/init.yml b/metadata/service/tempest/init.yml
new file mode 100644
index 0000000..5f00c21
--- /dev/null
+++ b/metadata/service/tempest/init.yml
@@ -0,0 +1,28 @@
+classes:
+  - service.runtest.tempest.glance
+  - service.runtest.tempest.nova
+  - service.runtest.tempest.neutron
+applications:
+ - runtest
+parameters:
+  _param:
+    runtest_heat_plugin_skip_scenario_test_list: 'SoftwareConfigIntegrationTest, VolumeBackupRestoreIntegrationTest'
+    runtest_path_to_ca_file: '/etc/ssl/certs/ca-certificates.crt'
+    tempest_test_target: cfg01*
+  runtest:
+    enabled: true
+    openstack_version: stable/${_param:openstack_version}
+    tempest:
+      enabled: true
+      test_target: ${_param:tempest_test_target}
+      heat_plugin:
+        skip_scenario_test_list: ${_param:runtest_heat_plugin_skip_scenario_test_list}
+        instance_type: 'test-m1.tiny'
+        minimal_instance_type: 'test-m1.extra_tiny'
+        auth_version: 3
+        project_domain_id: default
+        user_domain_id: default
+        disable_ssl_certificate_validation: False
+        ca_file: ${_param:runtest_path_to_ca_file}
+        image_ref: ${glance:client:identity:admin_identity:image:fedora:name}
+        minimal_image_ref: ${glance:client:identity:admin_identity:image:cirros:name}
diff --git a/metadata/service/tempest/neutron.yml b/metadata/service/tempest/neutron.yml
new file mode 100644
index 0000000..a4bcce7
--- /dev/null
+++ b/metadata/service/tempest/neutron.yml
@@ -0,0 +1,20 @@
+parameters:
+  neutron:
+    client:
+      server:
+        admin_identity:
+          network:
+            heat-net:
+              tenant: admin
+              shared: False
+              router_external: True
+              default: True
+              admin_state_up: True
+              subnet:
+                heat_subnet:
+                  cidr: 10.20.30.0/24
+                  allocation_pools:
+                    - start: 10.20.30.10
+                      end: 10.20.30.254
+                  gateway: 10.20.30.1
+                  enable_dhcp: False
\ No newline at end of file
diff --git a/metadata/service/tempest/nova.yml b/metadata/service/tempest/nova.yml
new file mode 100644
index 0000000..34e3d2b
--- /dev/null
+++ b/metadata/service/tempest/nova.yml
@@ -0,0 +1,15 @@
+parameters:
+  nova:
+    client:
+      enabled: True
+      server:
+        admin_identity:
+          flavor:
+            test-m1.tiny:
+              ram: 512
+              disk: 5
+              vcpus: 1
+            test-m1.extra_tiny:
+              ram: 256
+              disk: 1
+              vcpus: 1
\ No newline at end of file