Browse Source

Merge "Remove property "ssh_authorized_key" from OS::Magnum::BayModel"

changes/29/218929/11
Jenkins 6 years ago committed by Gerrit Code Review
parent
commit
e597e17175
  1. 7
      heat/engine/resources/openstack/magnum/baymodel.py
  2. 4
      heat/tests/openstack/magnum/test_baymodel.py

7
heat/engine/resources/openstack/magnum/baymodel.py

@ -110,6 +110,12 @@ class BayModel(resource.Resource):
SSH_AUTHORIZED_KEY: properties.Schema(
properties.Schema.STRING,
_('The SSH Authorized Key.'),
support_status=support.SupportStatus(
status=support.HIDDEN,
version='6.0.0',
message=_('This attribute has been removed in Magnum'),
previous_status=support.SupportStatus(version='5.0.0')
)
),
COE: properties.Schema(
properties.Schema.STRING,
@ -183,7 +189,6 @@ class BayModel(resource.Resource):
'fixed_network': self.properties[self.FIXED_NETWORK],
'dns_nameserver': self.properties[self.DNS_NAMESERVER],
'docker_volume_size': self.properties[self.DOCKER_VOLUME_SIZE],
'ssh_authorized_key': self.properties[self.SSH_AUTHORIZED_KEY],
'coe': self.properties[self.COE],
}
if self.properties[self.NETWORK_DRIVER]:

4
heat/tests/openstack/magnum/test_baymodel.py

@ -40,7 +40,6 @@ class TestMagnumBayModel(common.HeatTestCase):
fixed_network: 0f59a3dd-fac1-4d03-b41a-d4115fbffa89
dns_nameserver: 8.8.8.8
docker_volume_size: 5
ssh_authorized_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB
coe: 'swarm'
'''
@ -54,7 +53,6 @@ class TestMagnumBayModel(common.HeatTestCase):
'fixed_network': '0f59a3dd-fac1-4d03-b41a-d4115fbffa89',
'dns_nameserver': '8.8.8.8',
'docker_volume_size': 5,
'ssh_authorized_key': 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB',
'coe': 'swarm',
}
@ -107,7 +105,6 @@ class TestMagnumBayModelWithAddedProperties(TestMagnumBayModel):
fixed_network: 0f59a3dd-fac1-4d03-b41a-d4115fbffa89
dns_nameserver: 8.8.8.8
docker_volume_size: 5
ssh_authorized_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB
coe: 'mesos'
network_driver: 'flannel'
http_proxy: 'http://proxy.com:123'
@ -128,7 +125,6 @@ class TestMagnumBayModelWithAddedProperties(TestMagnumBayModel):
'fixed_network': '0f59a3dd-fac1-4d03-b41a-d4115fbffa89',
'dns_nameserver': '8.8.8.8',
'docker_volume_size': 5,
'ssh_authorized_key': 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB',
'coe': 'mesos',
'network_driver': 'flannel',
'http_proxy': 'http://proxy.com:123',

Loading…
Cancel
Save