Commit 0fceea90 authored by Łukasz Nowak's avatar Łukasz Nowak

Update to new call expectation.

parent 48da1486
...@@ -821,7 +821,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin): ...@@ -821,7 +821,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
def test(self): def test(self):
kwargs = {'log': 'This is cool log!'} kwargs = {'log': 'This is cool log!', 'bang_tree': True}
self.connection.request(method='POST', self.connection.request(method='POST',
url='/'.join([self.api_path, 'instance', url='/'.join([self.api_path, 'instance',
self.software_instance.getRelativeUrl(), 'bang']), self.software_instance.getRelativeUrl(), 'bang']),
...@@ -854,7 +854,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): ...@@ -854,7 +854,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
def test_bad_xml(self): def test_bad_xml(self):
self._destroySoftwareInstanceTextContentXml(self.software_instance) self._destroySoftwareInstanceTextContentXml(self.software_instance)
kwargs = {'log': 'This is cool log!'} kwargs = {'log': 'This is cool log!', 'bang_tree': True}
self.connection.request(method='POST', self.connection.request(method='POST',
url='/'.join([self.api_path, 'instance', url='/'.join([self.api_path, 'instance',
self.software_instance.getRelativeUrl(), 'bang']), self.software_instance.getRelativeUrl(), 'bang']),
...@@ -950,7 +950,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): ...@@ -950,7 +950,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
self.assertInstanceBangSimulatorEmpty() self.assertInstanceBangSimulatorEmpty()
def test_additional_key_json(self): def test_additional_key_json(self):
kw_log = {'log': 'This is cool log!'} kw_log = {'log': 'This is cool log!', 'bang_tree': True}
kwargs = kw_log.copy() kwargs = kw_log.copy()
kwargs.update(**{'wrong_key': 'Be ignored'}) kwargs.update(**{'wrong_key': 'Be ignored'})
self.connection.request(method='POST', self.connection.request(method='POST',
......
64 65
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment