diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2020-04-20 17:48:17 +0900 |
---|---|---|
committer | Douglas Mendizábal <dmendiza@redhat.com> | 2020-06-08 15:40:22 -0500 |
commit | 6420da336083d936da9a4563149b08d785d70c84 (patch) | |
tree | 9cf7c2ce2cff5e7352d7b35a1dcee3bf675534e4 /functionaltests/client/v1/functional/test_orders.py | |
parent | e5fdd10f04488d6f6e252a63c57bf2be92a06c8f (diff) | |
download | python-barbicanclient-6420da336083d936da9a4563149b08d785d70c84.tar.gz |
Fix gate job failures and py3 compatibility
- Fix incorrect type handling of secret payload in py3
(it should be bytes instead of str by default)
- Fix py3 compatibility of test codes
- Update expiration date so that resources are created with valid
expiration.
Change-Id: I4935f601f87e9c49499da1034a320eee2e655b4d
Diffstat (limited to 'functionaltests/client/v1/functional/test_orders.py')
-rw-r--r-- | functionaltests/client/v1/functional/test_orders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functionaltests/client/v1/functional/test_orders.py b/functionaltests/client/v1/functional/test_orders.py index 4dc2444..3fd34e1 100644 --- a/functionaltests/client/v1/functional/test_orders.py +++ b/functionaltests/client/v1/functional/test_orders.py @@ -164,7 +164,7 @@ class OrdersTestCase(base.TestCase): e = self.assertRaises(ValueError, self.barbicanclient.orders.get, ref) # verify that the order get failed - self.assertEqual('Order incorrectly specified.', e.message) + self.assertEqual('Order incorrectly specified.', str(e)) @testcase.attr('negative') def test_get_order_defaults_that_doesnt_exist_valid_uuid(self): @@ -252,7 +252,7 @@ class OrdersTestCase(base.TestCase): self.assertEqual(order.bit_length, order_resp.bit_length) @utils.parameterized_dataset({ - 'negative_maxint': [-sys.maxint], + 'negative_maxsize': [-sys.maxsize], 'negative_7': [-7], 'negative_1': [-1], '0': [0], |