~ubuntu-branches/ubuntu/wily/heat/wily

« back to all changes in this revision

Viewing changes to heat/tests/nova/test_nova_floatingip.py

  • Committer: Package Import Robot
  • Author(s): Corey Bryant
  • Date: 2015-09-08 15:52:07 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20150908155207-zi2r1rckyrevr5u7
Tags: 1:5.0.0~b3-0ubuntu1
* New upstream milestone for OpenStack Liberty.
* d/control: Align (build-)depends with upstream.
* d/p/fix-dummy-resource-missing.patch: Dropped. Fixed in milestone.
* d/p/move-extensions.patch: Dropped. Fixed in milestone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
 
119
119
    def test_floating_ip_create(self):
120
120
        rsrc = self.prepare_floating_ip()
 
121
 
 
122
        fip = mock.MagicMock()
 
123
        fip.to_dict.return_value = {'fip': 'info'}
 
124
        self.novaclient.floating_ips.get('1').AndReturn(fip)
121
125
        self.m.ReplayAll()
122
126
 
123
127
        rsrc.validate()
128
132
        self.assertEqual('11.0.0.1', rsrc.FnGetAtt('ip'))
129
133
        self.assertEqual('public', rsrc.FnGetAtt('pool'))
130
134
 
 
135
        self.assertEqual({'fip': 'info'}, rsrc.FnGetAtt('show'))
 
136
 
131
137
        self.m.VerifyAll()
132
138
 
133
139
    def test_floating_ip_delete(self):