summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaitlin Farr <kaitlin.farr@jhuapl.edu>2016-12-12 18:51:24 -0500
committerKaitlin Farr <kaitlin.farr@jhuapl.edu>2017-01-25 19:41:07 +0000
commit4de9aaccc6cb04bf59c95af65b7acebb51f73363 (patch)
tree2c45ccd92a13504d95c1b0d4a127f46755e087de
parent0eb09156adee9201b8e67ef8324b0ad3748d24d7 (diff)
downloadpython-barbicanclient-4de9aaccc6cb04bf59c95af65b7acebb51f73363.tar.gz
Skip order with 'None' payload content type
Re-adding the skip decorator because the content type still cannot be null. I98a558862eed039ed6f33fbee474bdb86767313e was supposed to fix it, but something is still broken, and a few extra checks in the test show this is true. Change-Id: Icb5c0e28bf0199962d2082143099905d4fb63685
-rw-r--r--functionaltests/client/v1/functional/test_orders.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/functionaltests/client/v1/functional/test_orders.py b/functionaltests/client/v1/functional/test_orders.py
index 3c1243e..f15d7cf 100644
--- a/functionaltests/client/v1/functional/test_orders.py
+++ b/functionaltests/client/v1/functional/test_orders.py
@@ -79,6 +79,7 @@ class OrdersTestCase(base.TestCase):
order_resp = self.barbicanclient.orders.get(order_ref)
self.assertEqual(order.name, order_resp.name)
+ @testcase.skip('Launchpad 1425667')
@testcase.attr('positive')
def test_create_order_defaults_payload_content_type_none(self):
"""Covers creating orders with various valid payload content types."""
@@ -88,6 +89,10 @@ class OrdersTestCase(base.TestCase):
order_ref = self.cleanup.add_entity(order)
self.assertIsNotNone(order_ref)
+ order_resp = self.barbicanclient.orders.get(order_ref)
+ self.assertTrue(order_resp.status == "ACTIVE" or
+ order_resp.status == "PENDING")
+
@testcase.attr('positive')
def test_create_order_defaults_check_empty_name(self):
"""Create order with empty meta name.