Commit 69686a8c authored by Jérome Perrin's avatar Jérome Perrin Committed by Rafael Monnerat

SlapOSCacheMixin: store cache json sorted for easier testing

slapos_cloud:testSlapOSCloud fails with PYTHONHASHSEED=385
parent 251dd72f
......@@ -138,7 +138,7 @@ class SlapOSCacheMixin:
'state': state,
'reference': self.getReference(),
'portal_type': self.getPortalType()
})
}, sort_keys=True)
cache_duration = self._getAccessStatusCacheFactory().cache_duration
self._getAccessStatusPlugin().set(self._getAccessStatusCacheKey(),
......
......@@ -115,7 +115,9 @@ class TestSlapOSCloudSlapOSCacheMixin(
'since': '%s' % since,
'state': "",
"text": "#access TEST123 %s" % doc.getUid()
})
},
sort_keys=True,
)
def getBaseExpectedDict(doc):
return _decode_with_json({
"portal_type": doc.getPortalType(),
......@@ -187,7 +189,9 @@ class TestSlapOSCloudSlapOSCacheMixin(
'since': '%s' % since,
'state': "",
"text": "#access TEST123 %s" % doc.getUid()
})
},
sort_keys=True,
)
def getBaseExpectedDict(doc):
return _decode_with_json({
"portal_type": doc.getPortalType(),
......@@ -267,7 +271,9 @@ class TestSlapOSCloudSlapOSCacheMixin(
'since': '%s' % since,
'state': "",
"text": "#error TEST123 %s" % doc.getUid()
})
},
sort_keys=True,
)
def getBaseExpectedDict(doc):
return _decode_with_json({
"portal_type": doc.getPortalType(),
......@@ -338,7 +344,9 @@ class TestSlapOSCloudSlapOSCacheMixin(
'since': '%s' % since,
'state': "",
"text": "#building TEST123 %s" % doc.getUid()
})
},
sort_keys=True,
)
def getBaseExpectedDict(doc):
return _decode_with_json({
"portal_type": doc.getPortalType(),
......
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