diff options
Diffstat (limited to 'master/custom/sample_data.py')
-rw-r--r-- | master/custom/sample_data.py | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/master/custom/sample_data.py b/master/custom/sample_data.py index 0e91871..cb13f18 100644 --- a/master/custom/sample_data.py +++ b/master/custom/sample_data.py @@ -6,9 +6,38 @@ # Immortal lh! # +sample_maintainer = { + 'username': 'test_user', + 'email': 'test_user_email@test.com', + 'password': 'password', + 'group': 'dev', +} + +sample_master_gpg_data = { + 'name': 'AutotuA Master (Sample)', + 'email': 'autotua_master@localhost', + 'expire': '1m', + 'length': '1024', # small length because it's a sample anyway +} + +sample_slave = { + 'name': 'Sample AutotuA slave', + 'gpg_fp': '', + 'owner': sample_maintainer, + 'users': (sample_maintainer['group'],), +} + +sample_slave_gpg_data = { + 'name': sample_slave['name'], + 'email': 'autotua_slave@localhost', + 'expire': '1m', + 'length': '1024', # small length because it's a sample anyway +} + sample_job = { 'name': 'Sample AutotuA job', - 'maintainer': ('test_user', 'test_user_email@test.com', 'password'), + 'maintainer': sample_maintainer, + 'slave': sample_slave['name'], 'provider': 'gentoo', # If stage is unspecified, defaults to stage3 #'stage': 'stage3', @@ -17,4 +46,3 @@ sample_job = { 'jobtagerev': '', 'atoms': 'bheekling/test-brasero', } - |