@@ -0,0 +1,1198 @@
+import mock%0Aimport unittest%0A%0Afrom cloudify.mocks import MockCloudifyContext, MockContext%0A%0Afrom tests.integration import TestCase, IntegrationTestConfig%0Afrom network_plugin import floatingip%0A%0Aclass ServerPluginTestCase(TestCase):%0A%0A    def setUp(self):%0A        super(ServerPluginTestCase, self).setUp()%0A%0A        source_node = MockContext(%0A            values=%7B%0A                'floatingip': '23.92.245.236'%0A                %7D)%0A%0A        self.ctx = MockCloudifyContext(%0A            source=source_node,%0A            properties=%7B%0A                'server' : %7B'name' : 'mytest-VApp'%7D,%0A                'vm' : %7B'name' : 'mytest'%7D%7D%0A        )%0A        ctx_patch1 = mock.patch('network_plugin.floatingip.ctx', self.ctx)%0A        ctx_patch2 = mock.patch('vcloud_plugin_common.ctx', self.ctx)%0A        ctx_patch1.start()%0A        ctx_patch2.start()%0A        self.addCleanup(ctx_patch1.stop)%0A        self.addCleanup(ctx_patch2.stop)%0A%0A    def tearDown(self):%0A        super(ServerPluginTestCase, self).tearDown()%0A%0A    def test_server_create_delete(self):%0A        floatingip.connect_floatingip(self.vcd_client)%0A        floatingip.disconnect_floatingip(self.vcd_client)%0A        %0Aif __name__ == '__main__':%0A    unittest.main()%0A

add test file