Merge "Update the access_and_security url"
This commit is contained in:
commit
21b25ed773
@ -533,7 +533,7 @@ class SetInstanceDetails(workflows.Step):
|
||||
return context
|
||||
|
||||
|
||||
KEYPAIR_IMPORT_URL = "horizon:project:access_and_security:keypairs:import"
|
||||
KEYPAIR_IMPORT_URL = "horizon:project:key_pairs:keypairs:import"
|
||||
|
||||
|
||||
class SetAccessControlsAction(workflows.Action):
|
||||
|
@ -3,6 +3,6 @@
|
||||
{% block title %}{{ page_title }}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% include 'project/access_and_security/keypairs/_create.html' %}
|
||||
{% include 'project/key_pairs/_create.html' %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -3,5 +3,5 @@
|
||||
{% block title %}{{ page_title }}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% include 'project/access_and_security/keypairs/_import.html' %}
|
||||
{% include 'project/key_pairs/_import.html' %}
|
||||
{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block main %}
|
||||
{% include 'project/access_and_security/security_groups/_create.html' %}
|
||||
{% include 'project/security_groups/_create.html' %}
|
||||
{% endblock %}
|
||||
|
@ -85,7 +85,7 @@ class UpdateView(forms.ModalFormView):
|
||||
return api.network.security_group_get(self.request, sg_id)
|
||||
except Exception:
|
||||
msg = _('Unable to retrieve security group.')
|
||||
url = reverse('horizon:project:access_and_security:index')
|
||||
url = reverse('horizon:project:security_groups:index')
|
||||
exceptions.handle(self.request, msg, redirect=url)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
@ -40,7 +40,7 @@ resource_urls = {
|
||||
"AWS::EC2::RouteTable": {
|
||||
'link': 'horizon:project:routers:detail'},
|
||||
"AWS::EC2::SecurityGroup": {
|
||||
'link': 'horizon:project:access_and_security:index'},
|
||||
'link': 'horizon:project:security_groups:index'},
|
||||
"AWS::EC2::Subnet": {
|
||||
'link': 'horizon:project:networks:subnets:detail'},
|
||||
"AWS::EC2::Volume": {
|
||||
@ -100,7 +100,7 @@ resource_urls = {
|
||||
"OS::Neutron::VPNService": {
|
||||
'link': 'horizon:project:vpn:vpnservicedetails'},
|
||||
"OS::Nova::KeyPair": {
|
||||
'link': 'horizon:project:access_and_security:index'},
|
||||
'link': 'horizon:project:key_pairs:index'},
|
||||
"OS::Nova::Server": {
|
||||
'link': 'horizon:project:instances:detail'},
|
||||
"OS::Swift::Container": {
|
||||
|
@ -17,8 +17,10 @@ from openstack_dashboard.test.integration_tests.regions import baseregion
|
||||
|
||||
class NavigationAccordionRegion(baseregion.BaseRegion):
|
||||
"""Navigation menu located in the left."""
|
||||
_project_access_security_locator = (
|
||||
by.By.CSS_SELECTOR, 'a[href*="/project/access_and_security/"]')
|
||||
_project_security_groups_locator = (
|
||||
by.By.CSS_SELECTOR, 'a[href*="/project/security_groups/"]')
|
||||
_project_key_pairs_locator = (
|
||||
by.By.CSS_SELECTOR, 'a[href*="/project/key_pairs/"]')
|
||||
_settings_change_password_locator = (
|
||||
by.By.CSS_SELECTOR, 'a[href*="/settings/password//"]')
|
||||
_project_bar_locator = (by.By.XPATH,
|
||||
@ -74,8 +76,12 @@ class NavigationAccordionRegion(baseregion.BaseRegion):
|
||||
return None
|
||||
|
||||
@property
|
||||
def access_security(self):
|
||||
return self._get_element(*self._project_access_security_locator)
|
||||
def security_groups(self):
|
||||
return self._get_element(*self._project_security_groups_locator)
|
||||
|
||||
@property
|
||||
def key_pairs(self):
|
||||
return self._get_element(*self._project_key_pairs_locator)
|
||||
|
||||
@property
|
||||
def change_password(self):
|
||||
|
Loading…
Reference in New Issue
Block a user