Add minimal_instance_type config option
for integration tests. Use a flavor similar to m1.micro for that.
It is enough to start both minimal and functional tests images with no
serious payload and should decrease the amount of RAM consumed by VMs
in corresponding tests four-fold.
Change-Id: I378b5a3cde020176ac45ebf8d05bd13278861a4e
Related-Bug: #1435285
diff --git a/functional/test_validation.py b/functional/test_validation.py
index 2df6356..6a65091 100644
--- a/functional/test_validation.py
+++ b/functional/test_validation.py
@@ -22,8 +22,9 @@
if not self.conf.minimal_image_ref:
raise self.skipException("No image configured to test")
- if not self.conf.instance_type:
- raise self.skipException("No instance_type configured to test")
+ if not self.conf.minimal_instance_type:
+ raise self.skipException(
+ "No minimal_instance_type configured to test")
self.assign_keypair()
@@ -72,7 +73,7 @@
env = {'resource_registry':
{'My::Config': 'provider.yaml'}}
parameters = {'keyname': self.keypair_name,
- 'flavor': self.conf.instance_type,
+ 'flavor': self.conf.minimal_instance_type,
'image': self.conf.minimal_image_ref}
# Note we don't wait for CREATE_COMPLETE, because we're using a
# minimal image without the tools to apply the config.