Implements test_flavors.test_invalid_min(Ram|Disk)_filter
Implements (negative) test functions for invalid
minRam and invalid minDisk parameters.
Partially implements bp missing-tempest-tests
Change-Id: I80a6efa7f5464aa94893997f43134d4760c64fce
diff --git a/tempest/tests/compute/flavors/test_flavors.py b/tempest/tests/compute/flavors/test_flavors.py
index 298984f..8be9aba 100644
--- a/tempest/tests/compute/flavors/test_flavors.py
+++ b/tempest/tests/compute/flavors/test_flavors.py
@@ -131,6 +131,18 @@
self.assertFalse(any([i for i in flavors if i['id'] == flavor_id]))
@attr(type='negative')
+ def test_invalid_minRam_filter(self):
+ self.assertRaises(exceptions.BadRequest,
+ self.client.list_flavors_with_detail,
+ {'minRam': 'invalid'})
+
+ @attr(type='negative')
+ def test_invalid_minDisk_filter(self):
+ self.assertRaises(exceptions.BadRequest,
+ self.client.list_flavors_with_detail,
+ {'minDisk': 'invalid'})
+
+ @attr(type='negative')
def test_get_flavor_details_for_invalid_flavor_id(self):
# Ensure 404 returned for non-existant flavor ID
self.assertRaises(exceptions.NotFound, self.client.get_flavor_details,