def setup_class(cls): TestPutVlanInvalidExternalIds.test_var = UpdateVlanInvalidExternalIds() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) create_fake_vlan(TestPutVlanInvalidExternalIds.test_var.vlan_path, TestPutVlanInvalidExternalIds.test_var.switch_ip, TestPutVlanInvalidExternalIds.test_var.vlan_name, TestPutVlanInvalidExternalIds.test_var.vlan_id)
def setup_class(cls): Test_IfMatchVlan.test_var = IfMatchVlanTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) create_fake_vlan(Test_IfMatchVlan.test_var.vlan_path, Test_IfMatchVlan.test_var.switch_ip, Test_IfMatchVlan.test_var.vlan_name, Test_IfMatchVlan.test_var.vlan_id)
def setup_class(cls): TestGetFilterVlanByAdmin.test_var = FilterVlanByAdmin() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) for i in range(2, NUM_FAKE_VLANS + 2): create_fake_vlan(TestGetFilterVlanByAdmin.test_var.path, TestGetFilterVlanByAdmin.test_var.switch_ip, "Vlan-%s" % i, i)
def setup_class(cls): TestDeleteExistentVlan.test_var = DeleteExistentVlan() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) create_fake_vlan(TestDeleteExistentVlan.test_var.vlan_path, TestDeleteExistentVlan.test_var.switch_ip, TestDeleteExistentVlan.test_var.vlan_name, TestDeleteExistentVlan.test_var.vlan_id)
def setup_class(cls): TestGetVlansAssociated.test_var = QueryVlansAssociated() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) create_fake_vlan(TestGetVlansAssociated.test_var.vlan_path, TestGetVlansAssociated.test_var.switch_ip, TestGetVlansAssociated.test_var.vlan_name, TestGetVlansAssociated.test_var.vlan_id)
def setup_class(cls): TestPutVlanInvalidAdmin.test_var = UpdateVlanInvalidAdmin() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP) create_fake_vlan(TestPutVlanInvalidAdmin.test_var.vlan_path, TestPutVlanInvalidAdmin.test_var.SWITCH_IP, TestPutVlanInvalidAdmin.test_var.vlan_name, TestPutVlanInvalidAdmin.test_var.vlan_id)
def setup_class(cls): Test_QueryPortPagination.test_var = QueryPortPaginationTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP) # Create NUM_PORTS test ports status_code = \ create_test_ports(Test_QueryPortPagination.test_var.SWITCH_IP, NUM_PORTS) assert status_code == httplib.CREATED, "Failed to create test ports"
def setup_class(cls): TestGetVlanByName.test_var = QueryVlanByName() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) cls.fake_data = create_fake_vlan(TestGetVlanByName.test_var.vlan_path, TestGetVlanByName.test_var.switch_ip, TestGetVlanByName.test_var.vlan_name, TestGetVlanByName.test_var.vlan_id) cls.container_id = get_container_id(cls.test_var.net.switches[0])
def setup_class(cls): TestPutExistingVlan.test_var = UpdateExistingVlan() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip) create_fake_vlan(TestPutExistingVlan.test_var.vlan_path, TestPutExistingVlan.test_var.switch_ip, TestPutExistingVlan.test_var.vlan_name, TestPutExistingVlan.test_var.vlan_id) cls.container_id = get_container_id(cls.test_var.net.switches[0])
def setup_class(cls): Test_DeletePort.test_var = DeletePortTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP) # Add a test port info("\n########## Creating Test Port ##########\n") status_code, response = create_test_port(cls.test_var.SWITCH_IP) assert status_code == httplib.CREATED, "Port not created."\ "Response %s" % response info("### Test Port Created ###\n")
def setup_class(cls): Test_WebUIREST.test_var = Test_CreateLag() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP1) rest_sanity_check(cls.test_var.SWITCH_IP2)
def setup_class(cls): Test_LogsSyslogIdentifier.test_var = LogsSyslogIdentifierTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_bgp_routers.test_var = QueryBGPRoutersTest() rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_dc_schema_validations.test_var = QueryDcSchemaValidations() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): TestDeleteNonExistentVlan.test_var = DeleteNonExistentVlan() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): TestPostVlanMissingFields.test_var = CreateVlanMissingFields() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): TestGetDefaultBridgeNormal.test_var = QueryDefaultBridgeNormal() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): cls.test_var = LoginTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_LogsInvalidFilters.test_var = LogsInvalidFiltersTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_bgp_neighbors.test_var = QueryBGPNeighborsTest() rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_interfaces_id.test_var = QueryInterfacesId() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_CreatePort.test_var = CreatePortTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP) cls.container_id = get_container_id(cls.test_var.net.switches[0])
def setup_class(cls): TestPostVlanInvalidExternalIds.test_var = \ CreateVlanInvalidExternalIds() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): TestPostVlanInvalidOtherConfig.test_var = \ CreateVlanInvalidOtherConfig() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): Test_custom_validators.test_var = QueryCustomValidatorsTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_route_maps.test_var = QueryRouteMaps() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): TestGetNonExistentVlan.test_var = QueryNonExistentVlanByName() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): TestPostDuplicated.test_var = CreateVlanDuplicated() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.switch_ip)
def setup_class(cls): Test_WebUI_ECMP.test_var = Test_EcmpConfig() rest_sanity_check(cls.test_var.SWITCH_IP)
def setup_class(cls): Test_QuerySortPort.test_var = QuerySortPortTest() get_server_crt(cls.test_var.net.switches[0]) rest_sanity_check(cls.test_var.SWITCH_IP) Test_QuerySortPort.test_var.setup_switch_ports(NUM_FAKE_PORTS)