Skip to content
Merged
Prev Previous commit
Next Next commit
[LIB-656] add cache_key support for data endpoints and script endpoints;
  • Loading branch information
opalczynski committed Jun 7, 2016
commit f600cf33e3420a71eebac49359059b2ae790f34e
3 changes: 2 additions & 1 deletion tests/integration_test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class DataEndpointCacheTest(InstanceMixin, IntegrationTest):
def setUpClass(cls):
super(DataEndpointCacheTest, cls).setUpClass()
cls.klass = cls.instance.templates.create(
instance_name=cls.instance.name,
name='sample_klass',
schema=[
{'name': 'test1', 'type': 'string'},
Expand Down Expand Up @@ -53,4 +54,4 @@ def setUpClass(cls):

def test_cache_request(self):
response = self.script_endpoint.run(cache_key='123456')
self.assertEqual(response.result['stdout'], 12)
self.assertEqual(response.result['stdout'], '12')