desc
stringlengths 3
26.7k
| decl
stringlengths 11
7.89k
| bodies
stringlengths 8
553k
|
---|---|---|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_template_allocate_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_allocate, 'foo')
|
'Tests that a SaltCloudSystemExit is raised when the data and
path kwargs are missing.'
| def test_template_allocate_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_allocate, 'function')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_template_clone_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_clone, 'foo')
|
'Tests that a SaltCloudSystemExit is raised when the name arg is missing.'
| def test_template_clone_no_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_clone, 'function')
|
'Tests that a SaltCloudSystemExit is raised when the template_name and
template_id args are missing.'
| def test_template_clone_no_template_name_or_template_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_clone, 'function', kwargs={'name': 'foo'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_template_delete_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_delete, 'foo')
|
'Tests that a SaltCloudSystemExit is raised when the name and
template_id args are missing.'
| def test_template_delete_no_name_or_template_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_delete, 'function')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_template_instantiate_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_instantiate, 'foo')
|
'Tests that a SaltCloudSystemExit is raised when the vm_name arg is missing.'
| def test_template_instantiate_no_vm_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_instantiate, 'function', None)
|
'Tests that a SaltCloudSystemExit is raised when the template_name and
template_id args are missing.'
| def test_template_instantiate_no_template_id_or_template_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_instantiate, 'function', kwargs={'vm_name': 'test'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_template_update_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_update, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the update_type contains
and invalid value.'
| def test_template_update_bad_update_type_value(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_update, call='function', kwargs={'update_type': 'foo'})
|
'Tests that a SaltCloudSystemExit is raised when the template_id and the
template_name args are missing.'
| def test_template_update_no_template_id_or_template_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_update, call='function', kwargs={'update_type': 'merge'})
|
'Tests that a SaltCloudSystemExit is raised when the data and the
path args are missing.'
| def test_template_update_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.template_update, call='function', kwargs={'update_type': 'merge', 'template_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_action, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the action arg is missing'
| def test_vm_action_no_action(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_action, VM_NAME, call='action')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vm_allocate_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_allocate, 'foo')
|
'Tests that a SaltCloudSystemExit is raised when the data and
path kwargs are missing.'
| def test_vm_allocate_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_allocate, 'function')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_attach_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_attach, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the data and
path kwargs are missing.'
| def test_vm_attach_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_attach, VM_NAME, call='action')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_attach_nic_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_attach_nic, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the data and
path kwargs are missing.'
| def test_vm_attach_nic_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_attach_nic, VM_NAME, call='action')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_deploy_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_deploy, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the host_id and the
host_name args are missing.'
| def test_vm_deploy_no_host_id_or_host_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_deploy, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_detach_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_detach, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the disk_id ar is missing.'
| def test_vm_detach_no_disk_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_detach, VM_NAME, call='action')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_detach_nic_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_detach_nic, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the nic_id arg is missing.'
| def test_vm_detach_nic_no_nic_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_detach_nic, VM_NAME, call='action')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_disk_save_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_save, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the disk_id arg is missing.'
| def test_vm_disk_save_no_disk_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_save, VM_NAME, call='action', kwargs={'image_name': 'foo'})
|
'Tests that a SaltCloudSystemExit is raised when the image_name arg is missing.'
| def test_vm_disk_save_no_image_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_save, VM_NAME, call='action', kwargs={'disk_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_disk_snapshot_create_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_create, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the disk_id arg is missing.'
| def test_vm_disk_snapshot_create_no_disk_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_create, VM_NAME, call='action', kwargs={'description': 'foo'})
|
'Tests that a SaltCloudSystemExit is raised when the image_name arg is missing.'
| def test_vm_disk_snapshot_create_no_description(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_create, VM_NAME, call='action', kwargs={'disk_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_disk_snapshot_delete_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_delete, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the disk_id arg is missing.'
| def test_vm_disk_snapshot_delete_no_disk_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_delete, VM_NAME, call='action', kwargs={'snapshot_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when the snapshot_id arg is missing.'
| def test_vm_disk_snapshot_delete_no_snapshot_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_delete, VM_NAME, call='action', kwargs={'disk_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_disk_snapshot_revert_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_revert, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the disk_id arg is missing.'
| def test_vm_disk_snapshot_revert_no_disk_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_revert, VM_NAME, call='action', kwargs={'snapshot_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when the snapshot_id arg is missing.'
| def test_vm_disk_snapshot_revert_no_snapshot_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_disk_snapshot_revert, VM_NAME, call='action', kwargs={'disk_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_info_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_info, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_migrate_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_migrate, VM_NAME, call='foo')
|
'Tests that a SaltCLoudSystemExit is raised when the datastore_id and the
datastore_name args are missing.'
| def test_vm_migrate_no_datastore_id_or_datastore_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_migrate, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the the host_id and the
host_name args are missing.'
| def test_vm_migrate_no_host_id_or_host_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_migrate, VM_NAME, call='action', kwargs={'datastore_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_monitoring_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_monitoring, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_resize_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_resize, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the data and path args
are missing.'
| def test_vm_resize_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_resize, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_snapshot_create_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_snapshot_create, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the snapshot_name arg
is missing.'
| def test_vm_snapshot_create_no_snapshot_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_snapshot_create, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_snapshot_delete_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_snapshot_delete, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the snapshot_id arg
is missing.'
| def test_vm_snapshot_delete_no_snapshot_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_snapshot_delete, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_snapshot_revert_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_snapshot_revert, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the snapshot_id arg
is missing.'
| def test_vm_snapshot_revert_no_snapshot_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_snapshot_revert, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--action or -a is provided.'
| def test_vm_update_action_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_update, VM_NAME, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the update_type arg
is missing.'
| def test_vm_update_no_update_type(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_update, VM_NAME, call='action', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the update_type kwarg is
not a valid value.'
| def test_vm_update_bad_update_type_value(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_update, VM_NAME, call='action', kwargs={'update_type': 'foo'})
|
'Tests that a SaltCloudSystemExit is raised when the data and path args
are missing.'
| def test_vm_update_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vm_update, VM_NAME, call='action', kwargs={'update_type': 'merge'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_add_ar_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_add_ar, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and vn_name
args are missing.'
| def test_vn_add_ar_no_vn_id_or_vn_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_add_ar, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the path and data
args are missing.'
| def test_vn_add_ar_no_path_or_data(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_add_ar, call='function', kwargs={'vn_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_allocate_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_allocate, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the path and data
args are missing.'
| def test_vn_allocate_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_allocate, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_delete_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_delete, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and name
args are missing.'
| def test_vn_delete_no_vn_id_or_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_delete, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_free_ar_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_free_ar, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the ar_id is missing.'
| def test_vn_free_ar_no_ar_id(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_free_ar, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and vn_name
args are missing.'
| def test_vn_free_ar_no_vn_id_or_vn_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_free_ar, call='function', kwargs={'ar_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_hold_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_hold, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and vn_name
args are missing.'
| def test_vn_hold_no_vn_id_or_vn_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_hold, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the data and path
args are missing.'
| def test_vn_hold_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_hold, call='function', kwargs={'vn_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_info_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_info, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and vn_name
args are missing.'
| def test_vn_info_no_vn_id_or_vn_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_info, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_release_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_release, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and vn_name
args are missing.'
| def test_vn_release_no_vn_id_or_vn_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_release, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the data and path
args are missing.'
| def test_vn_release_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_release, call='function', kwargs={'vn_id': '0'})
|
'Tests that a SaltCloudSystemExit is raised when something other than
--function or -f is provided.'
| def test_vn_reserve_function_error(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_reserve, call='foo')
|
'Tests that a SaltCloudSystemExit is raised when the vn_id and vn_name
args are missing.'
| def test_vn_reserve_no_vn_id_or_vn_name(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_reserve, call='function', kwargs=None)
|
'Tests that a SaltCloudSystemExit is raised when the data and path
args are missing.'
| def test_vn_reserve_no_data_or_path(self):
| self.assertRaises(SaltCloudSystemExit, opennebula.vn_reserve, call='function', kwargs={'vn_id': '0'})
|
'Tests that invalid XML raises SaltCloudSystemExit.'
| @skipIf((not HAS_XML_LIBS), 'cannot find lxml python library')
def test__get_xml(self):
| self.assertRaises(SaltCloudSystemExit, opennebula._get_xml, "[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.")
|
'Test if query node data is filtering out unpreferred IP addresses.'
| @patch('salt.cloud.clouds.nova.show_instance', MagicMock(return_value={'state': 'ACTIVE', 'public_ips': [], 'addresses': [], 'private_ips': PRIVATE_IPS}))
@patch('salt.cloud.clouds.nova.rackconnect', MagicMock(return_value=False))
@patch('salt.cloud.clouds.nova.rackconnectv3', MagicMock(return_value={'mynet': ['1.1.1.1']}))
@patch('salt.cloud.clouds.nova.cloudnetwork', MagicMock(return_value=False))
@patch('salt.cloud.clouds.nova.managedcloud', MagicMock(return_value=False))
@patch('salt.cloud.clouds.nova.preferred_ip', _preferred_ip(PRIVATE_IPS, ['0.0.0.0']))
@patch('salt.cloud.clouds.nova.ssh_interface', MagicMock(return_value='public_ips'))
def test_query_node_data_filter_preferred_ip_addresses(self):
| vm = {'name': None}
data = MagicMock()
data.public_ips = []
assert (nova._query_node_data(vm, data, MagicMock()).public_ips == ['0.0.0.0'])
|
'Test if query node data is filtering out unpreferred IP addresses.'
| @patch('salt.cloud.clouds.openstack.show_instance', MagicMock(return_value={'state': True, 'public_ips': [], 'private_ips': PRIVATE_IPS}))
@patch('salt.cloud.clouds.openstack.rackconnect', MagicMock(return_value=False))
@patch('salt.cloud.clouds.openstack.managedcloud', MagicMock(return_value=False))
@patch('salt.cloud.clouds.openstack.preferred_ip', _preferred_ip(PRIVATE_IPS, ['0.0.0.0']))
@patch('salt.cloud.clouds.openstack.ssh_interface', MagicMock(return_value=False))
def test_query_node_data_filter_preferred_ip_addresses(self):
| openstack.NodeState = MagicMock()
openstack.NodeState.RUNNING = True
vm = {'name': None}
data = MagicMock()
data.public_ips = []
with patch('salt.utils.cloud.is_public_ip', MagicMock(return_value=True)):
assert (openstack._query_node_data(vm, data, False, MagicMock()).public_ips == ['0.0.0.0'])
|
'Tests when name starts with an invalid character.'
| def test_validate_name_first_character_invalid(self):
| self.assertFalse(linode._validate_name('-foo'))
self.assertFalse(linode._validate_name('_foo'))
|
'Tests when name ends with an invalid character.'
| def test_validate_name_last_character_invalid(self):
| self.assertFalse(linode._validate_name('foo-'))
self.assertFalse(linode._validate_name('foo_'))
|
'Tests when name has less than three letters.'
| def test_validate_name_too_short(self):
| self.assertFalse(linode._validate_name(''))
self.assertFalse(linode._validate_name('ab'))
self.assertTrue(linode._validate_name('abc'))
|
'Tests when name has more than 48 letters.'
| def test_validate_name_too_long(self):
| long_name = '1111-2222-3333-4444-5555-6666-7777-8888-9999-111'
self.assertEqual(len(long_name), 48)
self.assertTrue(linode._validate_name(long_name))
long_name += '1'
self.assertEqual(len(long_name), 49)
self.assertFalse(linode._validate_name(long_name))
|
'Tests when name contains invalid characters.'
| def test_validate_name_invalid_characters(self):
| self.assertFalse(linode._validate_name('foo;bar'))
self.assertFalse(linode._validate_name('foo\xc3\xa0\xc3\xa0\xc3\xa0\xc3\xa0\xc3\xa0bar'))
self.assertFalse(linode._validate_name('foo bar'))
|
'Tests when name contains valid characters.'
| def test_validate_name_valid_characters(self):
| self.assertTrue(linode._validate_name('foo123bar'))
self.assertTrue(linode._validate_name('foo-bar'))
self.assertTrue(linode._validate_name('foo_bar'))
self.assertTrue(linode._validate_name('1foo'))
self.assertTrue(linode._validate_name('foo0'))
|
'Test if deployment fails. This is the most basic test as saltify doesn\'t contain much logic'
| def test_create_no_deploy(self):
| with patch('salt.cloud.clouds.saltify._verify', MagicMock(return_value=True)):
vm = {'deploy': False, 'driver': 'saltify', 'name': 'dummy'}
self.assertTrue(saltify.create(vm))
|
'Tests that a SaltCloudSystemExit is raised when trying to call test_vcenter_connection
with anything other than --function or -f.'
| def test_test_vcenter_connection_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.test_vcenter_connection, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call get_vcenter_version
with anything other than --function or -f.'
| def test_get_vcenter_version_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.get_vcenter_version, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call avail_images
with --action or -a.'
| def test_avail_images_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.avail_images, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call avail_locations
with --action or -a.'
| def test_avail_locations_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.avail_locations, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call avail_sizes
with --action or -a.'
| def test_avail_sizes_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.avail_sizes, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_datacenters
with anything other than --function or -f.'
| def test_list_datacenters_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_datacenters, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_clusters
with anything other than --function or -f.'
| def test_list_clusters_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_clusters, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_datastore_clusters
with anything other than --function or -f.'
| def test_list_datastore_clusters_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_datastore_clusters, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_datastores
with anything other than --function or -f.'
| def test_list_datastores_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_datastores, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_hosts
with anything other than --function or -f.'
| def test_list_hosts_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_hosts, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_resourcepools
with anything other than --function or -f.'
| def test_list_resourcepools_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_resourcepools, call='action')
|
'Tests that a SaltCloudSystemExit is raised when trying to call list_networks
with anything other than --function or -f.'
| def test_list_networks_call(self):
| self.assertRaises(SaltCloudSystemExit, vmware.list_networks, call='action')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.