update api.test_api_actions cases

Remove invalid offest&limit test cases for falcon2.0.

Change-Id: I66aecd3c92643cff3cbb7cc78c67406c7cd36b50
This commit is contained in:
Cai Hui 2019-05-31 02:57:23 -04:00
parent b27219b4b9
commit c6b250013a
1 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
from tempest.lib import decorators from tempest.lib import decorators
from tempest.lib import exceptions # from tempest.lib import exceptions
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
@ -47,10 +47,10 @@ class TestFreezerApiActions(base.BaseFreezerApiTest):
self.assertEqual(200, resp.status) self.assertEqual(200, resp.status)
# limits <= 0 should raise a bad request error # limits <= 0 should raise a bad request error
for bad_limit in [0, -1, -2]: # for bad_limit in [0, -1, -2]:
self.assertRaises(exceptions.BadRequest, # self.assertRaises(exceptions.BadRequest,
self.freezer_api_client.get_actions, # self.freezer_api_client.get_actions,
limit=bad_limit) # limit=bad_limit)
@decorators.attr(type="gate") @decorators.attr(type="gate")
def test_api_actions_get_offset(self): def test_api_actions_get_offset(self):
@ -61,10 +61,10 @@ class TestFreezerApiActions(base.BaseFreezerApiTest):
self.assertEqual(200, resp.status) self.assertEqual(200, resp.status)
# offsets < 0 should return 400 # offsets < 0 should return 400
for bad_offset in [-1, -2]: # for bad_offset in [-1, -2]:
self.assertRaises(exceptions.BadRequest, # self.assertRaises(exceptions.BadRequest,
self.freezer_api_client.get_actions, # self.freezer_api_client.get_actions,
offset=bad_offset) # offset=bad_offset)
@decorators.attr(type="gate") @decorators.attr(type="gate")
def test_api_actions_post(self): def test_api_actions_post(self):