X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Fmacros.py;h=3fc7dc83ed71bdfbf2f356381bc2a365ab3498c8;hb=b1c3cbb335560ffedb874235a3762061ce835ee1;hp=9f6cebd8ac939160c9c3b7a51ae95a6a7899d407;hpb=4e90ea2fbee46c85d78aad4bdf2e18c1b315f300;p=tests.git diff --git a/system/macros.py b/system/macros.py index 9f6cebd..3fc7dc8 100644 --- a/system/macros.py +++ b/system/macros.py @@ -7,9 +7,10 @@ sequences={} sequences['free_all'] = [ 'vs_stop', 'qemu_kill_mine', ] sequences['sfa_restart'] = [ + 'sfa_stop', 'sfa_plcclean', 'sfa_dbclean', - 'sfa_stop', + 'sfa_fsclean', 'sfa_configure', 'sfa_start', 'sfa_import', @@ -24,12 +25,13 @@ sequences['sfa'] = [ 'sfa_add_pi', 'sfa_add_user', 'sfa_add_slice', + 'sfa_renew_slice', 'sfa_discover', 'sfa_create_slice', 'sfa_check_slice_plc', 'sfa_update_user', 'sfa_update_slice', - 'sfa_view', + 'sfi_view_all', 'sfa_utest', 'sfa_delete_slice', 'sfa_delete_user', @@ -37,13 +39,26 @@ sequences['sfa'] = [ sequences['sfa_create'] = [ 'sfa_plcclean', + # nuke sometimes requires the service to be stopped b/c of db locks apparently + 'sfa_stop', 'sfa_dbclean', + 'sfa_start', 'sfa_import', + 'sfi_clean', 'sfi_configure', + 'sfa_add_site', + 'sfa_add_pi', 'sfa_add_user', 'sfa_add_slice', ] +sequences['sfa_provision'] = [ + 'sfa-discover', + 'sfa-create_slice', + 'sfa_check_slice_plc', + 'sfi_view_all', +] + # run the whole SFA stuff but from scratch, new vs all reinstalled and all sequences['sfa_scratch'] = [ 'show', @@ -56,21 +71,40 @@ sequences['sfa_scratch'] = [ 'sfa_install_all', 'sfa_configure', 'cross_sfa_configure', 'sfa_start', 'sfa_import', 'sfi_configure', 'sfa_add_user', 'sfa_add_slice', 'sfa_discover', 'sfa_create_slice', 'sfa_check_slice_plc', - 'sfa_update_user', 'sfa_update_slice', 'sfa_view', 'sfa_utest', + 'sfa_update_user', 'sfa_update_slice', 'sfi_view_all', 'sfa_utest', ] -# something that can given to the nightly to prepare a standalone sfa setup -# after what you'll want to tweak the config to point to a myplc some place else +sequences['sfi_view_all'] = [ + 'sfi_list', + 'sfi_show', +] + +# macro to exercice the registry only +# this requires the sfavoid config +# so that flavour=void and thus sfa-plc is not required +# xxx todo +# this initially was just a convenience to setup a reduced depl. +# clearly there is a lot more to check here in terms of consistency sequences['sfa_standalone'] = [ 'show', 'vs_delete', 'timestamp_vs', 'vs_create', - 'sfa_install_core', 'sfa_install_client', + 'sfa_install_core', 'sfa_configure', 'cross_sfa_configure', 'sfa_start', + 'sfa_import', 'sfi_configure', + 'sfa_add_site', + 'sfa_add_pi', + 'sfa_add_user', + 'sfa_add_slice', + 'sfi_list', + 'sfi_show', + 'sfa_delete_slice', + 'sfa_delete_user', + 'sfi_list', + 'sfi_show', ] -