Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
425 commits
Select commit Hold shift + click to select a range
5dc451f
fixed failing unit test
allmightyspiff Nov 28, 2018
c925e58
Merge pull request #1084 from allmightyspiff/1074
allmightyspiff Nov 28, 2018
427ff1d
tests/CLI/modules/vs_tests:test_upgrade_with_cpu_memory_and_flavor wa…
allmightyspiff Nov 29, 2018
b8c762c
mostly style changes
allmightyspiff Nov 29, 2018
4e426c4
Update provisionedIops reading to handle float-y values
Dec 3, 2018
5c3313e
Merge pull request #1085 from rtpg/patch-1
allmightyspiff Dec 3, 2018
a2643e7
refactored vs create to use Product_Order::placeOrder instead of Virt…
allmightyspiff Dec 4, 2018
6a72362
cdn purge returns a list of objects which indicate the status of each…
Dec 4, 2018
9e1af1b
fix help messages
acamacho82 Dec 4, 2018
08ca596
Merge pull request #1086 from acamacho82/#882
allmightyspiff Dec 5, 2018
66fe5bc
fixed and refactored the vs cli tests
allmightyspiff Dec 5, 2018
b442bc1
refactored more unit tests, and added order_guest unit tests
allmightyspiff Dec 5, 2018
f2d2a30
fixed unit tests
allmightyspiff Dec 6, 2018
e3e13f3
cleaned up code to make tox happy
allmightyspiff Dec 6, 2018
5af4b29
#676 added back in confirmation prompt and export flag. Unit test for…
allmightyspiff Dec 10, 2018
786cacf
#676 fixed userData not being sent in with the order, added a few mor…
allmightyspiff Dec 11, 2018
0b94a90
tox style fixes
allmightyspiff Dec 11, 2018
e478f1d
Merge pull request #1087 from allmightyspiff/676
allmightyspiff Jan 2, 2019
a12f8c1
removed power_state
acamacho82 Jan 11, 2019
d047447
Merge pull request #1090 from acamacho82/#1088
allmightyspiff Jan 11, 2019
7f6f0d2
#1069 basic support for virtual placement groups
allmightyspiff Jan 18, 2019
aa28ab8
unit tests for the cli portion of placement groups
allmightyspiff Jan 18, 2019
3d03455
#1069 unit tests for the placement manageR
allmightyspiff Jan 21, 2019
e3ed32b
unit test fixes
allmightyspiff Jan 22, 2019
ab5a167
style fixes
allmightyspiff Jan 22, 2019
c63e4ce
#1069 documentation for placement groups
allmightyspiff Jan 29, 2019
3af6f8f
added a few resolvers for backendrouters, rules, and placementgroups.…
allmightyspiff Jan 30, 2019
ed7b636
unit tests and style fixes
allmightyspiff Jan 31, 2019
e1d9a52
Added more exception handling.
Jan 31, 2019
3b5c37f
Formating changes.
Jan 31, 2019
ba14a92
More minor changes.
Jan 31, 2019
c81e791
Fixes for tox issues.
Jan 31, 2019
e4a51a9
More updates due to changes in TOX.
Jan 31, 2019
4660a2d
Fixed exception login after failing unit tests.
Jan 31, 2019
e9b6861
Updates to message handling.
Jan 31, 2019
0ceab62
Adjusted exception handler.
Jan 31, 2019
08b6ee4
Renforced a pylint exception.
Jan 31, 2019
63012e8
Added unit tests, and updated exception handling.
Feb 3, 2019
980d11c
Added initial unit tests for percentages.
Feb 4, 2019
effc9ff
Format changes.
Feb 4, 2019
7c23627
More changes for unit tests and lent.
Feb 4, 2019
5e6d45f
Updated documentation line.
Feb 4, 2019
27c9c6f
Merge pull request #1094 from erick-sapp/dev
erick-sapp Feb 4, 2019
9c84cb4
Added fix to shell help.
Feb 4, 2019
2bbbab1
Merge pull request #1091 from allmightyspiff/issues1069
allmightyspiff Feb 4, 2019
4a03ab1
#1093 properly send in hostId when creating a dedicated host VSI
allmightyspiff Feb 5, 2019
eeabb61
Merge pull request #1096 from allmightyspiff/issues1093
allmightyspiff Feb 5, 2019
bd55687
Changes to shell_tests.
Feb 5, 2019
a324f11
Removed a debug statement that was missing from 'git diff' before the…
Feb 5, 2019
08c8214
Merge pull request #1 from softlayer/master
erick-sapp Feb 5, 2019
21c5a8e
Updates for pylint.
Feb 5, 2019
0b83362
Merge pull request #1097 from erick-sapp/dev
allmightyspiff Feb 5, 2019
6ae6814
Updated fixture.
Feb 5, 2019
495dcc2
Merge branch 'master' into finishfish
erick-sapp Feb 5, 2019
e2648c6
Fixing typos and refactoring work.
Feb 5, 2019
5a406b4
More refactoring.
Feb 5, 2019
8bbbe78
Formating changes.
Feb 5, 2019
82574e0
Updates to fixture and unit test.
Feb 5, 2019
5320df0
Refactoring. Audi-log is no more. All references has been changed to …
Feb 5, 2019
f7e2b0a
Merge pull request #4 from softlayer/master
ATGE Feb 5, 2019
5aee15e
Merge pull request #3 from erick-sapp/master
erick-sapp Feb 5, 2019
bb1717c
Made the metadata field optional, and handles empty responses.
Feb 6, 2019
8bb2b1e
Updated unit tests.
Feb 6, 2019
004e5af
Strips out leading and trailing curly-brackets from metadata if displ…
Feb 6, 2019
d21cbd1
Added and renamed fields.
Feb 7, 2019
6a16076
Finished unit test.
Feb 10, 2019
62e66b7
Formating changes.
Feb 10, 2019
563f5da
Added limit option to 'event-log get'.
Feb 10, 2019
c822afc
Merge pull request #1099 from erick-sapp/finishfish
allmightyspiff Feb 13, 2019
ac20b16
Version 5.7.0
allmightyspiff Feb 15, 2019
c0553f4
Merge pull request #1102 from allmightyspiff/master
allmightyspiff Feb 15, 2019
9033912
Merge pull request #4 from erick-sapp/master
erick-sapp Feb 18, 2019
73c5cd1
Merge pull request #5 from erick-sapp/finishfish
erick-sapp Feb 18, 2019
e674e13
#1089 removed legacy SL message queue commands
allmightyspiff Feb 21, 2019
edc7141
Reflash Firmware CLI/Manager method
Feb 26, 2019
a9512de
Updated firmware reflash documentation to be more clear
Feb 26, 2019
d4c287b
Fixed broken unit tests
follower46 Feb 27, 2019
7df54ef
Fixed broken unit tests
follower46 Feb 27, 2019
e6aa806
Updating to adhere to PEP8
follower46 Feb 27, 2019
9f25809
Merge pull request #1106 from follower46/firmwareReflash
allmightyspiff Feb 27, 2019
8ef829c
#1089 fixed old docs
allmightyspiff Feb 27, 2019
ae19bc2
Merge pull request #1105 from allmightyspiff/1089
allmightyspiff Feb 27, 2019
7506faf
5.7.1 release
allmightyspiff Feb 27, 2019
a2ce792
ground work for some account/billing features
allmightyspiff Feb 27, 2019
ba2ad90
#1068 doc updates
allmightyspiff Feb 28, 2019
555dd70
slcli hw documentation udpates
allmightyspiff Mar 1, 2019
1606f9a
#1068 fixed a bunch of 'no-else-raise' warnings
allmightyspiff Mar 1, 2019
2e58734
Added exception to handle json parsing error
acamacho82 Mar 1, 2019
b00f68b
1107 fixed tox analysis and python 3 support
acamacho82 Mar 1, 2019
3f5e873
Merge pull request #1108 from acamacho82/1107
allmightyspiff Mar 4, 2019
32d0bbe
moved hardware commands into a single file
allmightyspiff Mar 6, 2019
e8a449d
Merge branch 'master' of github.com:softlayer/softlayer-python into i…
allmightyspiff Mar 6, 2019
4bf1e53
Fixed docs about placement groups
ATGE Mar 6, 2019
0e6fed3
#1002 basic structure for invoice features
allmightyspiff Mar 8, 2019
3acc5b9
1101 handle and raise another exception message when oftLayer_Excepti…
acamacho82 Mar 11, 2019
e2694df
Upgrade file storage endurance iops.
Mar 12, 2019
bcac437
1101 unit test
acamacho82 Mar 12, 2019
dd1fe43
#1002 invoice list/details, event list/details
allmightyspiff Mar 14, 2019
9740383
Merge pull request #1110 from allmightyspiff/issues1068
allmightyspiff Mar 15, 2019
060ab97
Merge pull request #1111 from ATGE/1109
allmightyspiff Mar 15, 2019
3f5f657
Merge pull request #1114 from FernandoOjeda/fo_file_endurance_iops_up…
allmightyspiff Mar 15, 2019
428753b
Merge pull request #1115 from acamacho82/1101
allmightyspiff Mar 15, 2019
f634e8a
basic unit tests
allmightyspiff Mar 18, 2019
85fd40d
Fix order place quantity option.
Mar 20, 2019
d82ba32
Fix order place quantity option.
Mar 20, 2019
ee8fe37
Fix order place quantity option.
Mar 20, 2019
31c1dad
Refactor order place quantity option.
Mar 21, 2019
a7c8db4
unit tests for slcli portion
allmightyspiff Mar 21, 2019
1821bf8
account manager tests
allmightyspiff Mar 21, 2019
63f9617
autopep8 fixes
allmightyspiff Mar 21, 2019
ef9494f
Merge branch 'master' of github.com:softlayer/softlayer-python into b…
allmightyspiff Mar 21, 2019
b7b70f1
code cleanup and docs
allmightyspiff Mar 21, 2019
fe4d7d2
tox cleanup
allmightyspiff Mar 21, 2019
1d4ca3f
finishing tox unit tests
allmightyspiff Mar 21, 2019
8bd5e0a
Merge pull request #1119 from FernandoOjeda/fo_order_place_quantity_o…
allmightyspiff Mar 21, 2019
05b9723
1117 Two PCIe items can be added at order time
acamacho82 Mar 22, 2019
0790844
Merge pull request #1122 from acamacho82/issues1117
allmightyspiff Mar 22, 2019
843f531
code review fixes
allmightyspiff Mar 25, 2019
fa19d5d
Fix object storage apiType for S3 and Swift.
Mar 26, 2019
10e23fd
Fix object storage apiType for S3 and Swift.
Mar 26, 2019
0c21f70
Merge pull request #1120 from allmightyspiff/billing
allmightyspiff Mar 27, 2019
44c9c9c
Merge branch 'dev' of https://github.com/erick-sapp/softlayer-python …
allmightyspiff Mar 27, 2019
b1752c1
#1099 updated event_log get to support pagination
allmightyspiff Mar 27, 2019
f7e8025
fixed a bunch of tox related errors
allmightyspiff Mar 28, 2019
852d5e8
Merge pull request #1123 from FernandoOjeda/fo_object_storage_apiType
allmightyspiff Mar 29, 2019
67ee362
added some more documentation around event-logs
allmightyspiff Apr 3, 2019
018400e
fixed event-log get --limit -1 only reporting 1 event
allmightyspiff Apr 4, 2019
82f5c79
872 Column 'name' renamed to 'hostname'
acamacho82 Apr 5, 2019
46a2b11
Merge pull request #1128 from acamacho82/issues872
allmightyspiff Apr 5, 2019
cfab07e
Merge pull request #1125 from allmightyspiff/issues1100
allmightyspiff Apr 8, 2019
23406bb
#1129 fixed issue in slcli subnet create
acamacho82 Apr 8, 2019
1b581fa
Fix object storage credentials.
Apr 9, 2019
05ffff5
Refactor object storage credentials.
Apr 9, 2019
9479d91
Refactor object storage credentials.
Apr 9, 2019
2758e33
exception when there is no prices was refactored
acamacho82 Apr 9, 2019
fe3c15e
#1129 unit tests
acamacho82 Apr 10, 2019
6d5b3f4
#1129 fix unit tests
acamacho82 Apr 10, 2019
8ffe12f
#208 quote ordering support and doc updates
allmightyspiff Apr 10, 2019
65383f8
Change encrypt parameters for importing of images.
rodrabe Apr 12, 2019
0f60878
Change encrypt parameters for importing of images.
rodrabe Apr 12, 2019
8bc9512
Merge remote-tracking branch 'origin/master'
rodrabe Apr 13, 2019
842f63b
Merge remote-tracking branch 'origin/master'
rodrabe Apr 13, 2019
038bea9
Merge remote-tracking branch 'origin/master'
rodrabe Apr 13, 2019
b683097
Merge remote-tracking branch 'origin/master'
rodrabe Apr 13, 2019
b903b5c
Merge remote-tracking branch 'origin/master'
rodrabe Apr 14, 2019
aff7048
Merge remote-tracking branch 'origin/master'
rodrabe Apr 15, 2019
a00df24
Modify comments
rodrabe Apr 15, 2019
7a3c644
finishing up quote ordering stuff
allmightyspiff Apr 17, 2019
4c21f93
doc updates
allmightyspiff Apr 18, 2019
b73a46b
style updates
allmightyspiff Apr 18, 2019
8fcd8d7
Merge pull request #1134 from rodrabe/master
allmightyspiff Apr 18, 2019
9d6bf59
Merge pull request #1133 from acamacho82/issues1129
allmightyspiff Apr 18, 2019
47c019a
fixed verifyOrder SoftLayerAPIError(SoftLayer_Exception_Public): Res…
allmightyspiff Apr 22, 2019
3cbda2a
tox style fixes
allmightyspiff Apr 22, 2019
82359d8
Merge branch 'master' of https://github.com/softlayer/softlayer-python
Apr 23, 2019
1bd5deb
Refactor object storage credentials.
Apr 23, 2019
665ad1d
Refactor object storage credentials.
Apr 23, 2019
f350a98
Merge pull request #1132 from FernandoOjeda/fo_object_storage_credent…
allmightyspiff Apr 23, 2019
683af37
Merge branch 'master' into orderingDocUpdates
allmightyspiff Apr 23, 2019
606ec64
Merge pull request #1136 from allmightyspiff/orderingDocUpdates
allmightyspiff Apr 23, 2019
23d8188
Feature usage vs information.
Apr 23, 2019
a911fac
Refactor usage vs information.
Apr 23, 2019
7aa6eb2
#1131 made sure config_tests dont actually try to make api calls
allmightyspiff Apr 24, 2019
9f181be
Merge pull request #1138 from allmightyspiff/issues1131
allmightyspiff Apr 24, 2019
d27a94e
Refactor usage vs information.
Apr 29, 2019
3d5beca
Merge pull request #1137 from FernandoOjeda/fo_usage_vs
allmightyspiff Apr 30, 2019
4495d0d
5.7.2
allmightyspiff May 3, 2019
74ea7c5
Merge pull request #1140 from allmightyspiff/master
allmightyspiff May 3, 2019
fa7c1fe
updating release process
allmightyspiff May 3, 2019
9a84266
updates for doc generation
allmightyspiff May 3, 2019
43b370c
Merge pull request #1142 from allmightyspiff/issues1141
allmightyspiff May 3, 2019
e3046b9
getting readthedocs builds to work
allmightyspiff May 3, 2019
c8f666f
merge in master
allmightyspiff May 3, 2019
ab01bb2
Upgrade to prompt_toolkit >= 2
camporter May 8, 2019
a2ae91e
Updated from origin repo
ATGE May 14, 2019
105b9ee
Fix shell CLI tests.
camporter May 14, 2019
857f33e
Don't shadow input with the new parameter
camporter May 14, 2019
4d84b4f
#1003 adding bandwidth commands
allmightyspiff May 14, 2019
6ae31ec
docs for hw manager
allmightyspiff May 14, 2019
aa20fe9
adding bw useage to hw detail
allmightyspiff May 15, 2019
e31c1cc
DOCS: fix broken link
jbskytap May 16, 2019
cd02aa7
DOCS: replace 'developer' with 'sldn' links
jbskytap May 16, 2019
955e91a
replace developer links with sldn links
jbskytap May 16, 2019
0738549
Merge pull request #1146 from jbskytap/master
allmightyspiff May 16, 2019
048dd21
vs bandwidth commands
allmightyspiff May 16, 2019
f11a7e6
Remove tests, as making them work compatibly across python versions i…
camporter May 17, 2019
b339874
tox analysis fixes
allmightyspiff May 20, 2019
859a7f1
getting unit tests running after changing a bunch of vs/hw detail stuff
allmightyspiff May 20, 2019
a8baf6b
#1147 removed contents from the new_tickets and unittests
acamacho82 May 20, 2019
861ffab
unit tests
allmightyspiff May 22, 2019
1b496b2
#1139 Added subnet static option
ATGE May 24, 2019
6ccaa27
finishing up unit tests
allmightyspiff May 24, 2019
7f8c805
tox fixes
allmightyspiff May 24, 2019
c16c7d0
more style fixes...
allmightyspiff May 24, 2019
540f2b0
removing py27 from testing support
allmightyspiff May 24, 2019
d4e3866
Added create subnet static ipv6 test
ATGE May 24, 2019
3dcea7e
added docs for new functions
allmightyspiff May 29, 2019
a279a8a
updating travis environments
allmightyspiff May 30, 2019
920d5f0
another travisci update
allmightyspiff May 30, 2019
931ec07
Merge pull request #1143 from camporter/prompt_toolkit_2_upgrade
allmightyspiff May 30, 2019
cdbae97
Merge pull request #1148 from acamacho82/issues1147
allmightyspiff May 30, 2019
9ef4e7f
removed commented code
ATGE May 31, 2019
b3f52bc
subnet create help message updated
ATGE May 31, 2019
3bebf3a
Merge pull request #1149 from ATGE/issue1139
allmightyspiff Jun 3, 2019
1e68556
updated help message for bandwidth
allmightyspiff Jun 5, 2019
a86f106
fixing trailing whitespace
allmightyspiff Jun 5, 2019
0803951
Merge pull request #1150 from allmightyspiff/issues1003
allmightyspiff Jun 5, 2019
44fb9ff
Merge branch 'master' of https://github.com/FernandoOjeda/softlayer-p…
Jun 10, 2019
33cfbfd
Merge branch 'master' of https://github.com/softlayer/softlayer-python
Jun 10, 2019
3ef580e
Feature cdn network.
Jun 10, 2019
9ceccb1
Refactor cdn network.
Jun 10, 2019
f1838f7
Refactor cdn network.
Jun 10, 2019
721442d
Add cdn documentation and fix tox analysis.
Jun 11, 2019
0f409be
Refactor code review.
Jun 14, 2019
0250714
base for using IBMid as authentication
allmightyspiff Jun 17, 2019
37696f0
unit test for new code
allmightyspiff Jun 17, 2019
edeff99
improved help message for invoices
allmightyspiff Jun 17, 2019
9945b63
Initial transient support
camporter Jun 18, 2019
b4e6d4c
Merge pull request #1151 from FernandoOjeda/fo_cdn
allmightyspiff Jun 19, 2019
4ec5501
Merge pull request #1152 from allmightyspiff/issues1104
allmightyspiff Jun 25, 2019
18cd6e0
Add vs list filtering. Handle create_instance transient option. Requi…
camporter Jul 3, 2019
10545a9
Add tests. Fix issues with create options. List transient flavors sep…
camporter Jul 14, 2019
36e210b
Fix spacing.
camporter Jul 14, 2019
db50af5
Reorder option to catch transient and dedicated first.
camporter Jul 14, 2019
1e35e22
Merge pull request #1153 from camporter/transient_vsi
allmightyspiff Jul 17, 2019
ca68e1e
Extend CLI commands, add new ones
kramimus Aug 24, 2016
01c11c2
ssh keys for all, not just the first
kramimus Sep 2, 2016
dec3516
CLI hw create command currently broken for GPUs
kramimus Sep 20, 2016
d5c6b5c
Enable the cli to create multiple vm instances in one request.
Oct 27, 2016
8abc051
Add json support for instance-id ready cmd.
irwen-rescale Oct 27, 2016
ee39995
Add json support for vm detail command.
irwen-rescale Oct 27, 2016
3ac7aaa
Add support to grant access to a vm.
irwen-rescale Oct 29, 2016
5f41574
Get rid of grant_vm_access. Move the vm operations into grant_access …
irwen-rescale Oct 30, 2016
140f37d
Make the vm list command outputs json.
irwen-rescale Oct 31, 2016
3905403
A list is not accepted. Json should start from {.
irwen-rescale Nov 1, 2016
6ff4291
Revert "CLI hw create command currently broken for GPUs"
kramimus May 5, 2017
269fe6d
Update "nas detail" call to pull mount point field
kramimus Jun 7, 2017
1857555
Copy VSI private VLAN and subnet options over to baremetal
kramimus Aug 31, 2018
aef4a15
If no vs or hw exists in current subnet, should return empty list ins…
yhuanghamu Sep 12, 2018
32679d3
Update sshkey --add return value and format
hitesh-rescale Sep 27, 2018
66f42c3
Dedicated host cancellation is pretty similar to bare metal
kramimus Sep 28, 2018
c5f92ce
enable bulk orders of dedicatedhosts if multiple hostnames specified
kramimus Sep 28, 2018
0fdaa12
Pull hostIds upon creation of a dedicatedhost
kramimus Sep 28, 2018
3cb2917
Update dedicatedhost create response with new fields: hosts, datacenter
kramimus Oct 1, 2018
ae99ac1
dedicatedhost Edit and show tags
Oct 10, 2018
82e24c7
update cli option
Jul 23, 2019
2146852
Merge branch 'master' into rebase-softlayer-07-22-2019
yhuanghamu Jul 23, 2019
258f5f7
Update virtual servers creation
Jul 23, 2019
2bd5cee
Update test cases
Jul 25, 2019
1cdf2f7
Bug in v5.7.2 release
Aug 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: htmldir
configuration: docs/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# https://docs.travis-ci.com/user/languages/python/#python-37-and-higher
dist: xenial
language: python
sudo: false
matrix:
include:
- python: "2.7"
env: TOX_ENV=py27
- python: "3.5"
env: TOX_ENV=py35
- python: "3.6"
env: TOX_ENV=py36
- python: "pypy2.7-5.8.0"
- python: "3.7"
env: TOX_ENV=py37
- python: "pypy3.5"
env: TOX_ENV=pypy
- python: "2.7"
- python: "3.6"
env: TOX_ENV=analysis
- python: "2.7"
- python: "3.6"
env: TOX_ENV=coverage
install:
- pip install tox
Expand Down
119 changes: 118 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,124 @@
# Change Log


## [5.7.2] - 2019-05-03
- https://github.com/softlayer/softlayer-python/compare/v5.7.1...v5.7.2

+ #1107 Added exception to handle json parsing error when ordering
+ #1068 Support for -1 when changing port speed
+ #1109 Fixed docs about placement groups
+ #1112 File storage endurance iops upgrade
+ #1101 Handle the new user creation exceptions
+ #1116 Fix order place quantity option
+ #1002 Invoice commands
* account invoices
* account invoice-detail
* account summary
+ #1004 Event Notification Management commands
* account events
* account event-detail
+ #1117 Two PCIe items can be added at order time
+ #1121 Fix object storage apiType for S3 and Swift.
+ #1100 Event Log performance improvements.
+ #872 column 'name' was renamed to 'hostname'
+ #1127 Fix object storage credentials.
+ #1129 Fixed unexpected errors in slcli subnet create
+ #1134 Change encrypt parameters for importing of images. Adds root-key-crn
+ #208 Quote ordering commands
* order quote
* order quote-detail
* order quote-list
+ #1113 VS usage information command
* virtual usage
+ #1131 made sure config_tests dont actually make api calls.


## [5.7.1] - 2019-02-26
- https://github.com/softlayer/softlayer-python/compare/v5.7.0...v5.7.1

+ #1089 removed legacy SL message queue commands
+ Support for Hardware reflash firmware CLI/Manager method

## [5.7.0] - 2019-02-15
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.6.4...v5.7.0

+ #1099 Support for security group Ids
+ event-log cli command
+ #1069 Virtual Placement Group Support
```
slcli vs placementgroup --help
Commands:
create Create a placement group.
create-options List options for creating a placement group.
delete Delete a placement group.
detail View details of a placement group.
list List placement groups.
```
+ #962 Rest Transport improvements. Properly handle HTTP exceptions instead of crashing.
+ #1090 removed power_state column option from "slcli server list"
+ #676 - ipv6 support for creating virtual guests
* Refactored virtual guest creation to use Product_Order::placeOrder instead of Virtual_Guest::createObject, because createObject doesn't allow adding IPv6
+ #882 Added table which shows the status of each url in object storage
+ #1085 Update provisionedIops reading to handle float-y values
+ #1074 fixed issue with config setup
+ #1081 Fix file volume-cancel
+ #1059 Support for SoftLayer_Hardware_Server::toggleManagementInterface
* `slcli hw toggle-ipmi`


## [5.6.4] - 2018-11-16

- Changes: https://github.com/softlayer/softlayer-python/compare/v5.6.3...v5.6.4

+ #1041 Dedicated host cancel, cancel-guests, list-guests
+ #1071 added createDate and modifyDate parameters to sg rule-list
+ #1060 Fixed slcli subnet list
+ #1056 Fixed documentation link in image manager
+ #1062 Added description to slcli order

## [5.6.3] - 2018-11-07

- Changes: https://github.com/softlayer/softlayer-python/compare/v5.6.0...v5.6.3

+ #1065 Updated urllib3 and requests libraries due to CVE-2018-18074
+ #1070 Fixed an ordering bug
+ Updated release process and fab-file

## [5.6.0] - 2018-10-16
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.5.3...v5.6.0

+ #1026 Support for [Reserved Capacity](https://console.bluemix.net/docs/vsi/vsi_about_reserved.html#about-reserved-virtual-servers)
* `slcli vs capacity create`
* `slcli vs capacity create-guest`
* `slcli vs capacity create-options`
* `slcli vs capacity detail`
* `slcli vs capacity list`
+ #1050 Fix `post_uri` parameter name on docstring
+ #1039 Fixed suspend cloud server order.
+ #1055 Update to use click 7
+ #1053 Add export/import capabilities to/from IBM Cloud Object Storage to the image manager as well as the slcli.


## [5.5.3] - 2018-08-31
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.5.2...v5.5.3

+ Added `slcli user delete`
+ #1023 Added `slcli order quote` to let users create a quote from the slcli.
+ #1032 Fixed vs upgrades when using flavors.
+ #1034 Added pagination to ticket list commands
+ #1037 Fixed DNS manager to be more flexible and support more zone types.
+ #1044 Pinned Click library version at >=5 < 7

## [5.5.2] - 2018-08-31
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.5.1...v5.5.2

+ #1018 Fixed hardware credentials.
+ #1019 support for ticket priorities
+ #1025 create dedicated host with gpu fixed.


## [5.5.1] - 2018-08-06
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.5.0...master
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.5.0...v5.5.1

- #1006, added paginations to several slcli methods, making them work better with large result sets.
- #995, Fixed an issue displaying VLANs.
Expand Down
75 changes: 75 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,80 @@ Code is tested and style checked with tox, you can run the tox tests individuall
* create pull request


## Documentation

CLI command should have a more human readable style of documentation.
Manager methods should have a decent docblock describing any parameters and what the method does.

Docs are generated with [Sphinx](https://docs.readthedocs.io/en/latest/intro/getting-started-with-sphinx.html) and once Sphinx is setup, you can simply do

`make html` in the softlayer-python/docs directory, which should generate the HTML in softlayer-python/docs/_build/html for testing.


## Unit Tests

All new features should be 100% code covered, and your pull request should at the very least increase total code overage.

### Mocks
To tests results from the API, we keep mock results in SoftLayer/fixtures/<SoftLayer_Service>/ with the method name matching the variable name.

Any call to a service that doesn't have a fixture will result in a TransportError

### Overriding Fixtures

Adding your expected output in the fixtures file with a unique name is a good way to define a fixture that gets used frequently in a test.

```python
from SoftLayer.fixtures import SoftLayer_Product_Package

def test_test(self):
amock = self.set_mock('SoftLayer_Product_Package', 'getAllObjects')
amock.return_value = fixtures.SoftLayer_Product_Package.RESERVED_CAPACITY
```

Otherwise defining it on the spot works too.
```python
def test_test(self):
mock = self.set_mock('SoftLayer_Network_Storage', 'getObject')
mock.return_value = {
'billingItem': {'hourlyFlag': True, 'id': 449},
}
```


### Call testing
Testing your code to make sure it makes the correct API call is also very important.

The testing.TestCase class has a method call `assert_called_with` which is pretty handy here.

```python
self.assert_called_with(
'SoftLayer_Billing_Item', # Service
'cancelItem', # Method
args=(True, True, ''), # Args
identifier=449, # Id
mask=mock.ANY, # object Mask,
filter=mock.ANY, # object Filter
limit=0, # result Limit
offset=0 # result Offset
)
```

Making sure a API was NOT called

```python
self.assertEqual([], self.calls('SoftLayer_Account', 'getObject'))
```

Making sure an API call has a specific arg, but you don't want to list out the entire API call (like with a place order test)

```python
# Get the API Call signature
order_call = self.calls('SoftLayer_Product_Order', 'placeOrder')

# Get the args property of that API call, which is a tuple, with the first entry being our data.
order_args = getattr(order_call[0], 'args')[0]

# Test our specific argument value
self.assertEqual(123, order_args['hostId'])
```
Loading