2015-11-27 09:50:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
LEVEL=$1
|
|
|
|
|
2016-06-18 15:20:59 +00:00
|
|
|
set -ex
|
|
|
|
|
2015-11-27 09:50:37 +00:00
|
|
|
if [ "$LEVEL" == '1' ]; then
|
|
|
|
echo "slicing level 1"
|
|
|
|
|
|
|
|
# no ticket action
|
2016-06-18 15:20:59 +00:00
|
|
|
rm test/browser/aaa_getting_started_test.rb
|
|
|
|
cp contrib/auto_wizard_test.json auto_wizard.json
|
|
|
|
cp test/integration/aaa_auto_wizard_base_setup_test.rb test/browser/aaa_auto_wizard_base_setup_test.rb
|
2016-06-18 17:57:04 +00:00
|
|
|
rm test/browser/abb_one_group_test.rb
|
2018-05-10 12:05:34 +00:00
|
|
|
rm test/browser/admin_drag_drop_to_new_group_test.rb
|
2016-03-13 23:25:05 +00:00
|
|
|
rm test/browser/admin_overview_test.rb
|
2016-09-08 06:45:57 +00:00
|
|
|
rm test/browser/admin_role_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
# test/browser/agent_navigation_and_title_test.rb
|
2018-03-28 05:33:41 +00:00
|
|
|
# test/browser/agent_organization_profile_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_attachment_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_available_types_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
|
2018-05-08 07:18:23 +00:00
|
|
|
rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_default_type_test.rb
|
2017-11-24 15:54:56 +00:00
|
|
|
rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
|
2018-04-23 13:12:19 +00:00
|
|
|
rm test/browser/agent_ticket_create_template_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_email_reply_keep_body_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
|
2018-06-20 22:33:44 +00:00
|
|
|
rm test/browser/agent_ticket_overview_group_by_organization_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_ticket_overview_level0_test.rb
|
|
|
|
rm test/browser/agent_ticket_overview_level1_test.rb
|
2018-12-19 05:40:32 +00:00
|
|
|
rm test/browser/agent_ticket_overview_pending_til_test.rb
|
2017-02-05 18:24:48 +00:00
|
|
|
rm test/browser/agent_ticket_overview_tab_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_tag_test.rb
|
2018-10-30 21:51:20 +00:00
|
|
|
rm test/browser/agent_ticket_task_changed_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_text_module_test.rb
|
2017-02-05 23:15:28 +00:00
|
|
|
rm test/browser/agent_ticket_time_accounting_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_update_and_reload_test.rb
|
2018-07-04 14:56:16 +00:00
|
|
|
rm test/browser/agent_ticket_zoom_hide_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_user_manage_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
rm test/browser/agent_user_profile_test.rb
|
|
|
|
rm test/browser/customer_ticket_create_test.rb
|
2016-11-23 14:25:44 +00:00
|
|
|
# test/browser/manage_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
# test/browser/swich_to_user_test.rb
|
|
|
|
# test/browser/taskbar_session_test.rb
|
|
|
|
# test/browser/taskbar_task_test.rb
|
2018-03-28 05:33:41 +00:00
|
|
|
rm test/browser/user_access_permissions_test.rb
|
2017-09-24 21:51:55 +00:00
|
|
|
rm test/browser/user_switch_cache_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
|
|
|
|
elif [ "$LEVEL" == '2' ]; then
|
|
|
|
echo "slicing level 2"
|
|
|
|
|
2016-06-18 15:20:59 +00:00
|
|
|
# only ticket action 2/3
|
|
|
|
# test/browser/aaa_getting_started_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
# test/browser/abb_one_group_test.rb
|
2018-05-10 12:05:34 +00:00
|
|
|
rm test/browser/admin_drag_drop_to_new_group_test.rb
|
2016-03-13 23:25:05 +00:00
|
|
|
rm test/browser/admin_overview_test.rb
|
2016-09-08 06:45:57 +00:00
|
|
|
#rm test/browser/admin_role_test.rb
|
2016-05-01 09:25:53 +00:00
|
|
|
rm test/browser/agent_navigation_and_title_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
rm test/browser/agent_organization_profile_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_attachment_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_available_types_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
|
2018-05-08 07:18:23 +00:00
|
|
|
rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_default_type_test.rb
|
2017-11-24 15:54:56 +00:00
|
|
|
rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
|
2018-04-23 13:12:19 +00:00
|
|
|
rm test/browser/agent_ticket_create_template_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_email_reply_keep_body_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
|
|
|
|
# test/browser/agent_ticket_merge_test.rb
|
|
|
|
rm test/browser/agent_ticket_online_notification_test.rb
|
2018-06-20 22:33:44 +00:00
|
|
|
rm test/browser/agent_ticket_overview_group_by_organization_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_ticket_overview_level0_test.rb
|
|
|
|
rm test/browser/agent_ticket_overview_level1_test.rb
|
2018-12-19 05:40:32 +00:00
|
|
|
rm test/browser/agent_ticket_overview_pending_til_test.rb
|
2017-02-05 18:24:48 +00:00
|
|
|
rm test/browser/agent_ticket_overview_tab_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_tag_test.rb
|
2018-10-30 21:51:20 +00:00
|
|
|
rm test/browser/agent_ticket_task_changed_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
# test/browser/agent_ticket_text_module_test.rb
|
2017-02-05 23:15:28 +00:00
|
|
|
# test/browser/agent_ticket_time_accounting_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
# rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
# test/browser/agent_ticket_update_and_reload_test.rb
|
2018-07-04 14:56:16 +00:00
|
|
|
# test/browser/agent_ticket_zoom_hide_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_user_manage_test.rb
|
|
|
|
rm test/browser/agent_user_profile_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
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
|
2018-03-28 05:33:41 +00:00
|
|
|
# test/browser/user_access_permissions_test.rb
|
|
|
|
# test/browser/user_switch_cache_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
|
|
|
|
elif [ "$LEVEL" == '3' ]; then
|
|
|
|
echo "slicing level 3"
|
|
|
|
|
2016-05-21 10:02:38 +00:00
|
|
|
# only ticket action 2/3
|
2016-06-18 15:20:59 +00:00
|
|
|
# test/browser/aaa_getting_started_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
# test/browser/abb_one_group_test.rb
|
2018-05-10 12:05:34 +00:00
|
|
|
rm test/browser/admin_drag_drop_to_new_group_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
rm test/browser/admin_overview_test.rb
|
2016-09-08 06:45:57 +00:00
|
|
|
rm test/browser/admin_role_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
rm test/browser/agent_navigation_and_title_test.rb
|
|
|
|
rm test/browser/agent_organization_profile_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
# test/browser/agent_ticket_attachment_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
# rm test/browser/agent_ticket_create_available_types_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
# rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
|
2018-05-08 07:18:23 +00:00
|
|
|
#rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
# rm test/browser/agent_ticket_create_default_type_test.rb
|
2017-11-24 15:54:56 +00:00
|
|
|
# test/browser/agent_ticket_create_reset_customer_selection_test.rb
|
2018-04-23 13:12:19 +00:00
|
|
|
# test/browser/agent_ticket_create_template_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
# test/browser/agent_ticket_email_reply_keep_body_test.rb
|
|
|
|
# test/browser/agent_ticket_email_signature_test.rb
|
|
|
|
# test/browser/agent_ticket_link_test.rb
|
|
|
|
# test/browser/agent_ticket_macro_test.rb
|
|
|
|
rm test/browser/agent_ticket_merge_test.rb
|
|
|
|
rm test/browser/agent_ticket_online_notification_test.rb
|
2018-06-20 22:33:44 +00:00
|
|
|
rm test/browser/agent_ticket_overview_group_by_organization_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_ticket_overview_level0_test.rb
|
|
|
|
rm test/browser/agent_ticket_overview_level1_test.rb
|
2018-12-19 05:40:32 +00:00
|
|
|
rm test/browser/agent_ticket_overview_pending_til_test.rb
|
2017-02-05 18:24:48 +00:00
|
|
|
rm test/browser/agent_ticket_overview_tab_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
# test/browser/agent_ticket_tag_test.rb
|
2018-10-30 21:51:20 +00:00
|
|
|
# test/browser/agent_ticket_task_changed_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_text_module_test.rb
|
2017-02-05 23:15:28 +00:00
|
|
|
rm test/browser/agent_ticket_time_accounting_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_update_and_reload_test.rb
|
2018-07-04 14:56:16 +00:00
|
|
|
rm test/browser/agent_ticket_zoom_hide_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_user_manage_test.rb
|
|
|
|
rm test/browser/agent_user_profile_test.rb
|
|
|
|
rm test/browser/customer_ticket_create_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
rm test/browser/manage_test.rb
|
|
|
|
rm test/browser/taskbar_session_test.rb
|
|
|
|
rm test/browser/taskbar_task_test.rb
|
2018-03-28 05:33:41 +00:00
|
|
|
rm test/browser/user_access_permissions_test.rb
|
2017-09-24 21:51:55 +00:00
|
|
|
rm test/browser/user_switch_cache_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
|
|
|
|
elif [ "$LEVEL" == '4' ]; then
|
|
|
|
echo "slicing level 4"
|
|
|
|
|
2016-05-21 10:02:38 +00:00
|
|
|
# only ticket action 3/3
|
2016-06-18 15:20:59 +00:00
|
|
|
# test/browser/aaa_getting_started_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
# test/browser/abb_one_group_test.rb
|
2018-05-10 12:05:34 +00:00
|
|
|
rm test/browser/admin_drag_drop_to_new_group_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/admin_overview_test.rb
|
2016-09-08 06:45:57 +00:00
|
|
|
rm test/browser/admin_role_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_navigation_and_title_test.rb
|
|
|
|
rm test/browser/agent_organization_profile_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_attachment_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_available_types_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
|
2018-05-08 07:18:23 +00:00
|
|
|
rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_default_type_test.rb
|
2017-11-24 15:54:56 +00:00
|
|
|
rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
|
2018-04-23 13:12:19 +00:00
|
|
|
rm test/browser/agent_ticket_create_template_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_email_reply_keep_body_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
|
|
|
|
# test/browser/agent_ticket_online_notification_test.rb
|
2018-06-20 22:33:44 +00:00
|
|
|
# test/browser/agent_ticket_overview_group_by_organization_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
# test/browser/agent_ticket_overview_level0_test.rb
|
|
|
|
# test/browser/agent_ticket_overview_level1_test.rb
|
2018-12-19 05:40:32 +00:00
|
|
|
# test/browser/agent_ticket_overview_pending_til_test.rb
|
2017-02-05 18:24:48 +00:00
|
|
|
# test/browser/agent_ticket_overview_tab_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_tag_test.rb
|
2018-10-30 21:51:20 +00:00
|
|
|
rm test/browser/agent_ticket_task_changed_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_text_module_test.rb
|
2017-02-05 23:15:28 +00:00
|
|
|
rm test/browser/agent_ticket_time_accounting_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_update_and_reload_test.rb
|
2018-07-04 14:56:16 +00:00
|
|
|
rm test/browser/agent_ticket_zoom_hide_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_user_manage_test.rb
|
|
|
|
rm test/browser/agent_user_profile_test.rb
|
|
|
|
# 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
|
2018-03-28 05:33:41 +00:00
|
|
|
rm test/browser/user_access_permissions_test.rb
|
2017-09-24 21:51:55 +00:00
|
|
|
rm test/browser/user_switch_cache_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
|
|
|
|
elif [ "$LEVEL" == '5' ]; then
|
|
|
|
echo "slicing level 5"
|
|
|
|
|
2016-05-21 09:13:58 +00:00
|
|
|
# only profile action & admin
|
|
|
|
# test/browser/abb_one_group_test.rb
|
2018-05-10 12:05:34 +00:00
|
|
|
# rm test/browser/admin_drag_drop_to_new_group_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
# test/browser/admin_overview_test.rb
|
2016-09-08 06:45:57 +00:00
|
|
|
rm test/browser/admin_role_test.rb
|
2016-05-01 09:25:53 +00:00
|
|
|
rm test/browser/agent_navigation_and_title_test.rb
|
2018-03-28 05:33:41 +00:00
|
|
|
rm test/browser/agent_organization_profile_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_attachment_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_available_types_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_create_attachment_missing_after_reload_test.rb
|
2018-05-08 07:18:23 +00:00
|
|
|
rm test/browser/agent_ticket_create_cc_tokenizer_test.rb
|
2018-05-02 15:49:35 +00:00
|
|
|
rm test/browser/agent_ticket_create_default_type_test.rb
|
2017-11-24 15:54:56 +00:00
|
|
|
rm test/browser/agent_ticket_create_reset_customer_selection_test.rb
|
2018-04-23 13:12:19 +00:00
|
|
|
rm test/browser/agent_ticket_create_template_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_email_reply_keep_body_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
|
2018-06-20 22:33:44 +00:00
|
|
|
rm test/browser/agent_ticket_overview_group_by_organization_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
rm test/browser/agent_ticket_overview_level0_test.rb
|
|
|
|
rm test/browser/agent_ticket_overview_level1_test.rb
|
2018-12-19 05:40:32 +00:00
|
|
|
rm test/browser/agent_ticket_overview_pending_til_test.rb
|
2017-02-05 18:24:48 +00:00
|
|
|
rm test/browser/agent_ticket_overview_tab_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_tag_test.rb
|
2018-10-30 21:51:20 +00:00
|
|
|
rm test/browser/agent_ticket_task_changed_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_text_module_test.rb
|
2017-02-05 23:15:28 +00:00
|
|
|
rm test/browser/agent_ticket_time_accounting_test.rb
|
2018-05-03 14:09:33 +00:00
|
|
|
rm test/browser/agent_ticket_update_with_attachment_refresh_test.rb
|
2016-09-05 13:18:22 +00:00
|
|
|
rm test/browser/agent_ticket_update_and_reload_test.rb
|
2018-07-04 14:56:16 +00:00
|
|
|
rm test/browser/agent_ticket_zoom_hide_test.rb
|
2016-05-21 10:02:38 +00:00
|
|
|
# test/browser/agent_user_manage_test.rb
|
2016-05-21 09:13:58 +00:00
|
|
|
# test/browser/agent_user_profile_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
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
|
2018-03-28 05:33:41 +00:00
|
|
|
rm test/browser/user_access_permissions_test.rb
|
2017-09-24 21:51:55 +00:00
|
|
|
rm test/browser/user_switch_cache_test.rb
|
2015-11-27 09:50:37 +00:00
|
|
|
|
|
|
|
else
|
2022-02-16 09:42:04 +00:00
|
|
|
echo "ERROR: Invalid level $LEVEL - 1, 2, 3, 4 or 5 is available"
|
2015-11-27 09:50:37 +00:00
|
|
|
exit 1
|
|
|
|
fi
|