Commit Graph

21 Commits

Author SHA1 Message Date
Diogo Guerra 7ad1c27ed7 Drop bay and baymodel
Story: 2009104
Task: 42956

Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
Change-Id: I8f0076cae90a59c1d9ffca827eb0e80abe9b10d7
2022-09-05 10:12:06 +00:00
Sean McGinnis 3eafa2a001
Use unittest.mock instead of third party mock
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>
2020-04-18 11:58:37 -05:00
Costin Gamenț a6a76a31dc Add disable floating ip parameter
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
2018-01-30 16:25:51 +01:00
Madhuri Kumari 2850d1714f Add the support for 'detail' flag
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
2017-06-06 05:03:00 +00:00
yatin 19e61f295e Use assert_called_*/assert_not_called to verify mock calls
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
2016-11-17 12:39:35 +05:30
yatinkarel 6e11ccb082 Fix: some typos in unit test
'--fixed-network private-subnet ' -> '--fixed-subnet private-subnet '
'--server-type vm' -> '--server-type vm '
'--coe swarm' -> '--coe swarm '

Change-Id: I82b9eaf649e14f97e08b2324ff370d528a1d033f
2016-11-16 19:43:54 +05:30
yatin 7a38e426a3 Increase 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
2016-11-08 13:38:28 +05:30
OTSUKA, Yuanying 3652bbea60 Add floating_ip_enabled attributes to baymodel
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
2016-08-29 14:18:34 +09:00
Jenkins d24e1460b8 Merge "Add fixed_subnet attributes to baymodel" 2016-07-09 22:22:34 +00:00
Abhishek Chanda ce461621fe Pass a flag to disable LB in baymodels
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
2016-06-30 21:38:27 -07:00
OTSUKA, Yuanying 19c0dc5fd9 Add fixed_subnet attributes to baymodel
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
2016-06-30 17:36:17 +09:00
Spyros Trigazis ee087f8e85 Add docker-storage-driver argument to baymodel
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
2016-06-02 11:14:49 +02:00
Jenkins 064ce06ac5 Merge "Client : Create BayModel with server type(VM/BM)" 2016-05-25 08:25:21 +00:00
Anh Tran d65a5b5b38 Add '--fields' to show more columns for baymodel-list
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
2016-05-13 14:11:23 +07:00
Aaron-DH 2b39fc07b8 Add param for magnum baymodel-list
Support baymodel-list --limit --sort_key --sort_dir

Change-Id: I5aebc66e2e969939199687720a046742ee836f72
Closes-Bug: #1549667
2016-02-26 10:55:51 +08:00
Vilobh Meshram fec8d9c344 Client : Create BayModel with server type(VM/BM)
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
2016-02-24 17:02:08 +09:00
Hongbin Lu 5beb4eb0a2 Remove unused attribute "ssh_authorized_key"
This attribute was used in CoreOS template before. The usage of this
attribute has been removed [1][2]. This patch removed it from CLI.
[1] https://review.openstack.org/#/c/262628/
[2] https://review.openstack.org/#/c/262926/

Change-Id: I97bbffb8c53bce852fa5f210caafeb0047fe1efb
Partial-Bug: #1540134
Partial-Implements: blueprint coreos-k8s-bay
2016-01-31 13:47:47 -05:00
wangqun 85ad9439d8 Adds Container Volume Model volume_driver support
Adds volume_driver baymodel attribute and associated tests.

Co-Authored By: Kai Qiang Wu(Kennan)<wkqwu@cn.ibm.com>
Co-Authored By: Ton Ngo<ton@us.ibm.com>
Partially-Implements: blueprint magnum-integrate-with-cinder

Change-Id: I52c97e2b04ac636ddac611e3677c4ea3972220eb
2016-01-25 05:34:18 +00:00
Hua Wang c38f4a6032 Add type validation and default for some parameter
Add type validation and default for some parameters.

Change-Id: Ibb18d391f991a10c36b2f4a7da791f6722b04a3a
Closes-Bug: #1527434
2015-12-18 10:56:33 +08:00
Hua Wang 1221799595 Add registry_enabled option to baymodel-create
registry_enabled option is needed for docker registry BP.

Change-Id: If34fa7582c076764909a425a3c4e8975c5071fbe
Partially-Implements: blueprint registryv2-in-master
2015-12-09 14:39:17 +08:00
OTSUKA, Yuanying 8480e0b0f1 Split v1 shell sub-command into specific files
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
2015-11-19 09:47:17 +09:00