Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I4a5b1ec999110a50fc904f3ae93e3983efa64f88
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Add a new 'hidden' property to cluster template creation, allowing
operators to hide cluster templates from user listings.
The flag is controlled by two cmd line parameters, --hidden (true) and
--visible (false).
Change-Id: Id1dcf1dabb09b357923d3dda36eafa42377e4f35
Story: 2004941
Task: 29342
Now we are handling the label values converting them as a dictionary.
But as magnum-api only accepts the input as string. We are converting
the dictionary into string and passing to magnum-api. It is parsing
the string to dictionary and storing the label value a dictionary.
Change-Id: I2cec19e24c6dd32e209ca65a26a2f1999d8289e0
Depends-on: I4d64da78dc4ed4d5599533b54861b65bce609c28
Closes-Bug: #1659189
Fix behaviour of --floating-ip-enabled and add --floating-ip-disabled.
Removed default setting of floating_ip_enabled API call parameter from
the clients (now the API default is used if it's not explicitly set in
the client arguments).
Change-Id: I9e01addaab17a0d37bb2fed10b4672d421bc1e09
Closes-Bug: #1639119
Magnum API supports a 'detail' flag to show the list
of cluster templates with details but that was not supported
at client.
So this patch adds the support for cluster-template-list command.
Change-Id: I7df73aae1c489132aaf091d162b1d081e65f09c7
Partial-Bug: #1674314
Make "magnum cluster-create" and "magnum cluster-template-create"
accept name as a positional like the other magnum subcommands.
Implements: blueprint positional-name
Change-Id: Ie505ef8ea7e4c13ed2795cde826b9822d094aaeb
Some codes in python magnumclient use Windows style
line endings, this violates H903 error pep8.
Change-Id: I4f5424403a5187d6845d59d005be2324ff40f354
Closes-Bug: #1658845
Currently assertTrue and assertFalse are used to check
wheter a mock method is called. It is not checked whether
mock method is called with correct set of arguments.
With this patch following modules uses assert_called_* and
assert_not_called instead of assertTrue and assertFalse.
- magnumclient/tests/v1/test_baymodels_shell.py
- magnumclient/tests/v1/test_clustertemplates_shell.py
Change-Id: Id722b11a46e62c3aa8555ef6bcf77ea334752249
Partially-Implements: blueprint magnumclient-ut-coverage
Deprecates the *-id paramaters in Magnum client using
the cliutils deprecation map decorator.
Implements blueprint rename-id-parameter-names
Change-Id: Idc6b9322ec7c0ecb386162ca46c7d49b910685d8
UT Coverage for following is increased:
- magnumclient/tests/v1/test_baymodels_shell.py
- magnumclient/tests/v1/test_clustertemplates_shell.py
Change-Id: Ie14890a0daf61fa63d5a7e4b3a15fbbd7789b9cc
Partially-Implements: blueprint magnumclient-ut-coverage
floating_ip_enabled option is added by server, so we should add
this option to client too.
Change-Id: I971ef74f0cc79346a76c1faba55777b0a44465da
Partial-Implements: blueprint bay-with-no-floating-ips
Depends-On: I99677221250480b43a4b95ebf460c43bc77090ad
Add new base classes for Bay and Cluster to inherit from.
Add new tests for cluster and cluster_template code.
Leaves all commands in-place and adds new cluster-related
commands for magnumclient.
Add deprecation decorator and messages for bay/baymodel.
Implements: blueprint rename-bay-to-cluster
Change-Id: I64e1aa6a71b109687568005655c6de55f86fad29