diff options
author | xinhuili <lxinhui@vmware.com> | 2018-04-11 03:48:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-11 03:48:47 +0000 |
commit | e2dfaa9d05f2b4dfb8b54704b754648022826bee (patch) | |
tree | f2ddf331e0edcc5e7c6f4f9bbd213d27e7ae4922 | |
parent | af206ca290a302e900f701db9d9097ba73147fdf (diff) | |
parent | 834c54cde65e9d377f1e45d80a6cec67bf66bf86 (diff) |
Merge "Add fake delete stack test"
-rw-r--r-- | vio/vio/tests/test_fake_heat_view.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_heat_view.py b/vio/vio/tests/test_fake_heat_view.py index 56a8270..3cdb41a 100644 --- a/vio/vio/tests/test_fake_heat_view.py +++ b/vio/vio/tests/test_fake_heat_view.py @@ -91,3 +91,15 @@ class TestFakeHeatService(unittest.TestCase): } resp = self.view.post(req, "1234abcd") self.assertEqual(201, resp.status_code) + + @mock.patch.object(fakeResponse, "deleteStack") + def test_delete_heat_stacks(self, mock_deleteStack): + req = mock.Mock() + req.META = { + "HTTP_X_AUTH_TOKEN": Token + } + mock_deleteStack.return_value = { + "" + } + resp = self.view.delete(req, "1234abcd", STACK_NAME, STACK_ID) + self.assertEqual(204, resp.status_code) |