diff options
author | Jeremy Freudberg <jeremyfreudberg@gmail.com> | 2019-02-27 21:09:25 -0500 |
---|---|---|
committer | Jeremy Freudberg <jeremyfreudberg@gmail.com> | 2019-03-03 21:35:16 -0500 |
commit | 25043cbdf1fdfdb37201f130bd03d3e96dcce330 (patch) | |
tree | 3ec2d2d3e7d0094cb26599babcf586805b6a31ed /saharaclient/tests/unit/osc/v2 | |
parent | 9ebd05065d759434b6f341421fb6cce23f7b8249 (diff) | |
download | python-saharaclient-25043cbdf1fdfdb37201f130bd03d3e96dcce330.tar.gz |
Add missing APIv2 features to client, OSC2.2.0
Now in the basic client:
- Boot from volume enhancements
- Update keypair
Now in OSC:
- Force delete cluster
- Update keypair
- Boot from volume enhancements
- Decommision specific node (only via --json)
Change-Id: I031fdb6f7754f6cf242bfae6f10ed05249c07dac
Story: 2003092
Task: 23183
Task: 29740
Diffstat (limited to 'saharaclient/tests/unit/osc/v2')
-rw-r--r-- | saharaclient/tests/unit/osc/v2/test_node_group_templates.py | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/saharaclient/tests/unit/osc/v2/test_node_group_templates.py b/saharaclient/tests/unit/osc/v2/test_node_group_templates.py index 8a70b1a..3eef3b0 100644 --- a/saharaclient/tests/unit/osc/v2/test_node_group_templates.py +++ b/saharaclient/tests/unit/osc/v2/test_node_group_templates.py @@ -50,7 +50,10 @@ NGT_INFO = { "volumes_availability_zone": None, "volumes_per_node": 2, "volume_local_to_instance": False, - "boot_from_volume": False + "boot_from_volume": False, + "boot_volume_type": None, + "boot_volume_availability_zone": None, + "boot_volume_local_to_instance": False } @@ -101,7 +104,10 @@ class TestCreateNodeGroupTemplate(TestNodeGroupTemplates): volume_type=None, volumes_availability_zone=None, volumes_per_node=None, volumes_size=None, shares=None, node_configs=None, volume_mount_prefix=None, - boot_from_volume=False) + boot_from_volume=False, + boot_volume_type=None, + boot_volume_availability_zone=None, + boot_volume_local_to_instance=False) def test_ngt_create_all_options(self): arglist = ['--name', 'template', '--plugin', 'fake', @@ -115,7 +121,10 @@ class TestCreateNodeGroupTemplate(TestNodeGroupTemplates): '--volumes-mount-prefix', '/volume/asd', '--volumes-locality', '--description', 'descr', '--autoconfig', '--proxy-gateway', '--public', - '--protected', '--boot-from-volume'] + '--protected', '--boot-from-volume', + '--boot-volume-type', 'volume2', + '--boot-volume-availability-zone', 'ceph', + '--boot-volume-local-to-instance'] verifylist = [('name', 'template'), ('plugin', 'fake'), ('plugin_version', '0.1'), @@ -149,7 +158,10 @@ class TestCreateNodeGroupTemplate(TestNodeGroupTemplates): volume_local_to_instance=True, volume_type='type', volumes_availability_zone='vavzone', volumes_per_node=2, volumes_size=2, shares=None, node_configs=None, - volume_mount_prefix='/volume/asd', boot_from_volume=True) + volume_mount_prefix='/volume/asd', boot_from_volume=True, + boot_volume_type='volume2', + boot_volume_availability_zone='ceph', + boot_volume_local_to_instance=True) # Check that columns are correct expected_columns = ( @@ -340,7 +352,10 @@ class TestUpdateNodeGroupTemplate(TestNodeGroupTemplates): '--volumes-mount-prefix', '/volume/asd', '--volumes-locality-enable', '--description', 'descr', '--autoconfig-enable', '--proxy-gateway-enable', '--public', - '--protected', '--boot-from-volume-enable'] + '--protected', '--boot-from-volume-enable', + '--boot-volume-type', 'volume2', + '--boot-volume-availability-zone', 'ceph', + '--boot-volume-local-to-instance-enable'] verifylist = [('node_group_template', 'template'), ('name', 'template'), ('plugin', 'fake'), @@ -377,7 +392,10 @@ class TestUpdateNodeGroupTemplate(TestNodeGroupTemplates): volume_local_to_instance=True, volume_type='type', volumes_availability_zone='vavzone', volumes_per_node=2, volumes_size=2, volume_mount_prefix='/volume/asd', - boot_from_volume=True) + boot_from_volume=True, + boot_volume_type='volume2', + boot_volume_availability_zone='ceph', + boot_volume_local_to_instance=True) # Check that columns are correct expected_columns = ( |