simplified macros - single file
[tests.git] / system / macros.py
1 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
2 # Copyright (C) 2010 INRIA 
3
4 sequences={}
5
6 "release local resources (stop vs, kill qemus, clean trackers)"
7 sequences['free_all'] = [ 'vs_stop', 'qemu_kill_mine', ]
8
9 "re-run a complete sfa cycle from a nightly test"
10 sequences['sfa'] = [ 
11     'sfa_plcclean', 
12     'sfa_dbclean',
13     'sfa_import', 
14     'sfi_configure', 
15     'sfa_add_user', 
16     'sfa_add_slice',
17     'sfa_discover', 
18     'sfa_create_slice', 
19     'sfa_check_slice_plc', 
20     'sfa_update_user',
21     'sfa_update_slice', 
22     'sfa_view', 
23     'sfa_utest', 
24     'sfa_delete_slice', 
25     'sfa_delete_user',
26     ]
27
28 sequences['sfa_restart'] = [
29     'sfa_plcclean',
30     'sfa_dbclean',
31     'sfa_stop',
32     'sfi_clean',
33     'sfa_configure',
34     'sfa_import',
35     'sfa_start',
36     'sfi_configure',
37     ]
38
39 # run the whole SFA stuff but from scratch, new vs all reinstalled and all
40 sequences['sfa_scratch'] = [
41     'show',
42     'vs_delete','timestamp_vs','vs_create', 
43     'plc_install', 'plc_configure', 'plc_start', 
44     'keys_fetch', 'keys_store', 'keys_clear_known_hosts', 
45     'initscripts', 'sites', 'nodes', 'slices', 'nodegroups', 'leases', 
46     'nodestate_reinstall', 'qemu_local_init','bootcd', 'qemu_local_config', 
47     'qemu_export', 'qemu_kill_mine', 'qemu_start', 'timestamp_qemu', 
48     'sfa_install_all', 'sfa_configure', 'cross_sfa_configure', 'sfa_start', 'sfa_import', 
49     'sfi_configure', 'sfa_add_user', 'sfa_add_slice', 'sfa_discover', 
50     'sfa_create_slice', 'sfa_check_slice_plc', 
51     'sfa_update_user', 'sfa_update_slice', 'sfa_view', 'sfa_utest',
52 ]
53
54 # something that can given to the nightly to prepare a standalone sfa setup
55 # after what you'll want to tweak the config to point to a myplc some place else
56 sequences['sfa_standalone'] = [
57     'show',
58     'vs_delete',
59     'timestamp_vs',
60     'vs_create',
61     'sfa_install_core',
62     'sfa_install_client',
63     'sfa_configure',
64     'cross_sfa_configure',
65     'sfa_start',
66     'sfi_configure',
67 ]
68