Limit tests should pass correct image and flavor
The existing absolute limit tests were passing hard-coded values for
`flavor_ref` and `image_ref`. This patch switches it to use the values defined
in the tempest config.
Since these hard-coded values were incorrect, it imposed an order on which the
validation checks in Nova had to be run, which is not something we want.
By passing correct data, we're only testing that the limit test was performed,
not that it was performed before the image-check, for example.
Change-Id: I93e29c3be0f257de65a8e87b3552616786e205db
diff --git a/tempest/api/compute/limits/test_absolute_limits.py b/tempest/api/compute/limits/test_absolute_limits.py
index b2c496b..c436856 100644
--- a/tempest/api/compute/limits/test_absolute_limits.py
+++ b/tempest/api/compute/limits/test_absolute_limits.py
@@ -63,8 +63,9 @@
self.assertRaises(exceptions.OverLimit,
self.server_client.create_server,
- name='test', meta=meta_data, flavor_ref='84',
- image_ref='9e6a2e3b-1601-42a5-985f-c3a2f93a5ec3')
+ name='test', meta=meta_data,
+ flavor_ref=self.flavor_ref,
+ image_ref=self.image_ref)
class AbsoluteLimitsTestXML(AbsoluteLimitsTestJSON):