diff options
author | Rabi Mishra <ramishra@redhat.com> | 2016-01-05 17:19:52 +0530 |
---|---|---|
committer | Rabi Mishra <ramishra@redhat.com> | 2016-02-10 10:36:17 +0530 |
commit | 0388da504765f9975aeadc509672c0a47bbcc244 (patch) | |
tree | 5dfcf52da8e401e5755aa45e85ab2f78e118f1f6 /heat/tests/openstack/neutron/test_neutron_port.py | |
parent | 7255eedc7d87e94ee37dbf86d47600868bbccb7a (diff) | |
download | heat-0388da504765f9975aeadc509672c0a47bbcc244.tar.gz |
Resolve name/id using translation rules
This changes the first set of neutron resouces to
use translation rules to resolve name_id properties.
Changed reources:
- OS::Neutron::Subnet
- OS::Neutron::Port
- OS::Neutron:Router
- OS::Neutron:FloatingIp
Change-Id: I2119401e3554d0bafd34978e6c8e7610712148ac
Partial-Bug: #1514680
Diffstat (limited to 'heat/tests/openstack/neutron/test_neutron_port.py')
-rw-r--r-- | heat/tests/openstack/neutron/test_neutron_port.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/heat/tests/openstack/neutron/test_neutron_port.py b/heat/tests/openstack/neutron/test_neutron_port.py index f3cf92287..c117e17bf 100644 --- a/heat/tests/openstack/neutron/test_neutron_port.py +++ b/heat/tests/openstack/neutron/test_neutron_port.py @@ -515,6 +515,12 @@ class NeutronPortTest(common.HeatTestCase): "ip_address": "10.0.0.2" } }}) + neutronV20.find_resourceid_by_name_or_id( + mox.IsA(neutronclient.Client), + 'network', + 'net5678', + cmd_resource=None, + ).MultipleTimes().AndReturn('net5678') call_dict = copy.deepcopy(props) call_dict['security_groups'] = [ @@ -535,12 +541,6 @@ class NeutronPortTest(common.HeatTestCase): "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) - neutronclient.Client.show_port( - 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' - ).AndReturn({'port': { - "status": "ACTIVE", - "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" - }}) neutronclient.Client.update_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'port': {'fixed_ips': []}} |