Skip to content

Commit ce20dcc

Browse files
Merge pull request #608 from oracle/release_2022-11-08
Releasing version 3.20.1
2 parents e8e4fa5 + 1a31cd3 commit ce20dcc

File tree

69 files changed

+1807
-871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1807
-871
lines changed

CHANGELOG.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,76 @@ All notable changes to this project will be documented in this file.
66

77
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.
88

9+
3.20.1 - 2022-11-08
10+
--------------------
11+
12+
Added
13+
~~~~~
14+
15+
* Database service
16+
17+
* Support for new commands
18+
19+
* ``oci db autonomous-database list-refreshable-clones``
20+
* ``oci db cloud-exa-infra add-storage``
21+
* ``oci db cloud-vm-cluster add``
22+
* ``oci db cloud-vm-cluster remove``
23+
24+
* Support for new optional parameters
25+
26+
* ``oci db cloud-vm-cluster create --data-storage-size-in-tbs --db-node-storage-size-in-gbs --db-servers --memory-size-in-gbs``
27+
* ``oci db cloud-vm-cluster update --data-storage-size-in-tbs --db-node-storage-size-in-gbs --memory-size-in-gbs``
28+
29+
* Support for creating rollback jobs in the Resource Manager service
30+
31+
* ``oci resource-manager job create-plan-rollback-job``
32+
* ``oci resource-manager job create-apply-rollback-job``
33+
34+
* Support for EDGE value for existing parameter --node-type in the Big Data service
35+
36+
* ``oci bds instance worker-nodes add --node-type``
37+
38+
* Support for new optional parameter in the Data Flow service
39+
40+
* ``oci data-flow private-endpoint create --scan-details``
41+
* ``oci data-flow private-endpoint update --scan-details``
42+
43+
* Application Dependency Management service
44+
45+
* Support for new commands
46+
47+
* ``oci adm vulnerability-audit create-vulnerability-audit-external-resource-vulnerability-audit-source``
48+
* ``oci adm vulnerability-audit create-vulnerability-audit-oci-resource-vulnerability-audit-source``
49+
* ``oci adm vulnerability-audit create-vulnerability-audit-unknown-source-vulnerability-audit-source``
50+
51+
* Support for new optional parameters
52+
53+
* ``oci adm vulnerability-audit list-application-dependency-vulnerabilities --depth --root-node-id``
54+
55+
Changed
56+
~~~~~~~
57+
58+
* Dependency on click is downgraded to 7.1.2
59+
60+
* The required parameters --application-dependencies --compartment-id are now optional in the Application Dependency Management service
61+
62+
* ``oci adm vulnerability-audit create --application-dependencies --compartment-id``
63+
64+
* Error message improvement with troubleshooting tips on RequestTimeout and ConnectTimeout for CLI commands with JSON inputs
65+
66+
Fixed
67+
~~~~~
68+
69+
* Fixed incorrectly raised PermissionError when downloading content in folders created from the console in the Object Storage service
70+
71+
* ``oci os object bulk-download``
72+
73+
* Fixed repeated confirmation prompt for no passphrase setup
74+
75+
* ``oci setup config``
76+
* ``oci setup keys``
77+
78+
979
3.20.0 - 2022-11-01
1080
--------------------
1181

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def invoke(*args, **kwargs):
174174
except TypeError:
175175
new_output_bytes = cleaned_output
176176
finally:
177-
result = click.testing.Result(result.runner, new_output_bytes, result.stderr_bytes, result, result.exit_code, result.exception, result.exc_info)
177+
result = click.testing.Result(result.runner, new_output_bytes, result.exit_code, result.exception, result.exc_info)
178178

179179
return result
180180

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ appdirs==1.4.3
66
arrow>=1.0.0
77
certifi
88
cffi>=1.9.1
9-
click==8.0.4
9+
click==7.1.2
1010
coverage==4.5.2
1111
cryptography>=3.2.1,<=37.0.2
1212
httpsig-cffi==15.0.0
1313
Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.87.0
17+
oci==2.88.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

services/adm/src/oci_cli_application_dependency_management/generated/applicationdependencymanagement_cli.py

Lines changed: 280 additions & 9 deletions
Large diffs are not rendered by default.

services/analytics/tests/unit/test_analytics_cli_extended.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_analytics_instance_create(self):
6464
'--email-notification', email,
6565
'--idcs-access-token-file', token_file
6666
])
67-
assert 'Error: No such option: --capacity ' in result.output
67+
assert 'Error: no such option: --capacity ' in result.output
6868

6969
# Check that --idcs-access-token is not expected on the CLI and triggers an error.
7070
result = util.invoke_command([
@@ -80,7 +80,7 @@ def test_analytics_instance_create(self):
8080
'--idcs-access-token', 'eyJraWQiOiJhc3dfb2'
8181
'--idcs-access-token-file', token_file
8282
])
83-
assert 'Error: No such option: --idcs-access-token ' in result.output
83+
assert 'Error: no such option: --idcs-access-token ' in result.output
8484

8585
def test_private_endpoint_feature(self):
8686

@@ -138,7 +138,7 @@ def test_vanity_url_feature(self):
138138
'--ca-certificate-file', intermediates_file,
139139
'--private-key', 'abcdefg'
140140
])
141-
assert 'Error: No such option: --private-key ' in result.output
141+
assert 'Error: no such option: --private-key ' in result.output
142142

143143
# Check that create-vanity-url --public-certificate is not expected on the CLI and triggers an error.
144144
result = util.invoke_command([
@@ -150,7 +150,7 @@ def test_vanity_url_feature(self):
150150
'--ca-certificate-file', intermediates_file,
151151
'--public-certificate', 'abcdefg'
152152
])
153-
assert 'Error: No such option: --public-certificate ' in result.output
153+
assert 'Error: no such option: --public-certificate ' in result.output
154154

155155
# Check that create-vanity-url --ca-certificate is not expected on the CLI and triggers an error.
156156
result = util.invoke_command([
@@ -162,7 +162,7 @@ def test_vanity_url_feature(self):
162162
'--ca-certificate-file', intermediates_file,
163163
'--ca-certificate', 'abcdefg'
164164
])
165-
assert 'Error: No such option: --ca-certificate ' in result.output
165+
assert 'Error: no such option: --ca-certificate ' in result.output
166166

167167
# Check that update-vanity-url --private-key is not expected on the CLI and triggers an error.
168168
result = util.invoke_command([
@@ -173,7 +173,7 @@ def test_vanity_url_feature(self):
173173
'--ca-certificate-file', intermediates_file,
174174
'--private-key', 'abcdefg'
175175
])
176-
assert 'Error: No such option: --private-key ' in result.output
176+
assert 'Error: no such option: --private-key ' in result.output
177177

178178
# Check that update-vanity-url --public-certificate is not expected on the CLI and triggers an error.
179179
result = util.invoke_command([
@@ -184,7 +184,7 @@ def test_vanity_url_feature(self):
184184
'--ca-certificate-file', intermediates_file,
185185
'--public-certificate', 'abcdefg'
186186
])
187-
assert 'Error: No such option: --public-certificate ' in result.output
187+
assert 'Error: no such option: --public-certificate ' in result.output
188188

189189
# Check that update-vanity-url --ca-certificate is not expected on the CLI and triggers an error.
190190
result = util.invoke_command([
@@ -195,4 +195,4 @@ def test_vanity_url_feature(self):
195195
'--ca-certificate-file', intermediates_file,
196196
'--ca-certificate', 'abcdefg'
197197
])
198-
assert 'Error: No such option: --ca-certificate ' in result.output
198+
assert 'Error: no such option: --ca-certificate ' in result.output

services/apigateway/tests/unit/test_apigateway_api_extended.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,48 +29,48 @@ def test_api_create(self):
2929
assert 'Error: Missing option(s)' in result.output
3030
assert '--compartment-id' in result.output
3131
result = util.invoke_command(['api-gateway', 'api', 'create', '--compartment-id'])
32-
assert 'Error: Option \'--compartment-id\' requires an argument' in result.output
32+
assert 'Error: --compartment-id option requires an argument' in result.output
3333
result = util.invoke_command(['api-gateway', 'api', 'create', '--display-name'])
34-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
34+
assert 'Error: --display-name option requires an argument' in result.output
3535
result = util.invoke_command(['api-gateway', 'api', 'create', '--defined-tags'])
36-
assert 'Error: Option \'--defined-tags\' requires an argument' in result.output
36+
assert 'Error: --defined-tags option requires an argument' in result.output
3737
result = util.invoke_command(['api-gateway', 'api', 'create', '--freeform-tags'])
38-
assert 'Error: Option \'--freeform-tags\' requires an argument' in result.output
38+
assert 'Error: --freeform-tags option requires an argument' in result.output
3939
result = util.invoke_command(['api-gateway', 'api', 'create', '--content'])
40-
assert 'Error: Option \'--content\' requires an argument' in result.output
40+
assert 'Error: --content option requires an argument' in result.output
4141

4242
def test_api_update(self):
4343
result = util.invoke_command(['api-gateway', 'api', 'update'])
4444
assert 'Error: Missing option(s)' in result.output
4545
assert '--api-id' in result.output
4646
result = util.invoke_command(['api-gateway', 'api', 'update', '--api-id'])
47-
assert 'Error: Option \'--api-id\' requires an argument' in result.output
47+
assert 'Error: --api-id option requires an argument' in result.output
4848
result = util.invoke_command(['api-gateway', 'api', 'update', '--display-name'])
49-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
49+
assert 'Error: --display-name option requires an argument' in result.output
5050
result = util.invoke_command(['api-gateway', 'api', 'update', '--defined-tags'])
51-
assert 'Error: Option \'--defined-tags\' requires an argument' in result.output
51+
assert 'Error: --defined-tags option requires an argument' in result.output
5252
result = util.invoke_command(['api-gateway', 'api', 'update', '--freeform-tags'])
53-
assert 'Error: Option \'--freeform-tags\' requires an argument' in result.output
53+
assert 'Error: --freeform-tags option requires an argument' in result.output
5454
result = util.invoke_command(['api-gateway', 'api', 'update', '--content'])
55-
assert 'Error: Option \'--content\' requires an argument' in result.output
55+
assert 'Error: --content option requires an argument' in result.output
5656
result = util.invoke_command(['api-gateway', 'api', 'update', '--if-match'])
57-
assert 'Error: Option \'--if-match\' requires an argument' in result.output
57+
assert 'Error: --if-match option requires an argument' in result.output
5858

5959
def test_api_delete(self):
6060
result = util.invoke_command(['api-gateway', 'api', 'delete'])
6161
assert 'Error: Missing option(s)' in result.output
6262
assert '--api-id' in result.output
6363
result = util.invoke_command(['api-gateway', 'api', 'delete', '--api-id'])
64-
assert 'Error: Option \'--api-id\' requires an argument' in result.output
64+
assert 'Error: --api-id option requires an argument' in result.output
6565
result = util.invoke_command(['api-gateway', 'api', 'delete', '--if-match'])
66-
assert 'Error: Option \'--if-match\' requires an argument' in result.output
66+
assert 'Error: --if-match option requires an argument' in result.output
6767

6868
def test_api_list(self):
6969
result = util.invoke_command(['api-gateway', 'api', 'list'])
7070
assert 'Error: Missing option(s)' in result.output
7171
assert '--compartment-id' in result.output
7272
result = util.invoke_command(['api-gateway', 'api', 'list', '--display-name'])
73-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
73+
assert 'Error: --display-name option requires an argument' in result.output
7474

7575
def test_api_get(self):
7676
result = util.invoke_command(['api-gateway', 'api', 'get'])
@@ -92,7 +92,7 @@ def test_api_content(self):
9292
assert '--api-id' in result.output
9393
assert '--file' in result.output
9494
result = util.invoke_command(['api-gateway', 'api', 'content', 'get', '--if-match'])
95-
assert 'Error: Option \'--if-match\' requires an argument' in result.output
95+
assert 'Error: --if-match option requires an argument' in result.output
9696

9797
def test_api_deployment_specification(self):
9898
result = util.invoke_command(['api-gateway', 'api', 'deployment-specification'])
@@ -102,7 +102,7 @@ def test_api_deployment_specification(self):
102102
assert 'Error: Missing option(s)' in result.output
103103
assert '--api-id' in result.output
104104
result = util.invoke_command(['api-gateway', 'api', 'deployment-specification', 'get', '--if-match'])
105-
assert 'Error: Option \'--if-match\' requires an argument' in result.output
105+
assert 'Error: --if-match option requires an argument' in result.output
106106

107107
def test_api_validations(self):
108108
result = util.invoke_command(['api-gateway', 'api', 'validations'])
@@ -112,4 +112,4 @@ def test_api_validations(self):
112112
assert 'Error: Missing option(s)' in result.output
113113
assert '--api-id' in result.output
114114
result = util.invoke_command(['api-gateway', 'api', 'validations', 'get', '--if-match'])
115-
assert 'Error: Option \'--if-match\' requires an argument' in result.output
115+
assert 'Error: --if-match option requires an argument' in result.output

services/apigateway/tests/unit/test_apigateway_certificate_extended.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_cert_compartment_change(self):
3838
result = util.invoke_command(
3939
['api-gateway', 'certificate', 'change-compartment', command])
4040

41-
verify(result, ['Error: Option \'{c}\' requires an argument'.format(
41+
verify(result, ['Error: {c} option requires an argument'.format(
4242
c=command)])
4343

4444
def test_cert_create(self):
@@ -62,7 +62,7 @@ def test_cert_create(self):
6262
result = util.invoke_command(
6363
['api-gateway', 'certificate', 'create', command])
6464

65-
verify(result, ['Error: Option \'{c}\' requires an argument'.format(
65+
verify(result, ['Error: {c} option requires an argument'.format(
6666
c=command)])
6767

6868
def test_cert_delete(self):
@@ -86,7 +86,7 @@ def test_cert_delete(self):
8686
for command in expected[1:-2]:
8787
result = util.invoke_command(
8888
['api-gateway', 'certificate', 'delete', command])
89-
verify(result, ['Error: Option \'{c}\' requires an argument'.format(
89+
verify(result, ['Error: {c} option requires an argument'.format(
9090
c=command)])
9191

9292
def test_cert_get(self):
@@ -104,7 +104,7 @@ def test_cert_get(self):
104104
for command in expected[1:-2]:
105105
result = util.invoke_command(
106106
['api-gateway', 'certificate', 'get', command])
107-
verify(result, ['Error: Option \'{c}\' requires an argument'.format(
107+
verify(result, ['Error: {c} option requires an argument'.format(
108108
c=command)])
109109

110110
def test_cert_list(self):
@@ -129,7 +129,7 @@ def test_cert_list(self):
129129
for command in expected[1:-2]:
130130
result = util.invoke_command(
131131
['api-gateway', 'certificate', 'list', command])
132-
verify(result, ['Error: Option \'{c}\' requires an argument'.format(
132+
verify(result, ['Error: {c} option requires an argument'.format(
133133
c=command)])
134134

135135
def test_cert_update(self):
@@ -153,7 +153,7 @@ def test_cert_update(self):
153153
for command in expected[1:-2]:
154154
result = util.invoke_command(
155155
['api-gateway', 'certificate', 'update', command])
156-
verify(result, ['Error: Option \'{c}\' requires an argument'.format(
156+
verify(result, ['Error: {c} option requires an argument'.format(
157157
c=command)])
158158

159159

services/apigateway/tests/unit/test_apigateway_deployment_extended.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def test_update_deployment(self):
3030
assert 'Error: Missing option(s)' in result.output
3131
assert '--deployment-id' in result.output
3232
result = util.invoke_command(['api-gateway', 'deployment', 'update', '--display-name'])
33-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
33+
assert 'Error: --display-name option requires an argument' in result.output
3434
result = util.invoke_command(['api-gateway', 'deployment', 'update', '--specification'])
35-
assert 'Error: Option \'--specification\' requires an argument' in result.output
35+
assert 'Error: --specification option requires an argument' in result.output
3636

3737
def test_delete_deployment(self):
3838
result = util.invoke_command(['api-gateway', 'deployment', 'delete'])
@@ -44,9 +44,9 @@ def test_list_deployment(self):
4444
assert 'Error: Missing option(s)' in result.output
4545
assert '--compartment-id' in result.output
4646
result = util.invoke_command(['api-gateway', 'deployment', 'list', '--display-name'])
47-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
47+
assert 'Error: --display-name option requires an argument' in result.output
4848
result = util.invoke_command(['api-gateway', 'deployment', 'list', '--gateway-id'])
49-
assert 'Error: Option \'--gateway-id\' requires an argument' in result.output
49+
assert 'Error: --gateway-id option requires an argument' in result.output
5050

5151
def test_change_compartment(self):
5252
result = util.invoke_command(['api-gateway', 'deployment', 'change-compartment'])

services/apigateway/tests/unit/test_apigateway_gateway_extended.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_update_gateway(self):
3030
assert 'Error: Missing option(s)' in result.output
3131
assert '--gateway-id' in result.output
3232
result = util.invoke_command(['api-gateway', 'gateway', 'update', '--display-name'])
33-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
33+
assert 'Error: --display-name option requires an argument' in result.output
3434

3535
def test_delete_gateway(self):
3636
result = util.invoke_command(['api-gateway', 'gateway', 'delete'])
@@ -42,7 +42,7 @@ def test_list_gateway(self):
4242
assert 'Error: Missing option(s)' in result.output
4343
assert '--compartment-id' in result.output
4444
result = util.invoke_command(['api-gateway', 'gateway', 'list', '--display-name'])
45-
assert 'Error: Option \'--display-name\' requires an argument' in result.output
45+
assert 'Error: --display-name option requires an argument' in result.output
4646

4747
def test_change_compartment(self):
4848
result = util.invoke_command(['api-gateway', 'gateway', 'change-compartment'])

0 commit comments

Comments
 (0)