the 'sfa' macro step involves reconfiguring/restarting sfa
[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 sequences['sfa_restart'] = [
10     'sfa_plcclean',
11     'sfa_dbclean',
12     'sfa_stop',
13     'sfa_configure',
14     'sfa_start',
15     'sfa_import',
16     'sfi_clean',
17     'sfi_configure',
18     ]
19
20 "re-run a complete sfa cycle from a nightly test"
21 sequences['sfa'] = [ 
22     'sfa_restart',
23     'sfa_add_user', 
24     'sfa_add_slice',
25     'sfa_discover', 
26     'sfa_create_slice', 
27     'sfa_check_slice_plc', 
28     'sfa_update_user',
29     'sfa_update_slice', 
30     'sfa_view', 
31     'sfa_utest', 
32     'sfa_delete_slice', 
33     'sfa_delete_user',
34     ]
35
36 sequences['sfa_create'] = [
37     'sfa_plcclean', 
38     'sfa_dbclean',
39     'sfa_import', 
40     'sfi_configure', 
41     'sfa_add_user', 
42     'sfa_add_slice',
43 ]
44
45 # run the whole SFA stuff but from scratch, new vs all reinstalled and all
46 sequences['sfa_scratch'] = [
47     'show',
48     'vs_delete','timestamp_vs','vs_create', 
49     'plc_install', 'plc_configure', 'plc_start', 
50     'keys_fetch', 'keys_store', 'keys_clear_known_hosts', 
51     'initscripts', 'sites', 'nodes', 'slices', 'nodegroups', 'leases', 
52     'nodestate_reinstall', 'qemu_local_init','bootcd', 'qemu_local_config', 
53     'qemu_export', 'qemu_kill_mine', 'qemu_start', 'timestamp_qemu', 
54     'sfa_install_all', 'sfa_configure', 'cross_sfa_configure', 'sfa_start', 'sfa_import', 
55     'sfi_configure', 'sfa_add_user', 'sfa_add_slice', 'sfa_discover', 
56     'sfa_create_slice', 'sfa_check_slice_plc', 
57     'sfa_update_user', 'sfa_update_slice', 'sfa_view', 'sfa_utest',
58 ]
59
60 # something that can given to the nightly to prepare a standalone sfa setup
61 # after what you'll want to tweak the config to point to a myplc some place else
62 sequences['sfa_standalone'] = [
63     'show',
64     'vs_delete',
65     'timestamp_vs',
66     'vs_create',
67     'sfa_install_core',
68     'sfa_install_client',
69     'sfa_configure',
70     'cross_sfa_configure',
71     'sfa_start',
72     'sfi_configure',
73 ]
74