Пример #1
0
 def create_security_group_from_view_page(self, s_group_name, s_group_description):
     """
     Creates security group from S. groups view page without adding rules or tags.
     :param s_group_name:
     :param s_group_description:
     """
     BasePage(self).goto_security_groups_view_via_menu()
     SecurityGroupLanding(self).click_create_new_s_group_button()
     CreateScurityGroupDialog(self).create_s_group(s_group_name, s_group_description)
     s_group_id = SecurityGroupDetailPage(self, s_group_name).get_s_group_id()
     return {'s_group_name': s_group_name, 's_group_id':s_group_id}
Пример #2
0
 def create_security_group_from_dashboard(self, s_group_name, s_group_description):
     """
     Creates security group from dashboard without adding rules or tags.
     :param s_group_name:
     :param s_group_description:
     """
     BasePage(self).goto_dashboard_via_menu()
     Dashboard(self).click_create_s_group_link_from_dashboard()
     CreateScurityGroupDialog(self).create_s_group(s_group_name, s_group_description)
     s_group_id = SecurityGroupDetailPage(self, s_group_name).get_s_group_id()
     return {'s_group_name': s_group_name, 's_group_id':s_group_id}
Пример #3
0
 def create_sesecurity_group_with_rules(self, s_group_name, s_group_description, rule_open_to_all, rule_open_to_default_group, rule_open_to_default_group_port_begin, rule_open_to_default_group_port_end):
     BasePage(self).goto_dashboard_via_menu()
     Dashboard(self).click_create_s_group_link_from_dashboard()
     CreateScurityGroupDialog(self).create_s_group_with_rules(s_group_name, s_group_description, rule_open_to_all, rule_open_to_default_group, rule_open_to_default_group_port_begin, rule_open_to_default_group_port_end)
     s_group_id = SecurityGroupDetailPage(self, s_group_name).get_s_group_id()
     return {'s_group_name': s_group_name, 's_group_id':s_group_id}