def test_del_single_host_resource(self): page = HostResourcePage(self.driver) page.into_host_resource() page.select_host_click_sub_menu(HOST_NAME) page.click_del_menu() page.click_confirm_alert() page.assert_result(action='del')
def test_batch_del_host_resource(self): page = HostResourcePage(self.driver) page.into_host_resource() for hostname in HOST_NAME_LIST: page.select_host(hostname) page.click_sub_menu() page.click_del_menu() page.click_confirm_alert() page.assert_result(action='del')
def test_update_single_host_resource(self): page = HostResourcePage(self.driver) page.into_host_resource() page.select_host_click_sub_menu(HOST_NAME) page.click_update_menu() page.input_hostname(hostname=NEW_HOST_NAME, clear=True) page.select_vpool(pool_name=NEW_POOL_NAME) page.select_host_type(host_type_name=NEW_HOST_TYPE_NAME) page.click_save() page.assert_result(action='update')
def test_batch_add_host_resource(self): page = HostResourcePage(self.driver) page.into_host_resource() page.click_sub_menu() page.click_add_menu(batch=True) page.select_vpool(POOL_NAME) page.select_host_type(HOST_TYPE_NAME) page.input_start_and_end_ip(start_ip=START_IP_ADDR, end_ip=END_IP_ADDR) page.click_scan() page.click_save() page.assert_result(action='batch_add')
def test_add_single_host_resource(self): page = HostResourcePage(self.driver) page.into_host_resource() page.click_sub_menu() page.click_add_menu() page.input_ip_addr(IP_ADDR) page.input_hostname(HOST_NAME) page.select_vpool(POOL_NAME) page.select_host_type(HOST_TYPE_NAME) page.click_save() page.assert_result(action='add')