1
0
python-oci-sdk/ops_fixture-order.patch

72 lines
2.6 KiB
Diff
Raw Normal View History

Index: oci-python-sdk-2.102.0/tests/unit/test_basic_api_calls.py
===================================================================
--- oci-python-sdk-2.102.0.orig/tests/unit/test_basic_api_calls.py
+++ oci-python-sdk-2.102.0/tests/unit/test_basic_api_calls.py
Accepting request 820851 from home:glaubitz:branches:devel:languages:python - Update to version 2.17.2 * Support for registering and deregistering autonomous dedicated databases with Data Safe in the Database service * Support for switching between non-private-endpoints and private endpoints on autonomous databases in the Database service * Support for returning group names when listing identity provider groups in the Identity service * Support for server-side object re-encryption in the Object Storage service * Support for private endpoint (ingress) and public endpoint whitelisting in the Analytics Cloud service - from version 2.17.1 * Support for the Usage service * Support for the VMware Provisioning service * Support for applying one-off patches to databases in the Database service * Support for layer-2 virtualization features on vlans in the Networking service * Support for all AttachVolumeDetails and ParavirtualizedAttachVolumeDetails properties on instance configurations in the Compute Management service * Support for setting HTTP header size and allowing invalid characters in HTTP request headers in the Load Balancing service * Support for enabling/disabling HTTP logging. Please see https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/logging.html - from version 2.17.0 * Support for the Data Integration service * Support for updating database home IDs on databases in the Database service * Support for backing up autonomous databases on Cloud at Customer in the Database service * Support for managing autonomous VM clusters on Cloud at Customer in the Database service * Support for accessing data assets via private endpoints in the Data Catalog service * Support for dependency archive zip files to be specified for use by applications in the Data Flow service * Attribute `lifecycle_state` in the Data Catalog service has restricted values to "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING" OBS-URL: https://build.opensuse.org/request/show/820851 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=14
2020-07-14 13:57:23 +02:00
@@ -5,7 +5,7 @@
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
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 @@ def test_vcn_list_instances(compute, con
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
Index: oci-python-sdk-2.102.0/tests/unit/test_waiters.py
===================================================================
--- oci-python-sdk-2.102.0.orig/tests/unit/test_waiters.py
+++ oci-python-sdk-2.102.0/tests/unit/test_waiters.py
@@ -112,7 +112,7 @@ def test_wait_multiple_states(virtual_ne
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"]
@@ -135,7 +135,7 @@ def test_invalid_operation(identity, con
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"]
@@ -155,7 +155,7 @@ def test_already_in_state(identity, conf
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"]
@@ -182,7 +182,7 @@ def test_property_and_eval_function_prov
Accepting request 820851 from home:glaubitz:branches:devel:languages:python - Update to version 2.17.2 * Support for registering and deregistering autonomous dedicated databases with Data Safe in the Database service * Support for switching between non-private-endpoints and private endpoints on autonomous databases in the Database service * Support for returning group names when listing identity provider groups in the Identity service * Support for server-side object re-encryption in the Object Storage service * Support for private endpoint (ingress) and public endpoint whitelisting in the Analytics Cloud service - from version 2.17.1 * Support for the Usage service * Support for the VMware Provisioning service * Support for applying one-off patches to databases in the Database service * Support for layer-2 virtualization features on vlans in the Networking service * Support for all AttachVolumeDetails and ParavirtualizedAttachVolumeDetails properties on instance configurations in the Compute Management service * Support for setting HTTP header size and allowing invalid characters in HTTP request headers in the Load Balancing service * Support for enabling/disabling HTTP logging. Please see https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/logging.html - from version 2.17.0 * Support for the Data Integration service * Support for updating database home IDs on databases in the Database service * Support for backing up autonomous databases on Cloud at Customer in the Database service * Support for managing autonomous VM clusters on Cloud at Customer in the Database service * Support for accessing data assets via private endpoints in the Data Catalog service * Support for dependency archive zip files to be specified for use by applications in the Data Flow service * Attribute `lifecycle_state` in the Data Catalog service has restricted values to "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING" OBS-URL: https://build.opensuse.org/request/show/820851 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=14
2020-07-14 13:57:23 +02:00
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'
@@ -206,7 +206,7 @@ def test_eval_function_lambda(identity,
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'