diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-02 12:16:48 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-02 12:16:48 (GMT) |
commit | 1eff810db0c62174e8d445f15e4b1604665ac18d (patch) | |
tree | 53955ffeb020e12e0c47d347ef8d3f2028a08de7 /tests/units/client/offline_routes.py | |
parent | bff48d640dbd44d614245f016d8fed29d9665fbc (diff) |
Not only original authors can upload new implementations
Diffstat (limited to 'tests/units/client/offline_routes.py')
-rwxr-xr-x | tests/units/client/offline_routes.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/units/client/offline_routes.py b/tests/units/client/offline_routes.py index 673f6b2..ac7af1b 100755 --- a/tests/units/client/offline_routes.py +++ b/tests/units/client/offline_routes.py @@ -104,6 +104,11 @@ class OfflineRoutes(tests.Test): 'stability': 'stable', 'guid': impl1, 'license': ['GPLv3+'], + 'layer': ['local'], + 'author': {}, + 'ctime': self.home_volume['implementation'].get(impl1).ctime, + 'notes': {'en-us': ''}, + 'tags': [], 'data': {'spec': {'*-*': {}}}, }, { @@ -111,6 +116,11 @@ class OfflineRoutes(tests.Test): 'stability': 'stable', 'guid': impl2, 'license': ['GPLv3+'], + 'layer': ['local'], + 'author': {}, + 'ctime': self.home_volume['implementation'].get(impl2).ctime, + 'notes': {'en-us': ''}, + 'tags': [], 'data': { 'spec': {'*-*': { 'requires': { @@ -293,6 +303,11 @@ class OfflineRoutes(tests.Test): 'stability': 'stable', 'version': '1', 'path': tests.tmpdir + '/client/implementation/%s/%s/data.blob' % (impl[:2], impl), + 'layer': ['origin'], + 'author': {tests.UID: {'name': 'test', 'order': 0, 'role': 3}}, + 'ctime': self.node_volume['implementation'].get(impl).ctime, + 'notes': {'en-us': ''}, + 'tags': [], 'data': { 'unpack_size': len(activity_info), 'blob_size': len(blob), @@ -354,6 +369,7 @@ Can't find all required implementations: 'license': 'GPLv3+', 'version': '1', 'stability': 'stable', + 'layer': ['origin'], }) self.home_volume['implementation'].update(impl, {'data': { 'spec': { @@ -394,6 +410,7 @@ Can't find all required implementations: 'license': 'GPLv3+', 'version': '1', 'stability': 'stable', + 'layer': ['origin'], }) self.home_volume['implementation'].update(impl, {'data': { 'spec': { @@ -431,6 +448,11 @@ Can't find all required implementations: 'license': ['GPLv3+'], 'stability': 'stable', 'version': '1', + 'layer': ['origin', 'local'], + 'author': {}, + 'ctime': self.home_volume['implementation'].get(impl).ctime, + 'notes': {'en-us': ''}, + 'tags': [], 'data': { 'spec': {'*-*': {'commands': {'activity': {'exec': 'true'}}, 'requires': {'dep': {}}}}, }, |