Beispiel #1
0
 def associate_eip_from_eip_detail_page(self, elastic_ip, instance_id):
     EipLanding(self).click_elastic_ip(elastic_ip)
     EipDetailPage(self, elastic_ip)
     EipDetailPage(self, elastic_ip).click_action_associate_ip_address_on_detail_page()
     AssociateEipDialog(self).associate_eip_with_instance(instance_id)
     EipLanding(self).click_elastic_ip(elastic_ip)
     EipDetailPage(self, elastic_ip).verify_instance_id_on_detail_page(instance_id)
Beispiel #2
0
 def disassociate_eip_from_eip_detail_page(self, elastic_ip, instance_id):
     BasePage(self).goto_elastic_ip_view_via_menu()
     EipLanding(self).click_elastic_ip(elastic_ip)
     EipDetailPage(self, elastic_ip)
     EipDetailPage(self, elastic_ip).click_action_disassociate_ip_address_on_detail_page()
     DisassociateEipDialog(self).disassociate_eip()
     EipLanding(self).click_elastic_ip(elastic_ip)
     EipDetailPage(self, elastic_ip).verify_instance_id_off_detail_page(instance_id)
Beispiel #3
0
 def release_eip_from_eip_lp(self, elastic_ip):
     """
     Release a single Elastic IP via the item row's actions menu
     :param elastic_ip: IP address to release
     """
     BasePage(self).goto_elastic_ip_view_via_menu()
     EipLanding(self).select_release_ip_actions_menu_item(elastic_ip)
     ReleaseEipDialog(self).release_elastic_ips()
     EipLanding(self).verify_elastic_ip_is_released(elastic_ip)
Beispiel #4
0
 def release_eips_from_eip_lp(self, elastic_ips):
     """
     Batch-release Elastic IPs from landing page via More Actions button
     :param elastic_ips: List of Elastic IPs to be released
     :return: released Elastic IPs as a list of strings
     """
     BasePage(self).goto_elastic_ip_view_via_menu()
     EipLanding(self).click_elastic_ips_checkboxes(elastic_ips)
     EipLanding(self).select_release_ips_more_actions_item()
     return ReleaseEipDialog(self).release_elastic_ips()
Beispiel #5
0
 def release_eip_from_eip_detail_page(self, elastic_ip):
     """
     Release a single Elastic IP from the EIP detail page
     :param elastic_ip: Elastic IP to be released
     """
     BasePage(self).goto_elastic_ip_view_via_menu()
     EipLanding(self).click_elastic_ip(elastic_ip)
     EipDetailPage(self, elastic_ip)
     EipDetailPage(self, elastic_ip).click_action_release_ip_address_on_detail_page()
     ReleaseEipDialog(self).release_elastic_ips()
     EipLanding(self).verify_elastic_ip_is_released(elastic_ip)
Beispiel #6
0
 def allocate_eip_from_lp(self, number=1):
     """
     :param number: how many IPs to allocate
     :return: allocated IPs as a list of strings
     """
     BasePage(self).goto_elastic_ip_view_via_menu()
     EipLanding(self).click_allocate_elastic_ips_button()
     return AllocateEipDialog(self).allocate_elastic_ips(number=number)
Beispiel #7
0
 def disassociate_eip_from_eip_lp(self, elastic_ip, instance_id):
     BasePage(self).goto_elastic_ip_view_via_menu()
     EipLanding(self).disassociate_with_instance_actions_menu_item(elastic_ip, instance_id)
     DisassociateEipDialog(self).disassociate_eip()
     EipLanding(self).verify_disassociate_eip_from_lp(instance_id)