Skip to content

Commit 69d28b2

Browse files
authored
Releasing version 2.4.8 (#12)
1 parent 378c684 commit 69d28b2

Some content is hidden

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

63 files changed

+7078
-1754
lines changed

CHANGELOG.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,31 @@ All notable changes to this project will be documented in this file.
77
The format is based on `Keep a
88
Changelog <http://keepachangelog.com/>`__.
99

10+
2.4.8 - 2017-09-11
11+
------------------
12+
13+
Deprecated
14+
~~~~~~~~~~
15+
* The default configuration file location has been changed from ~/.oraclebmc/config to ~/.oci/config. The old location still works if the file at the new location does not exist.
16+
17+
Added
18+
~~~~~
19+
* Support for the Database service
20+
* Object Storage bulk operations (oci os object bulk-upload / bulk-download / bulk-delete)
21+
* Support for compartment renaming
22+
* Scripts to simplify install process
23+
* Complex input can now be provided as a file instead of having to escape JSON input at the command line. The path to the file can be provided using the file:// prefix, for example --my-complex-param file://<path>, and the following paths are supported
24+
25+
* Relative paths from the same directory, such as file://my-input.json and file://relative/path/to/input.json
26+
* Absolute paths on Linux, macOS or Unix, such as file:///absolute/path/to/input.json
27+
* Full file paths on Windows, such as file://C:\path\to\input.json
28+
* Using file path expansions, for example '~/', './', and '../' is supported. On Windows, the '~/' expression expands to your user directory, stored in the %USERPROFILE% environment variable
29+
* Using environment variables in paths is also supported
30+
31+
Changed
32+
~~~~~~~
33+
* The default configuration file location is now ~/.oci/config
34+
1035
2.4.7 - 2017-08-22
1136
------------------
1237

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Contributing to the Oracle Bare Metal Cloud Services CLI
1+
Contributing to the Oracle Cloud Infrastructure CLI
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
*Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.*

LICENSE.txt

Lines changed: 573 additions & 1 deletion
Large diffs are not rendered by default.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include LICENSE.txt
22
include README.rst
33
include CHANGELOG.md
4-
include src/oraclebmc_cli/bin/bmcs_autocomplete.sh
4+
include src/oci_cli/bin/oci_autocomplete.sh
55
exclude setup.cfg

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Oracle Bare Metal Cloud Services CLI
1+
Oracle Cloud Infrastructure CLI
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
About
55
=====
6-
This is the command line interface for Oracle Bare Metal Cloud Services.
6+
This is the command line interface for Oracle Cloud Infrastructure.
77

88
The project is open source and maintained by Oracle Corp. The home page for the project is `here`__.
99

@@ -15,7 +15,7 @@ Installation
1515

1616
::
1717

18-
pip install oraclebmc-cli
18+
pip install oci-cli
1919

2020
See the `installation guide`__ for installation options and installation troubleshooting.
2121

@@ -27,13 +27,13 @@ Usage
2727
To get help with the command line:
2828
::
2929

30-
bmcs --help
30+
oci --help
3131

3232
or
3333

3434
::
3535

36-
bmcs -?
36+
oci -h
3737

3838

3939
Examples
@@ -62,25 +62,25 @@ Changes
6262
=======
6363
See CHANGELOG__.
6464

65-
__ https://github.com/oracle/bmcs-cli/blob/master/CHANGELOG.rst
65+
__ https://github.com/oracle/oci-cli/blob/master/CHANGELOG.rst
6666

6767

6868
Contributing
6969
============
70-
bmcs-cli is an open source project. See CONTRIBUTING__ for details.
70+
oci-cli is an open source project. See CONTRIBUTING__ for details.
7171

72-
Oracle gratefully acknowledges the contributions to bmcs-cli that have been made by the community.
72+
Oracle gratefully acknowledges the contributions to oci-cli that have been made by the community.
7373

74-
__ https://github.com/oracle/bmcs-cli/blob/master/CONTRIBUTING.rst
74+
__ https://github.com/oracle/oci-cli/blob/master/CONTRIBUTING.rst
7575

7676

7777
Known Issues
7878
============
7979
You can find information on any known issues with the CLI here__ and under the “Issues__” tab of this project's `GitHub repository`__.
8080

8181
__ https://docs.us-phoenix-1.oraclecloud.com/Content/knownissues.htm
82-
__ https://github.com/oracle/bmcs-cli/issues
83-
__ https://github.com/oracle/bmcs-cli
82+
__ https://github.com/oracle/oci-cli/issues
83+
__ https://github.com/oracle/oci-cli
8484

8585

8686
License
@@ -91,4 +91,4 @@ This SDK and sample is dual licensed under the Universal Permissive License 1.0
9191

9292
See LICENSE__ for more details.
9393

94-
__ https://github.com/oracle/bmcs-cli/blob/master/LICENSE.txt
94+
__ https://github.com/oracle/oci-cli/blob/master/LICENSE.txt

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ cryptography==1.8.2
88
httpsig-cffi==15.0.0
99
idna==2.5
1010
ndg-httpsclient==0.4.2
11-
oraclebmc==1.3.6
11+
mock==2.0.0
12+
oci==1.3.7
1213
packaging==16.8
1314
pluggy==0.4.0
1415
py==1.4.32
@@ -20,6 +21,7 @@ pytest==3.0.7
2021
python-dateutil==2.5.3
2122
pytz==2016.7
2223
requests==2.11.1
24+
retrying==1.3.3
2325
six==1.10.0
2426
terminaltables==3.1.0
2527
tox==2.6.0

scripts/basic_cli_test_script.sh

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,66 +5,70 @@ set -e
55

66
# Setup
77
mkdir -p scripts/temp
8-
NS=$BMCS_CLI_NAMESPACE
8+
NS=$OCI_CLI_NAMESPACE
99
BUCKET=TestScriptBucket$(( ( RANDOM % 10000 ) + 1 ))
10-
C=$BMCS_CLI_COMPARTMENT_ID
10+
C=$OCI_CLI_COMPARTMENT_ID
1111
FILE=scripts/temp/content.txt
1212
EMPTY_FILE=scripts/temp/empty_file
13-
ARGS="--config-file $BMCS_CLI_CONFIG_FILE"
13+
ARGS="--config-file $OCI_CLI_CONFIG_FILE"
1414

15+
# test that invoking with deprecated entry point 'bmcs' still works
1516
bmcs $ARGS os ns get
16-
bmcs $ARGS os bucket create -ns $NS --compartment-id $C --name $BUCKET
17+
oci $ARGS os ns get
18+
oci $ARGS os bucket create -ns $NS --compartment-id $C --name $BUCKET
1719
echo 'example object content!' > $FILE
18-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object1 --file $FILE
20+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object1 --file $FILE
1921

2022
# Put an object with metadata and ensure that you get the metadata back.
21-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"bar1","foo2":"bar2"}'
23+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"bar1","foo2":"bar2"}'
2224
# Two greps since they're on different lines
23-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep foo1
24-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep bar2
25+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep foo1
26+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep bar2
2527

2628
# Put an empty file and get it back.
2729
touch $EMPTY_FILE
28-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object3 --file $EMPTY_FILE
29-
bmcs $ARGS os object get -ns $NS -bn $BUCKET --name object3 --file -
30+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object3 --file $EMPTY_FILE
31+
oci $ARGS os object get -ns $NS -bn $BUCKET --name object3 --file -
3032

31-
# Put a file from stdin and get it back
32-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object4 --file - <<< "This is some object content"
33-
bmcs $ARGS os object get -ns $NS -bn $BUCKET --name object4 --file - | grep "This is some object content"
33+
# Put a file from stdin and get it back. Also check we can assign metadata when putting from stdin
34+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object4 --metadata '{"foo1":"bar1","foo2":"bar2"}' --file - <<< "This is some object content"
35+
oci $ARGS os object get -ns $NS -bn $BUCKET --name object4 --file - | grep "This is some object content"
36+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object4 | grep foo1
37+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object4 | grep bar2
3438

3539
# Try a few variations on metadata format.
36-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"a b c '"'d'"'","foo2": "bar2"}' --force
37-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "a b c 'd'"
38-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1": "a b c d","foo2": "A second value."}' --force
40+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"a b c '"'d'"'","foo2": "bar2"}' --force
41+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "a b c 'd'"
42+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1": "a b c d","foo2": "A second value."}' --force
3943

4044
# Two greps since they're on different lines
41-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "a b c d"
42-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "A second value."
43-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"bar1","foo2":"bar 2"}' --force
45+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "a b c d"
46+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "A second value."
47+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"bar1","foo2":"bar 2"}' --force
4448

4549
# Two greps since they're on different lines
46-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "bar1"
47-
bmcs $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "bar 2"
50+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "bar1"
51+
oci $ARGS os object head -ns $NS -bn $BUCKET --name object2 | grep "bar 2"
4852

4953
# Invalid metadata format
5054
set +e
51-
bmcs $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"bar1","foo2"}' --force 2>&1 | grep "Parameter 'metadata' must be in JSON format."
52-
bmcs $ARGS os bucket create -ns $NS --compartment-id $C --name $BUCKET --metadata '{"foo1"}' 2>&1 | grep "Parameter 'metadata' must be in JSON format."
55+
oci $ARGS os object put -ns $NS -bn $BUCKET --name object2 --file $FILE --metadata '{"foo1":"bar1","foo2"}' --force 2>&1 | grep "Parameter 'metadata' must be in JSON format."
56+
oci $ARGS os bucket create -ns $NS --compartment-id $C --name $BUCKET --metadata '{"foo1"}' 2>&1 | grep "Parameter 'metadata' must be in JSON format."
5357
set -e
5458

5559
# Bucket metadata
56-
bmcs $ARGS os bucket create -ns $NS --compartment-id $C --name ${BUCKET}_metadata --metadata '{"foo1":"bar1","foo2":"bar2"}'
60+
oci $ARGS os bucket create -ns $NS --compartment-id $C --name ${BUCKET}_metadata --metadata '{"foo1":"bar1","foo2":"bar2"}'
5761
# Two greps since they're on different lines
58-
bmcs $ARGS os bucket get -ns $NS --name ${BUCKET}_metadata | grep foo1
59-
bmcs $ARGS os bucket get -ns $NS --name ${BUCKET}_metadata | grep bar2
60-
bmcs $ARGS os bucket delete -ns $NS --name ${BUCKET}_metadata --force
62+
oci $ARGS os bucket get -ns $NS --name ${BUCKET}_metadata | grep foo1
63+
oci $ARGS os bucket get -ns $NS --name ${BUCKET}_metadata | grep bar2
64+
oci $ARGS os bucket delete -ns $NS --name ${BUCKET}_metadata --force
6165

62-
bmcs $ARGS os object list -ns $NS -bn $BUCKET
63-
bmcs $ARGS os bucket list -ns $NS --compartment-id $C
64-
bmcs $ARGS os object delete -ns $NS -bn $BUCKET --name object1 --force
65-
bmcs $ARGS os object delete -ns $NS -bn $BUCKET --name object2 --force
66-
bmcs $ARGS os object delete -ns $NS -bn $BUCKET --name object3 --force
67-
bmcs $ARGS os object delete -ns $NS -bn $BUCKET --name object4 --force
68-
bmcs $ARGS os bucket delete -ns $NS --name $BUCKET --force
66+
oci $ARGS os object list -ns $NS -bn $BUCKET
67+
oci $ARGS os bucket list -ns $NS --compartment-id $C
68+
oci $ARGS os object delete -ns $NS -bn $BUCKET --name object1 --force
69+
oci $ARGS os object delete -ns $NS -bn $BUCKET --name object2 --force
70+
oci $ARGS os object delete -ns $NS -bn $BUCKET --name object3 --force
71+
oci $ARGS os object delete -ns $NS -bn $BUCKET --name object4 --force
72+
oci $ARGS os bucket delete -ns $NS --name $BUCKET --force
6973

7074
echo "Success!"

0 commit comments

Comments
 (0)