diff options
Diffstat (limited to 'tests/units/model/context.py')
-rwxr-xr-x | tests/units/model/context.py | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/units/model/context.py b/tests/units/model/context.py index 8fd5b56..0990f15 100755 --- a/tests/units/model/context.py +++ b/tests/units/model/context.py @@ -79,10 +79,9 @@ class ContextTest(tests.Test): 'announce': next(volume['post'].find(query='title:1')[0]).guid, 'version': [[1], 0], 'requires': {}, - 'commands': {'activity': {'exec': 'true'}}, - 'spec': {'*-*': {'bundle': str(hash(bundle1))}}, + 'command': 'true', + 'bundles': {'*-*': {'blob': str(hash(bundle1)), 'unpack_size': len(activity_info1)}}, 'stability': 'stable', - 'unpack_size': len(activity_info1), }, }, }, conn.get(['context', context, 'releases'])) @@ -109,10 +108,9 @@ class ContextTest(tests.Test): 'announce': next(volume['post'].find(query='title:1')[0]).guid, 'version': [[1], 0], 'requires': {}, - 'commands': {'activity': {'exec': 'true'}}, - 'spec': {'*-*': {'bundle': str(hash(bundle1))}}, + 'command': 'true', + 'bundles': {'*-*': {'blob': str(hash(bundle1)), 'unpack_size': len(activity_info1)}}, 'stability': 'stable', - 'unpack_size': len(activity_info1), }, }, release2: { @@ -123,10 +121,9 @@ class ContextTest(tests.Test): 'announce': next(volume['post'].find(query='title:2')[0]).guid, 'version': [[2], 0], 'requires': {}, - 'commands': {'activity': {'exec': 'true'}}, - 'spec': {'*-*': {'bundle': str(hash(bundle2))}}, + 'command': 'true', + 'bundles': {'*-*': {'blob': str(hash(bundle2)), 'unpack_size': len(activity_info2)}}, 'stability': 'stable', - 'unpack_size': len(activity_info2), }, }, }, conn.get(['context', context, 'releases'])) @@ -147,10 +144,9 @@ class ContextTest(tests.Test): 'announce': next(volume['post'].find(query='title:2')[0]).guid, 'version': [[2], 0], 'requires': {}, - 'commands': {'activity': {'exec': 'true'}}, - 'spec': {'*-*': {'bundle': str(hash(bundle2))}}, + 'command': 'true', + 'bundles': {'*-*': {'blob': str(hash(bundle2)), 'unpack_size': len(activity_info2)}}, 'stability': 'stable', - 'unpack_size': len(activity_info2), }, }, }, conn.get(['context', context, 'releases'])) |