123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- #!/bin/bash
- LEVEL=$1
- set -ex
- if [ "$LEVEL" == '1' ]; then
- echo "slicing level 1"
- cp contrib/auto_wizard_test.json auto_wizard.json
-
- rm test/browser/abb_one_group_test.rb
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
- rm test/browser/admin_role_test.rb
-
-
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
- rm test/browser/agent_ticket_email_signature_test.rb
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
- rm test/browser/agent_ticket_tag_test.rb
- rm test/browser/agent_ticket_text_module_test.rb
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
- rm test/browser/customer_ticket_create_test.rb
-
-
-
-
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- elif [ "$LEVEL" == '2' ]; then
- echo "slicing level 2"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
- rm test/browser/admin_role_test.rb
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
- rm test/browser/agent_ticket_email_signature_test.rb
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
- rm test/browser/agent_ticket_tag_test.rb
- rm test/browser/agent_ticket_text_module_test.rb
-
-
-
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
- rm test/browser/customer_ticket_create_test.rb
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
-
-
- elif [ "$LEVEL" == '3' ]; then
- echo "slicing level 3"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
- rm test/browser/admin_role_test.rb
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
-
-
-
-
-
-
-
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
- rm test/browser/agent_ticket_tag_test.rb
- rm test/browser/agent_ticket_text_module_test.rb
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
- rm test/browser/customer_ticket_create_test.rb
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- elif [ "$LEVEL" == '4' ]; then
- echo "slicing level 4"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
- rm test/browser/admin_role_test.rb
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
- rm test/browser/agent_ticket_email_signature_test.rb
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
-
-
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
- rm test/browser/agent_ticket_tag_test.rb
- rm test/browser/agent_ticket_text_module_test.rb
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
- rm test/browser/customer_ticket_create_test.rb
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- elif [ "$LEVEL" == '5' ]; then
- echo "slicing level 5"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
-
-
- rm test/browser/admin_role_test.rb
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
- rm test/browser/agent_ticket_email_signature_test.rb
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
- rm test/browser/agent_ticket_tag_test.rb
- rm test/browser/agent_ticket_text_module_test.rb
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
-
-
- rm test/browser/customer_ticket_create_test.rb
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- elif [ "$LEVEL" == '6' ]; then
- echo "slicing level 6"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
-
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
-
- rm test/browser/agent_ticket_email_signature_test.rb
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
-
-
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
- rm test/browser/agent_ticket_tag_test.rb
-
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
- rm test/browser/customer_ticket_create_test.rb
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- elif [ "$LEVEL" == '7' ]; then
- echo "slicing level 7"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
- rm test/browser/admin_role_test.rb
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
-
- rm test/browser/agent_ticket_email_signature_test.rb
-
-
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
- rm test/browser/agent_ticket_overview_level1_test.rb
- rm test/browser/agent_ticket_overview_pending_til_test.rb
- rm test/browser/agent_ticket_overview_tab_test.rb
-
- rm test/browser/agent_ticket_text_module_test.rb
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
- rm test/browser/customer_ticket_create_test.rb
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- elif [ "$LEVEL" == '8' ]; then
- echo "slicing level 8"
- rm test/browser/aaa_auto_wizard_base_setup_test.rb
-
- rm test/browser/admin_drag_drop_to_new_group_test.rb
- rm test/browser/admin_overview_test.rb
- rm test/browser/admin_role_test.rb
- rm test/browser/agent_navigation_and_title_test.rb
- rm test/browser/agent_organization_profile_test.rb
- rm test/browser/agent_ticket_attachment_test.rb
- rm test/browser/agent_ticket_create_available_types_test.rb
- rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
- rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
- rm test/browser/agent_ticket_create_default_type_test.rb
- rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
-
- rm test/browser/agent_ticket_email_signature_test.rb
- rm test/browser/agent_ticket_link_test.rb
- rm test/browser/agent_ticket_macro_test.rb
- rm test/browser/agent_ticket_merge_test.rb
- rm test/browser/agent_ticket_online_notification_test.rb
- rm test/browser/agent_ticket_overview_group_by_organization_test.rb
- rm test/browser/agent_ticket_overview_level0_test.rb
-
-
-
- rm test/browser/agent_ticket_tag_test.rb
- rm test/browser/agent_ticket_text_module_test.rb
- rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
- rm test/browser/agent_ticket_update_and_reload_test.rb
- rm test/browser/agent_ticket_zoom_hide_test.rb
- rm test/browser/agent_user_manage_test.rb
- rm test/browser/agent_user_profile_test.rb
-
- rm test/browser/manage_test.rb
- rm test/browser/taskbar_session_test.rb
- rm test/browser/taskbar_task_test.rb
- rm test/browser/user_access_permissions_test.rb
- rm test/browser/user_switch_cache_test.rb
- else
- echo "ERROR: Invalid level $LEVEL - 1..8 is available"
- exit 1
- fi
|