diff --git a/foris_controller_modules/schnapps/schema/schnapps.json b/foris_controller_modules/schnapps/schema/schnapps.json index 202e074f4886015183123f2f984960cd30825fb9..77eeaf45247013a5f76d486d94855db951d149bf 100644 --- a/foris_controller_modules/schnapps/schema/schnapps.json +++ b/foris_controller_modules/schnapps/schema/schnapps.json @@ -1,7 +1,7 @@ { "definitions": { "number": {"type": "integer", "minimum": 1}, - "type": {"enum": ["pre", "post", "type", "single"]}, + "type": {"enum": ["pre", "post", "time", "single", "rollback"]}, "snapshot": { "type": "object", "properties": { diff --git a/tests/test_schnapps.py b/tests/test_schnapps.py index f155c368643c890c2af0652e722b48dda193ca9a..703bd2f798575f84e10c30240e218445a8bacbb3 100644 --- a/tests/test_schnapps.py +++ b/tests/test_schnapps.py @@ -84,18 +84,39 @@ def init_snapshots(): "snapshots": [ { "number": 1, - "created": "2019-11-27 14:15:27 +0000", - "type": "single", - "size": "74.16MiB", + "created": "2019-11-21 14:15:27 +0000", + "type": "pre", + "size": "61.16MiB", "description": "ARGGGHHH", }, { "number": 2, - "created": "2019-11-29 17:18:34 +0000", - "type": "single", - "size": "63.28MiB", + "created": "2019-11-22 17:18:34 +0000", + "type": "post", + "size": "62.28MiB", "description": "ARRGGHH 2", }, + { + "number": 3, + "created": "2019-11-23 17:18:34 +0000", + "type": "time", + "size": "63.12MiB", + "description": "ARRGGHH 3", + }, + { + "number": 4, + "created": "2019-11-24 17:18:34 +0000", + "type": "single", + "size": "64.12MiB", + "description": "ARRGGHH 4", + }, + { + "number": 5, + "created": "2019-11-25 17:18:34 +0000", + "type": "rollback", + "size": "65.12MiB", + "description": "ARRGGHH 5", + }, ] }, f,