def test_change_power_cap(self):
     """CHANGE AND CHECK POWER CAP"""
     test.run_json_test('POST', self, Post, "test_server1_401_watts")
     test.run_json_test('PUT', self, Put, "test_server1_415_watts")
     test.run_json_test('POST', self, Post, "test_server1_415_watts")
     test.run_json_test('PUT', self, Put, "test_server1_401_watts")
     test.run_json_test('POST', self, Post, "test_server1_401_watts")
 def test_distribute_disable_power_cap(self):
     """DISTRIBUTE AND CHECK POWER CAPS"""
     test.run_json_test('PUT', self, PutAll,
                        "test_server1_and_server2_disable_power_cap")
     test.run_json_test('PUT', self, Put, "test_server1_401_watts")
     test.run_json_test('PUT', self, Put, "test_server2_200_watts")
     test.run_json_test('POST', self, Post, "test_server1_401_watts")
     test.run_json_test('POST', self, Post, "test_server2_200_watts")
 def test_create_and_delete(self):
     """CREATE AND DELETE NETWORK"""
     test.run_json_test('GET', self, Get, "test_empty_network")
     network_id = test.run_json_test('POST', self, Post,
                                     "test_create_network1")["id"]
     path_mod = {"path": "/api/1.0/networks/{}".format(network_id)}
     test.run_mod_json_test(self, 'DELETE', DeleteNetworkId,
                            "test_networkId", path_mod)
 def test_ip_address_pools(self):
     """CHECK IP ADDRESS POOLS"""
     test.run_json_test('GET', self, Get, "test_empty_network")
     network_id = test.run_json_test('POST', self, Post,
                                     "test_create_network1")["id"]
     path_mod = {"path": "/api/1.0/networks/{}".format(network_id)}
     ip_path_mod = {
         "path": "/api/1.0/networks/{}/ipAddressPools".format(network_id)
     }
     test.run_mod_json_test('GET', self, GetNetworkIdIpAddressPools,
                            "test_networkId_ipAddressPools", ip_path_mod)
     test.run_mod_json_test(self, 'DELETE', DeleteNetworkId,
                            "test_networkId", path_mod)
Ejemplo n.º 5
0
 def test_create_pool_and_reserve(self):
     """RESERVE IPV4 RANGE"""
     test.run_json_test('GET', self, Get, "test_empty_network")
     network_id = test.run_json_test('POST', self, Post,
                                     "test_create_network1")["id"]
     id_mod = {"path": "/api/1.0/networks/{}".format(network_id)}
     ipv4_id_mod = {
         "path": "/api/1.0/networks/{}/ipv4Ranges".format(network_id)
     }
     range_id = test.run_mod_json_test('POST', self, NetworkIdIpIpv4Ranges,
                                       "test_network1_ipv4pool",
                                       ipv4_id_mod)["id"]
     test.run_mod_json_test('GET', self, GetNetworkId,
                            "test_network1_rangeid", id_mod)
     ipv4_range_mod = {
         "path":
         "/api/1.0/networks/{}/ipv4Ranges/{}".format(network_id, range_id)
     }
     test.run_mod_json_test('DELETE', self,
                            DeleteNetworkIdIpIpv4RangesRangeId,
                            "test_delete_network1_pool", ipv4_range_mod)
     test.run_mod_json_test('DELETE', self, DeleteNetworkId,
                            "test_networkId", id_mod)
Ejemplo n.º 6
0
 def test_update_autoupdate(self):
     """EXPORT AND IMPORT CONFIG PROFILE"""
     test.run_json_test('POST', self, Export, "test_fitFile_export")
     test.run_json_test('POST', self, GetComponents,
                        "test_lc_autoupdate_enabled")
     test.run_json_test('POST', self, UpdateComponents,
                        "test_autoupdate_disable")
     test.run_json_test('POST', self, GetComponents,
                        "test_lc_autoupdate_disabled")
     test.run_json_test('POST', self, Export, "test_fitFile_export")
     test.run_json_test('POST', self, GetComponents,
                        "test_lc_autoupdate_disabled")
     test.run_json_test('POST', self, UpdateComponents,
                        "test_autoupdate_enable")
     test.run_json_test('POST', self, Export, "test_fitFile_export")
     test.run_json_test('POST', self, GetComponents,
                        "test_lc_autoupdate_enabled")
Ejemplo n.º 7
0
 def test_johnny_export_import(self):
     """EXPORT AND IMPORT CONFIG PROFILE"""
     test.run_json_test('POST', self, Export, "test_johnny_export")
     test.run_json_test('POST', self, Import, "test_johnny_import")
Ejemplo n.º 8
0
 def test_fitfile_export_check_import(self):
     """EXPORT CHECK AND IMPORT CONFIG PROFILE"""
     test.run_json_test('POST', self, Export, "test_fitFile_export")
     test.run_json_test('POST', self, GetComponents,
                        "test_lc_autoupdate_enabled")
     test.run_json_test('POST', self, Import, "test_fitFile_import")
Ejemplo n.º 9
0
 def test_induce_error(self):
     """EXPORT INDUCE ERROR TESTS"""
     test.run_json_test('POST', self, Export, "test_backup_export")
     test.induce_error('POST', self)
     test.run_json_test('POST', self, Import, "test_backup_import")
Ejemplo n.º 10
0
 def test_create_and_deploy_iso(self):
     """CREATE ISO AND DEPLOY"""
     test.run_json_test('POST', self, IsoCreate, "test_create_test.iso")
     test.run_json_test('POST', self, Deploy, "deploy_test.iso")
Ejemplo n.º 11
0
 def test_export_factory_settings(self):
     """TEST Export Factory Settings"""
     test.run_json_test('POST', self, Factory, "test_base")
Ejemplo n.º 12
0
 def test_export_inventory(self):
     """TEST Export Hardware Inventory"""
     test.run_json_test('POST', self, ExportInventory, "test_base")
Ejemplo n.º 13
0
 def test_clone(self):
     """TEST Clone """
     test.run_json_test('POST', self, Clone, "test_base")
     test.run_json_test('POST', self, GetComponents, "test_base")
 def test_multiple_server_power_caps(self):
     """CHANGE AND CHECK MULTIPLE POWER CAPS"""
     test.run_json_test('POST', self, Post, "test_server1_401_watts")
     test.run_json_test('POST', self, Post, "test_server2_200_watts")
     test.run_json_test('POST', self, PostAll, "test_server1_401_watts")
     test.run_json_test('POST', self, PostAll, "test_server2_200_watts")
     test.run_json_test('PUT', self, Put, "test_server1_415_watts")
     test.run_json_test('PUT', self, Put, "test_server2_215_watts")
     test.run_json_test('POST', self, PostAll, "test_server1_415_watts")
     test.run_json_test('POST', self, PostAll, "test_server2_215_watts")
     test.run_json_test('PUT', self, Put, "test_server1_401_watts")
     test.run_json_test('PUT', self, Put, "test_server2_200_watts")
     test.run_json_test('POST', self, Post, "test_server1_401_watts")
     test.run_json_test('POST', self, Post, "test_server2_200_watts")
 def test_disable_power_cap(self):
     """DISABLE AND ENABLE POWER CAP"""
     test.run_json_test('PUT', self, Put, "test_server1_disable_power_cap")
     test.run_json_test('PUT', self, Put, "test_server1_401_watts")
Ejemplo n.º 16
0
 def test_configure_bios_boot(self):
     """TEST CONFIGURE BIOS BOOT SEQUENCE"""
     test.run_json_test('POST', self, ConfigureBios, "enable_boot_device" )
     test.run_json_test('POST', self, ConfigureBios, "disable_boot_device" )
Ejemplo n.º 17
0
 def test_json(self):
     """Enable and disable Boot Device"""
     test.run_json_test('POST', self, ConfigureBios, "enable_boot_device")
     test.run_json_test('POST', self, ConfigureBios, "disable_boot_device")