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>
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
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
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
This adds a new flag to baymodel-create that
signals if load balancers should be used in this
baymodel or not.
Change-Id: Ibd3bd9e8e4e72844b561f1d6d1146b0f5777843c
Partially-Implements: blueprint decouple-lbaas
fixed_subnet option is added by server, so we should add
this option to client too.
Change-Id: I3963b069ae8dde09f696e03cc43c5c37f8cc971b
Partial-Implements: blueprint magnum-baremetal-full-support
Depends-On: Ia21ad6e3e1472a0d078d08369ef62601034fcc17
The following dependency enhances baymolel with a new attribute:
docker-storage-driver. Add docker-storage-driver argument to the
client.
Change-Id: I0b567e793ff9222d5381529bb0e36553aa2b7b79
Partially-Implements: blueprint support-for-different-docker-storage-driver
Depends-On: Ib58cb734c4e9c90d5d83574852213d2e97359e92
This patch adds '--fields' to 'baymodel-list' command to show more
specific fields.
Available fields for listing baymodels:
-- uuid
-- name
-- coe
-- image_id
-- apiserver_port
-- registry_enabled
-- server_type
-- public
-- links
-- tls_disabled
Change-Id: Ie887574d6e8a2ddda25e042317dd98c781016c80
Closes-Bug: #1551574
Client changes to create baymodel with provided VM/BM
server type. In its current state of art, the Baymodel is
created with only "VM" server type. This value is hardcoded
in the code and a tech debt bug was filed to clean it off. Also
this feature can be useful to allow bay model creation with
various server type like virtual machines, baremetal etc. For
this release will restrict the server_type to vm.
Co-Authored By: OTSUKA, Yuanying <yuanying@fraction.jp>
Change-Id: I9b5566bf59e300e080937906c23c7ff7dc359e16
Partial-Bug: #1491003
v1 shell has many sub command. It is difficult to add more test
and functions. Actually we have forgotten to add some tests for
these sub-commands.
This patch splits these.
Change-Id: I6b80b621311442df987e6ff031e8c77cf4bb7095
Closes-Bug: #1515109