python-oci-sdk/ops_fixture-order.patch

70 lines
2.5 KiB
Diff
Raw Permalink Normal View History

2023-01-05 01:42:25 +00:00
diff -Nru oci-python-sdk-2.17.2.orig/tests/unit/test_basic_api_calls.py oci-python-sdk-2.17.2/tests/unit/test_basic_api_calls.py
--- oci-python-sdk-2.17.2.orig/tests/unit/test_basic_api_calls.py 2020-07-07 23:40:28.000000000 +0200
+++ oci-python-sdk-2.17.2/tests/unit/test_basic_api_calls.py 2020-07-14 11:04:06.710713773 +0200
@@ -5,7 +5,7 @@
import oci
-def test_identity_list_users(identity, config):
+def test_identity_list_users(config, identity):
response = identity.list_users(config["tenancy"])
assert response is not None
@@ -31,7 +31,7 @@
assert response.request_id is not None
-def test_limit(identity, config):
+def test_limit(config, identity):
response = identity.list_users(config["tenancy"], limit=1)
assert response is not None
diff -Nru oci-python-sdk-2.17.2.orig/tests/unit/test_waiters.py oci-python-sdk-2.17.2/tests/unit/test_waiters.py
--- oci-python-sdk-2.17.2.orig/tests/unit/test_waiters.py 2020-07-07 23:40:28.000000000 +0200
+++ oci-python-sdk-2.17.2/tests/unit/test_waiters.py 2020-07-14 11:04:11.938762342 +0200
@@ -109,7 +109,7 @@
assert total_time < 60 * 5
-def test_invalid_operation(identity, config):
+def test_invalid_operation(config, identity):
# Create User
request = oci.identity.models.CreateUserDetails()
request.compartment_id = config["tenancy"]
@@ -132,7 +132,7 @@
oci.wait_until(identity, response, 'not a real property', 'test')
-def test_already_in_state(identity, config):
+def test_already_in_state(config, identity):
description = 'test user'
request = oci.identity.models.CreateUserDetails()
request.compartment_id = config["tenancy"]
@@ -152,7 +152,7 @@
identity.delete_user(user_id)
-def test_wait_time_exceeded(identity, config):
+def test_wait_time_exceeded(config, identity):
description = 'test user'
request = oci.identity.models.CreateUserDetails()
request.compartment_id = config["tenancy"]
@@ -183,7 +183,7 @@
assert str(ve.value) == 'Invalid wait_until configuration - can not provide both evaluate_response function and property argument, only one should be specified'
-def test_eval_function_lambda(identity, config):
+def test_eval_function_lambda(config, identity):
user_id = None
try:
description = 'test user'
@@ -207,7 +207,7 @@
identity.delete_user(user_id)
-def test_eval_function_func_ref(identity, config):
+def test_eval_function_func_ref(config, identity):
user_id = None
try:
description = 'test user'