1
0

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
This commit is contained in:
Robert Schweikert 2020-07-14 11:57:23 +00:00 committed by Git OBS Bridge
parent 2b730e79e6
commit 1539cd6b7b
5 changed files with 94 additions and 67 deletions

View File

@ -1,11 +1,7 @@
Author: Sean Marlow <sean.marlow@suse.com>
Date: 2019-12-11
Source: https://github.com/oracle/oci-python-sdk/issues/196
diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_basic_api_calls.py oci-python-sdk-2.10.3/tests/unit/test_basic_api_calls.py
--- oci-python-sdk-2.10.3.orig/tests/unit/test_basic_api_calls.py 2020-02-04 22:53:15.000000000 +0100
+++ oci-python-sdk-2.10.3/tests/unit/test_basic_api_calls.py 2020-02-07 12:48:24.663500407 +0100
@@ -4,7 +4,7 @@
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
@ -14,7 +10,7 @@ diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_basic_api_calls.py oci-pyth
response = identity.list_users(config["tenancy"])
assert response is not None
@@ -30,7 +30,7 @@
@@ -31,7 +31,7 @@
assert response.request_id is not None
@ -23,54 +19,10 @@ diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_basic_api_calls.py oci-pyth
response = identity.list_users(config["tenancy"], limit=1)
assert response is not None
diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_basic_api_calls.py.orig oci-python-sdk-2.10.3/tests/unit/test_basic_api_calls.py.orig
--- oci-python-sdk-2.10.3.orig/tests/unit/test_basic_api_calls.py.orig 1970-01-01 01:00:00.000000000 +0100
+++ oci-python-sdk-2.10.3/tests/unit/test_basic_api_calls.py.orig 2020-02-04 22:53:15.000000000 +0100
@@ -0,0 +1,40 @@
+# coding: utf-8
+# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
+
+import oci
+
+
+def test_identity_list_users(identity, config):
+ response = identity.list_users(config["tenancy"])
+
+ assert response is not None
+ assert len(response.data) > 0
+ assert type(response.data[0]) is oci.identity.models.User
+ assert response.status == 200
+ assert response.request_id is not None
+
+
+def test_vcn_list_vcns(virtual_network, config):
+ response = virtual_network.list_vcns(config["tenancy"])
+
+ assert response is not None
+ assert response.status == 200
+ assert response.request_id is not None
+
+
+def test_vcn_list_instances(compute, config):
+ response = compute.list_instances(config["tenancy"])
+
+ assert response is not None
+ assert response.status == 200
+ assert response.request_id is not None
+
+
+def test_limit(identity, config):
+ response = identity.list_users(config["tenancy"], limit=1)
+
+ assert response is not None
+ assert len(response.data) == 1
+ assert type(response.data[0]) is oci.identity.models.User
+ assert response.status == 200
+ assert response.request_id is not None
diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_waiters.py oci-python-sdk-2.10.3/tests/unit/test_waiters.py
--- oci-python-sdk-2.10.3.orig/tests/unit/test_waiters.py 2020-02-04 22:53:15.000000000 +0100
+++ oci-python-sdk-2.10.3/tests/unit/test_waiters.py 2020-02-07 12:48:24.663500407 +0100
@@ -108,7 +108,7 @@
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
@ -79,7 +31,7 @@ diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_waiters.py oci-python-sdk-2
# Create User
request = oci.identity.models.CreateUserDetails()
request.compartment_id = config["tenancy"]
@@ -131,7 +131,7 @@
@@ -132,7 +132,7 @@
oci.wait_until(identity, response, 'not a real property', 'test')
@ -88,7 +40,7 @@ diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_waiters.py oci-python-sdk-2
description = 'test user'
request = oci.identity.models.CreateUserDetails()
request.compartment_id = config["tenancy"]
@@ -151,7 +151,7 @@
@@ -152,7 +152,7 @@
identity.delete_user(user_id)
@ -97,8 +49,8 @@ diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_waiters.py oci-python-sdk-2
description = 'test user'
request = oci.identity.models.CreateUserDetails()
request.compartment_id = config["tenancy"]
@@ -182,7 +182,7 @@
assert str(ve.value) == 'If an evaluate_response function is provided, then the property argument cannot also be provided'
@@ -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):
@ -106,7 +58,7 @@ diff -Nru oci-python-sdk-2.10.3.orig/tests/unit/test_waiters.py oci-python-sdk-2
user_id = None
try:
description = 'test user'
@@ -206,7 +206,7 @@
@@ -207,7 +207,7 @@
identity.delete_user(user_id)

View File

@ -1,3 +1,78 @@
-------------------------------------------------------------------
Tue Jul 14 09:15:27 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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"
* Attribute `workflow_status` in the Data Catalog service has restricted values to
"NEW", "APPROVED", "UNDER_REVIEW", "ESCALATED"
* Attribute `schedule_type` in the Data Catalog service has restricted values to "SCHEDULED", "IMMEDIATE"
* Attribute `job_type` in the Data Catalog service has restricted values to "HARVEST",
"PROFILING", "SAMPLING", "PREVIEW", "IMPORT", "EXPORT", "INTERNAL", "PURGE", "IMMEDIATE", "SCHEDULED",
"IMMEDIATE_EXECUTION", "SCHEDULED_EXECUTION", "SCHEDULED_EXECUTION_INSTANCE"
* Attribute `harvest_status` in the Data Catalog service has restricted values to "COMPLETE",
"ERROR", "IN_PROGRESS", "DEFERRED"
- from version 2.16.1
* Support for creating a new database from an existing database based on
a given timestamp in the Database service
* Support for enabling archive log backups of databases in the Database service
* Support for returning the database version on autonomous container databases in the Database service
* Support for the new DNS format of the Data Transfer service
* Support for scheduled autoscaling, which allows for scaling actions triggered at particular
times based on CRON expressions, in the Compute Autoscaling service
* Support for filtering of list APIs for groups, identity providers, identity provider groups,
compartments, dynamic groups, network sources, policies, and users by name or lifecycle
state in the Identity Service
* Support for returning the database version of backups in the Database service
* Support for patching on Exadata Cloud at Customer resources in the Database service
* Support for new lifecycle substates on instances in the Digital Assistant service
* Support for file servers in the Integration service
* Support for deleting non-empty tag namespaces and bulk deleting tags in the Identity service
* Support for bulk move and bulk delete of resources by compartment in the Identity service
* Data type for paramater `data_storage_size_in_tbs` changed from int to float in the Database service
* Parameter `lifecycle_state` removed state `OFFLINE` and added `DISCONNECTED` in the Database service
- from version 2.15.0
* Support for optionally supplying a signature when deleting an agreement in the Marketplace service
* Support for launching paid listings in non-US regions in the Marketplace service
* Support for returning the image id of packages in the Marketplace service
* Support for calling Oracle Cloud Infrastructure services in the ap-chuncheon-1 region
* Support for authenticating via Resource Principals. An example of how to use resource principals is
available on `GitHub <https://github.com/oracle/oci-python-sdk/blob/master/examples/resource_principals_example.py>`__
* Fixed a bug where `oci.waiter.wait_until()` was not invoking `wait_callback` correctly based on the resource property
* Fixed a bug in `ExponentialBackoffWithFullJitterRetryStrategy.do_sleep()` where it
was assuming time in milliseconds but it should be seconds
* Field `signature` in `delete_accepted_agreement_id` from Marketplace Service changed from required to optional
- Refresh patches for new version
ops_fixture-order.patch
- Update file list to fix Python imports for unvendoring
-------------------------------------------------------------------
Tue Jun 2 10:12:27 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-oci-sdk
Version: 2.14.3
Version: 2.17.2
Release: 0
Summary: Oracle Cloud Infrastructure Python SDK
License: UPL-1.0 OR Apache-2.0
@ -76,7 +76,7 @@ Python SDK for Oracle Cloud Infrastructure. Python 2.7+ and 3.5+ are supported.
rm -rf src/oci/_vendor/
# Fix includes
sed -i 's/from \._vendor //' src/oci/*.py
sed -i 's/from oci._vendor //' src/oci/*.py src/oci/analytics/*.py src/oci/apigateway/*.py src/oci/application_migration/*.py src/oci/announcements_service/*.py src/oci/audit/*.py src/oci/auth/*.py src/oci/auth/signers/*.py src/oci/autoscaling/*.py src/oci/bds/*.py src/oci/budget/*.py src/oci/cims/*.py src/oci/container_engine/*.py src/oci/dns/*.py src/oci/core/*.py src/oci/database/*.py src/oci/data_catalog/*.py src/oci/data_flow/*.py src/oci/data_safe/*.py src/oci/data_science/*.py src/oci/dts/*.py src/oci/email/*.py src/oci/events/*.py src/oci/file_storage/*.py src/oci/functions/*.py src/oci/healthchecks/*.py src/oci/integration/*.py src/oci/key_management/*.py src/oci/marketplace/*.py src/oci/limits/*.py src/oci/load_balancer/*.py src/oci/monitoring/*.py src/oci/mysql/*.py src/oci/nosql/*.py src/oci/oda/*.py src/oci/object_storage/*.py src/oci/oce/*.py src/oci/ons/*.py src/oci/object_storage/transfer/*.py src/oci/object_storage/transfer/internal/*.py src/oci/os_management/*.py src/oci/resource_manager/*.py src/oci/streaming/*.py src/oci/identity/*.py src/oci/resource_search/*.py src/oci/secrets/*.py src/oci/vault/*.py src/oci/waas/*.py src/oci/work_requests/*.py tests/*.py
sed -i 's/from oci._vendor //' src/oci/*.py src/oci/analytics/*.py src/oci/apigateway/*.py src/oci/application_migration/*.py src/oci/announcements_service/*.py src/oci/audit/*.py src/oci/auth/*.py src/oci/auth/signers/*.py src/oci/autoscaling/*.py src/oci/bds/*.py src/oci/budget/*.py src/oci/cims/*.py src/oci/container_engine/*.py src/oci/dns/*.py src/oci/core/*.py src/oci/database/*.py src/oci/data_catalog/*.py src/oci/data_flow/*.py src/oci/data_integration/*.py src/oci/data_safe/*.py src/oci/data_science/*.py src/oci/dts/*.py src/oci/email/*.py src/oci/events/*.py src/oci/file_storage/*.py src/oci/functions/*.py src/oci/healthchecks/*.py src/oci/integration/*.py src/oci/key_management/*.py src/oci/marketplace/*.py src/oci/limits/*.py src/oci/load_balancer/*.py src/oci/monitoring/*.py src/oci/mysql/*.py src/oci/nosql/*.py src/oci/oda/*.py src/oci/object_storage/*.py src/oci/oce/*.py src/oci/ons/*.py src/oci/object_storage/transfer/*.py src/oci/object_storage/transfer/internal/*.py src/oci/ocvp/*.py src/oci/os_management/*.py src/oci/resource_manager/*.py src/oci/streaming/*.py src/oci/identity/*.py src/oci/resource_search/*.py src/oci/secrets/*.py src/oci/usage_api/*.py src/oci/vault/*.py src/oci/waas/*.py src/oci/work_requests/*.py tests/*.py
sed -i 's/ oci._vendor.jwt as//' src/oci/auth/*.py
sed -i 's/oci\._vendor\.//' src/oci/*.py src/oci/auth/signers/*.py src/oci/retry/*.py src/oci/object_storage/transfer/internal/*.py tests/*.py
sed -i 's/from . import vcr_mods//' tests/test_config_container.py

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1169451e7bb93552900afc0ae1b412bc462145c1c4fa51ee77c1bc6793c37716
size 7189210

3
v2.17.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b91dd983d2ec061d3fc32717afe9ae21bdde4d95d6fdbe5a33a2e779da414bf
size 7699409