Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Aug 23, 2020
1 parent 10d985b commit 85604bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app_config:
rootStorageType: instance
staticIP: null
subnet: null
vmType: m2.large
vmType: m5.24xlarge
config_cloudman2:
clusterPassword: 123456
cm_boot_image: cloudve/cloudman-boot
Expand Down
6 changes: 3 additions & 3 deletions cloudman/clusterman/tests/test_cluster_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_crud_cluster(self):
# Assert that the originally created cluster id is the same as the one
# returned by list
self.assertEquals(response.data['id'], cluster_id)
self.assertEquals(response.data['default_vm_type'], 'm2.large')
self.assertEquals(response.data['default_vm_type'], 'm5.24xlarge')
self.assertEquals(response.data['default_zone']['name'], 'us-east-1b')

# check details
Expand Down Expand Up @@ -688,7 +688,7 @@ def test_scale_up_default(self):
# Ensure that the created node has the correct size
vm_types = self._get_cluster_node_vm_types(cluster_id)
self.assertEqual(len(vm_types), 1)
self.assertTrue("m2.large" in vm_types)
self.assertTrue("m5.24xlarge" in vm_types)

@responses.activate
def test_scale_down_default(self):
Expand Down Expand Up @@ -864,7 +864,7 @@ def test_scaling_within_zone_group(self):
# Ensure that the created node has the correct size
vm_types = self._get_cluster_node_vm_types(cluster_id)
self.assertEqual(len(vm_types), 1)
self.assertTrue("m2.large")
self.assertTrue("m5.24xlarge")

def _login_as_autoscaling_user(self, impersonate_user=None):
if impersonate_user:
Expand Down

0 comments on commit 85604bf

Please sign in to comment.