Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ba216177
Commit
ba216177
authored
Jun 11, 2021
by
Oghenerukevwe Kofi
Committed by
Dmitry Gruzd
Jun 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 272995 [RUN AS-IF-FOSS]
parent
3ca021ae
Changes
192
Hide whitespace changes
Inline
Side-by-side
Showing
192 changed files
with
196 additions
and
199 deletions
+196
-199
spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb
...ions/20191125114345_add_admin_mode_protected_path_spec.rb
+1
-1
spec/migrations/20191204114127_delete_legacy_triggers_spec.rb
.../migrations/20191204114127_delete_legacy_triggers_spec.rb
+1
-1
spec/migrations/20200107172020_add_timestamp_softwarelicensespolicy_spec.rb
...200107172020_add_timestamp_softwarelicensespolicy_spec.rb
+1
-1
spec/migrations/20200122123016_backfill_project_settings_spec.rb
...grations/20200122123016_backfill_project_settings_spec.rb
+1
-1
spec/migrations/20200123155929_remove_invalid_jira_data_spec.rb
...igrations/20200123155929_remove_invalid_jira_data_spec.rb
+1
-1
spec/migrations/20200127090233_remove_invalid_issue_tracker_data_spec.rb
.../20200127090233_remove_invalid_issue_tracker_data_spec.rb
+1
-1
spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb
...0130145430_reschedule_migrate_issue_trackers_data_spec.rb
+1
-1
spec/migrations/20200313203550_remove_orphaned_chat_names_spec.rb
...rations/20200313203550_remove_orphaned_chat_names_spec.rb
+1
-1
spec/migrations/20200406102120_backfill_deployment_clusters_from_deployments_spec.rb
...120_backfill_deployment_clusters_from_deployments_spec.rb
+1
-1
spec/migrations/20200511145545_change_variable_interpolation_format_in_common_metrics_spec.rb
...e_variable_interpolation_format_in_common_metrics_spec.rb
+1
-1
spec/migrations/20200526115436_dedup_mr_metrics_spec.rb
spec/migrations/20200526115436_dedup_mr_metrics_spec.rb
+1
-1
spec/migrations/20200526231421_update_index_approval_rule_name_for_code_owners_rule_type_spec.rb
...ndex_approval_rule_name_for_code_owners_rule_type_spec.rb
+1
-1
spec/migrations/20200703125016_backfill_namespace_settings_spec.rb
...ations/20200703125016_backfill_namespace_settings_spec.rb
+1
-1
spec/migrations/20200706035141_adjust_unique_index_alert_management_alerts_spec.rb
...35141_adjust_unique_index_alert_management_alerts_spec.rb
+1
-1
spec/migrations/20200728080250_replace_unique_index_on_cycle_analytics_stages_spec.rb
...50_replace_unique_index_on_cycle_analytics_stages_spec.rb
+1
-1
spec/migrations/20200728182311_add_o_auth_paths_to_protected_paths_spec.rb
...0200728182311_add_o_auth_paths_to_protected_paths_spec.rb
+1
-1
spec/migrations/20200811130433_create_missing_vulnerabilities_issue_links_spec.rb
...130433_create_missing_vulnerabilities_issue_links_spec.rb
+1
-1
spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb
...200915044225_schedule_migration_to_hashed_storage_spec.rb
+1
-1
spec/migrations/20200929052138_create_initial_versions_for_pre_versioning_terraform_states_spec.rb
...tial_versions_for_pre_versioning_terraform_states_spec.rb
+1
-1
spec/migrations/20201014205300_drop_backfill_jira_tracker_deployment_type_jobs_spec.rb
...0_drop_backfill_jira_tracker_deployment_type_jobs_spec.rb
+1
-1
spec/migrations/20201027002551_migrate_services_to_http_integrations_spec.rb
...01027002551_migrate_services_to_http_integrations_spec.rb
+1
-1
spec/migrations/20201028182809_backfill_jira_tracker_deployment_type2_spec.rb
...1028182809_backfill_jira_tracker_deployment_type2_spec.rb
+1
-1
spec/migrations/20201110161542_cleanup_transfered_projects_shared_runners_spec.rb
...161542_cleanup_transfered_projects_shared_runners_spec.rb
+1
-1
spec/migrations/20201112130710_schedule_remove_duplicate_vulnerabilities_findings_spec.rb
...chedule_remove_duplicate_vulnerabilities_findings_spec.rb
+1
-1
spec/migrations/20201112130715_schedule_recalculate_uuid_on_vulnerabilities_occurrences_spec.rb
...e_recalculate_uuid_on_vulnerabilities_occurrences_spec.rb
+1
-1
spec/migrations/20210112143418_remove_duplicate_services2_spec.rb
...rations/20210112143418_remove_duplicate_services2_spec.rb
+1
-1
spec/migrations/20210119122354_alter_vsa_issue_first_mentioned_in_commit_value_spec.rb
...4_alter_vsa_issue_first_mentioned_in_commit_value_spec.rb
+1
-1
spec/migrations/20210205174154_remove_bad_dependency_proxy_manifests_spec.rb
...10205174154_remove_bad_dependency_proxy_manifests_spec.rb
+1
-1
spec/migrations/20210210093901_backfill_updated_at_after_repository_storage_move_spec.rb
...backfill_updated_at_after_repository_storage_move_spec.rb
+1
-1
spec/migrations/20210226141517_dedup_issue_metrics_spec.rb
spec/migrations/20210226141517_dedup_issue_metrics_spec.rb
+1
-1
spec/migrations/20210406144743_backfill_total_tuple_count_for_batched_migrations_spec.rb
...backfill_total_tuple_count_for_batched_migrations_spec.rb
+1
-1
spec/migrations/20210413132500_reschedule_artifact_expiry_backfill_again_spec.rb
...3132500_reschedule_artifact_expiry_backfill_again_spec.rb
+1
-1
spec/migrations/20210421163509_schedule_update_jira_tracker_data_deployment_type_based_on_url_spec.rb
...te_jira_tracker_data_deployment_type_based_on_url_spec.rb
+1
-1
spec/migrations/20210423160427_schedule_drop_invalid_vulnerabilities_spec.rb
...10423160427_schedule_drop_invalid_vulnerabilities_spec.rb
+1
-1
spec/migrations/20210430134202_copy_adoption_snapshot_namespace_spec.rb
...s/20210430134202_copy_adoption_snapshot_namespace_spec.rb
+1
-1
spec/migrations/20210430135954_copy_adoption_segments_namespace_spec.rb
...s/20210430135954_copy_adoption_segments_namespace_spec.rb
+1
-1
spec/migrations/20210503105845_add_project_value_stream_id_to_project_stages_spec.rb
...845_add_project_value_stream_id_to_project_stages_spec.rb
+1
-1
spec/migrations/20210511142748_schedule_drop_invalid_vulnerabilities2_spec.rb
...0511142748_schedule_drop_invalid_vulnerabilities2_spec.rb
+1
-1
spec/migrations/20210601073400_fix_total_stage_in_vsa_spec.rb
.../migrations/20210601073400_fix_total_stage_in_vsa_spec.rb
+1
-1
spec/migrations/add_default_and_free_plans_spec.rb
spec/migrations/add_default_and_free_plans_spec.rb
+1
-1
spec/migrations/add_default_value_stream_to_groups_with_group_stages_spec.rb
..._default_value_stream_to_groups_with_group_stages_spec.rb
+1
-1
spec/migrations/add_deploy_token_type_to_deploy_tokens_spec.rb
...migrations/add_deploy_token_type_to_deploy_tokens_spec.rb
+1
-1
spec/migrations/add_incident_settings_to_all_existing_projects_spec.rb
...ns/add_incident_settings_to_all_existing_projects_spec.rb
+1
-1
spec/migrations/add_new_post_eoa_plans_spec.rb
spec/migrations/add_new_post_eoa_plans_spec.rb
+1
-1
spec/migrations/add_partial_index_to_ci_builds_table_on_user_id_name_spec.rb
..._partial_index_to_ci_builds_table_on_user_id_name_spec.rb
+1
-1
spec/migrations/add_repository_storages_weighted_to_application_settings_spec.rb
...ository_storages_weighted_to_application_settings_spec.rb
+1
-1
spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb
...temporary_partial_index_on_project_id_to_services_spec.rb
+1
-1
spec/migrations/add_unique_constraint_to_approvals_user_id_and_merge_request_id_spec.rb
...straint_to_approvals_user_id_and_merge_request_id_spec.rb
+1
-1
spec/migrations/backfill_and_add_not_null_constraint_to_released_at_column_on_releases_table_spec.rb
...onstraint_to_released_at_column_on_releases_table_spec.rb
+1
-1
spec/migrations/backfill_clusters_integration_prometheus_enabled_spec.rb
.../backfill_clusters_integration_prometheus_enabled_spec.rb
+1
-1
spec/migrations/backfill_escalation_policies_for_oncall_schedules_spec.rb
...backfill_escalation_policies_for_oncall_schedules_spec.rb
+1
-1
spec/migrations/backfill_imported_snippet_repositories_spec.rb
...migrations/backfill_imported_snippet_repositories_spec.rb
+1
-1
spec/migrations/backfill_operations_feature_flags_active_spec.rb
...grations/backfill_operations_feature_flags_active_spec.rb
+1
-1
spec/migrations/backfill_operations_feature_flags_iid_spec.rb
.../migrations/backfill_operations_feature_flags_iid_spec.rb
+1
-1
spec/migrations/backfill_releases_table_updated_at_and_add_not_null_constraints_to_timestamps_spec.rb
...ted_at_and_add_not_null_constraints_to_timestamps_spec.rb
+1
-1
spec/migrations/backfill_snippet_repositories_spec.rb
spec/migrations/backfill_snippet_repositories_spec.rb
+1
-1
spec/migrations/backfill_status_page_published_incidents_spec.rb
...grations/backfill_status_page_published_incidents_spec.rb
+1
-1
spec/migrations/backport_enterprise_schema_spec.rb
spec/migrations/backport_enterprise_schema_spec.rb
+1
-1
spec/migrations/cap_designs_filename_length_to_new_limit_spec.rb
...grations/cap_designs_filename_length_to_new_limit_spec.rb
+1
-1
spec/migrations/change_outbound_local_requests_whitelist_default_spec.rb
.../change_outbound_local_requests_whitelist_default_spec.rb
+1
-1
spec/migrations/change_packages_size_defaults_in_project_statistics_spec.rb
...ange_packages_size_defaults_in_project_statistics_spec.rb
+1
-1
spec/migrations/change_web_hook_events_default_spec.rb
spec/migrations/change_web_hook_events_default_spec.rb
+1
-1
spec/migrations/clean_grafana_url_spec.rb
spec/migrations/clean_grafana_url_spec.rb
+1
-1
spec/migrations/clean_up_noteable_id_for_notes_on_commits_spec.rb
...rations/clean_up_noteable_id_for_notes_on_commits_spec.rb
+1
-1
spec/migrations/clean_up_pending_builds_table_spec.rb
spec/migrations/clean_up_pending_builds_table_spec.rb
+1
-1
spec/migrations/cleanup_empty_commit_user_mentions_spec.rb
spec/migrations/cleanup_empty_commit_user_mentions_spec.rb
+1
-1
spec/migrations/cleanup_group_import_states_with_null_user_id_spec.rb
...ons/cleanup_group_import_states_with_null_user_id_spec.rb
+2
-2
spec/migrations/cleanup_legacy_artifact_migration_spec.rb
spec/migrations/cleanup_legacy_artifact_migration_spec.rb
+1
-1
spec/migrations/cleanup_move_container_registry_enabled_to_project_features_spec.rb
...ve_container_registry_enabled_to_project_features_spec.rb
+1
-1
spec/migrations/cleanup_optimistic_locking_nulls_pt2_fixed_spec.rb
...ations/cleanup_optimistic_locking_nulls_pt2_fixed_spec.rb
+1
-1
spec/migrations/cleanup_optimistic_locking_nulls_spec.rb
spec/migrations/cleanup_optimistic_locking_nulls_spec.rb
+1
-1
spec/migrations/cleanup_projects_with_missing_namespace_spec.rb
...igrations/cleanup_projects_with_missing_namespace_spec.rb
+2
-2
spec/migrations/complete_namespace_settings_migration_spec.rb
.../migrations/complete_namespace_settings_migration_spec.rb
+1
-1
spec/migrations/confirm_project_bot_users_spec.rb
spec/migrations/confirm_project_bot_users_spec.rb
+1
-1
spec/migrations/create_environment_for_self_monitoring_project_spec.rb
...ns/create_environment_for_self_monitoring_project_spec.rb
+1
-1
spec/migrations/deduplicate_epic_iids_spec.rb
spec/migrations/deduplicate_epic_iids_spec.rb
+1
-1
spec/migrations/delete_internal_ids_where_feature_flags_usage_spec.rb
...ons/delete_internal_ids_where_feature_flags_usage_spec.rb
+1
-1
spec/migrations/delete_template_project_services_spec.rb
spec/migrations/delete_template_project_services_spec.rb
+1
-1
spec/migrations/delete_template_services_duplicated_by_type_spec.rb
...tions/delete_template_services_duplicated_by_type_spec.rb
+1
-1
spec/migrations/delete_user_callout_alerts_moved_spec.rb
spec/migrations/delete_user_callout_alerts_moved_spec.rb
+1
-1
spec/migrations/drop_activate_prometheus_services_background_jobs_spec.rb
...drop_activate_prometheus_services_background_jobs_spec.rb
+1
-1
spec/migrations/drop_alerts_service_data_spec.rb
spec/migrations/drop_alerts_service_data_spec.rb
+1
-1
spec/migrations/drop_background_migration_jobs_spec.rb
spec/migrations/drop_background_migration_jobs_spec.rb
+1
-1
spec/migrations/drop_project_ci_cd_settings_merge_trains_enabled_spec.rb
.../drop_project_ci_cd_settings_merge_trains_enabled_spec.rb
+1
-1
spec/migrations/encrypt_feature_flags_clients_tokens_spec.rb
spec/migrations/encrypt_feature_flags_clients_tokens_spec.rb
+1
-1
spec/migrations/encrypt_plaintext_attributes_on_application_settings_spec.rb
...rypt_plaintext_attributes_on_application_settings_spec.rb
+1
-1
spec/migrations/enqueue_reset_merge_status_second_run_spec.rb
.../migrations/enqueue_reset_merge_status_second_run_spec.rb
+1
-1
spec/migrations/enqueue_reset_merge_status_spec.rb
spec/migrations/enqueue_reset_merge_status_spec.rb
+1
-1
spec/migrations/ensure_filled_external_diff_store_on_merge_request_diffs_spec.rb
...filled_external_diff_store_on_merge_request_diffs_spec.rb
+1
-1
spec/migrations/ensure_filled_file_store_on_package_files_spec.rb
...rations/ensure_filled_file_store_on_package_files_spec.rb
+1
-1
spec/migrations/ensure_namespace_settings_creation_spec.rb
spec/migrations/ensure_namespace_settings_creation_spec.rb
+1
-1
spec/migrations/ensure_target_project_id_is_filled_spec.rb
spec/migrations/ensure_target_project_id_is_filled_spec.rb
+1
-1
spec/migrations/ensure_u2f_registrations_migrated_spec.rb
spec/migrations/ensure_u2f_registrations_migrated_spec.rb
+1
-1
spec/migrations/fill_file_store_ci_job_artifacts_spec.rb
spec/migrations/fill_file_store_ci_job_artifacts_spec.rb
+1
-1
spec/migrations/fill_file_store_lfs_objects_spec.rb
spec/migrations/fill_file_store_lfs_objects_spec.rb
+1
-1
spec/migrations/fill_productivity_analytics_start_date_spec.rb
...migrations/fill_productivity_analytics_start_date_spec.rb
+1
-1
spec/migrations/fill_store_uploads_spec.rb
spec/migrations/fill_store_uploads_spec.rb
+1
-1
spec/migrations/fix_max_pages_size_spec.rb
spec/migrations/fix_max_pages_size_spec.rb
+1
-1
spec/migrations/fix_null_type_labels_spec.rb
spec/migrations/fix_null_type_labels_spec.rb
+1
-1
spec/migrations/fix_pool_repository_source_project_id_spec.rb
.../migrations/fix_pool_repository_source_project_id_spec.rb
+1
-1
spec/migrations/fix_projects_without_project_feature_spec.rb
spec/migrations/fix_projects_without_project_feature_spec.rb
+1
-1
spec/migrations/fix_projects_without_prometheus_services_spec.rb
...grations/fix_projects_without_prometheus_services_spec.rb
+1
-1
spec/migrations/fix_wrong_pages_access_level_spec.rb
spec/migrations/fix_wrong_pages_access_level_spec.rb
+1
-1
spec/migrations/generate_ci_jwt_signing_key_spec.rb
spec/migrations/generate_ci_jwt_signing_key_spec.rb
+1
-1
spec/migrations/generate_lets_encrypt_private_key_spec.rb
spec/migrations/generate_lets_encrypt_private_key_spec.rb
+1
-1
spec/migrations/generate_missing_routes_for_bots_spec.rb
spec/migrations/generate_missing_routes_for_bots_spec.rb
+1
-1
spec/migrations/insert_daily_invites_plan_limits_spec.rb
spec/migrations/insert_daily_invites_plan_limits_spec.rb
+1
-1
spec/migrations/insert_project_feature_flags_plan_limits_spec.rb
...grations/insert_project_feature_flags_plan_limits_spec.rb
+1
-5
spec/migrations/insert_project_hooks_plan_limits_spec.rb
spec/migrations/insert_project_hooks_plan_limits_spec.rb
+1
-1
spec/migrations/migrate_all_merge_request_user_mentions_to_db_spec.rb
...ons/migrate_all_merge_request_user_mentions_to_db_spec.rb
+1
-1
spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb
...ons/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb
+1
-1
spec/migrations/migrate_bot_type_to_user_type_spec.rb
spec/migrations/migrate_bot_type_to_user_type_spec.rb
+1
-1
spec/migrations/migrate_code_owner_approval_status_to_protected_branches_in_batches_spec.rb
..._approval_status_to_protected_branches_in_batches_spec.rb
+1
-1
spec/migrations/migrate_commit_notes_mentions_to_db_spec.rb
spec/migrations/migrate_commit_notes_mentions_to_db_spec.rb
+1
-1
spec/migrations/migrate_compliance_framework_enum_to_database_framework_record_spec.rb
...iance_framework_enum_to_database_framework_record_spec.rb
+1
-1
spec/migrations/migrate_create_commit_signature_worker_sidekiq_queue_spec.rb
...rate_create_commit_signature_worker_sidekiq_queue_spec.rb
+1
-1
spec/migrations/migrate_delayed_project_removal_from_namespaces_to_namespace_settings_spec.rb
...ect_removal_from_namespaces_to_namespace_settings_spec.rb
+1
-1
spec/migrations/migrate_discussion_id_on_promoted_epics_spec.rb
...igrations/migrate_discussion_id_on_promoted_epics_spec.rb
+1
-1
spec/migrations/migrate_elastic_index_settings_spec.rb
spec/migrations/migrate_elastic_index_settings_spec.rb
+1
-1
spec/migrations/migrate_incident_issues_to_incident_type_spec.rb
...grations/migrate_incident_issues_to_incident_type_spec.rb
+1
-1
spec/migrations/migrate_k8s_service_integration_spec.rb
spec/migrations/migrate_k8s_service_integration_spec.rb
+1
-1
spec/migrations/migrate_legacy_managed_clusters_to_unmanaged_spec.rb
...ions/migrate_legacy_managed_clusters_to_unmanaged_spec.rb
+1
-1
spec/migrations/migrate_managed_clusters_with_no_token_to_unmanaged_spec.rb
...grate_managed_clusters_with_no_token_to_unmanaged_spec.rb
+1
-1
spec/migrations/migrate_merge_request_mentions_to_db_spec.rb
spec/migrations/migrate_merge_request_mentions_to_db_spec.rb
+1
-1
spec/migrations/migrate_ops_feature_flags_scopes_target_user_ids_spec.rb
.../migrate_ops_feature_flags_scopes_target_user_ids_spec.rb
+1
-1
spec/migrations/migrate_storage_migrator_sidekiq_queue_spec.rb
...migrations/migrate_storage_migrator_sidekiq_queue_spec.rb
+1
-1
spec/migrations/migrate_store_security_reports_sidekiq_queue_spec.rb
...ions/migrate_store_security_reports_sidekiq_queue_spec.rb
+1
-1
spec/migrations/migrate_sync_security_reports_to_report_approval_rules_sidekiq_queue_spec.rb
...ty_reports_to_report_approval_rules_sidekiq_queue_spec.rb
+1
-1
spec/migrations/move_container_registry_enabled_to_project_features3_spec.rb
...e_container_registry_enabled_to_project_features3_spec.rb
+1
-1
spec/migrations/move_limits_from_plans_spec.rb
spec/migrations/move_limits_from_plans_spec.rb
+1
-1
spec/migrations/nullify_users_role_spec.rb
spec/migrations/nullify_users_role_spec.rb
+1
-1
spec/migrations/populate_project_statistics_packages_size_spec.rb
...rations/populate_project_statistics_packages_size_spec.rb
+1
-1
spec/migrations/populate_rule_type_on_approval_merge_request_rules_spec.rb
...opulate_rule_type_on_approval_merge_request_rules_spec.rb
+1
-1
spec/migrations/remove_additional_application_settings_rows_spec.rb
...tions/remove_additional_application_settings_rows_spec.rb
+1
-1
spec/migrations/remove_alerts_service_records_again_spec.rb
spec/migrations/remove_alerts_service_records_again_spec.rb
+1
-1
spec/migrations/remove_alerts_service_records_spec.rb
spec/migrations/remove_alerts_service_records_spec.rb
+1
-1
spec/migrations/remove_deprecated_jenkins_service_records_spec.rb
...rations/remove_deprecated_jenkins_service_records_spec.rb
+3
-2
spec/migrations/remove_duplicate_labels_from_groups_spec.rb
spec/migrations/remove_duplicate_labels_from_groups_spec.rb
+1
-1
spec/migrations/remove_duplicate_labels_from_project_spec.rb
spec/migrations/remove_duplicate_labels_from_project_spec.rb
+1
-1
spec/migrations/remove_empty_github_service_templates_spec.rb
.../migrations/remove_empty_github_service_templates_spec.rb
+1
-1
spec/migrations/remove_gitlab_issue_tracker_service_records_spec.rb
...tions/remove_gitlab_issue_tracker_service_records_spec.rb
+1
-1
spec/migrations/remove_hipchat_service_records_spec.rb
spec/migrations/remove_hipchat_service_records_spec.rb
+1
-1
spec/migrations/remove_orphan_service_hooks_spec.rb
spec/migrations/remove_orphan_service_hooks_spec.rb
+1
-1
spec/migrations/remove_orphaned_invited_members_spec.rb
spec/migrations/remove_orphaned_invited_members_spec.rb
+1
-1
spec/migrations/remove_packages_deprecated_dependencies_spec.rb
...igrations/remove_packages_deprecated_dependencies_spec.rb
+1
-1
spec/migrations/remove_records_without_group_from_webhooks_table_spec.rb
.../remove_records_without_group_from_webhooks_table_spec.rb
+1
-1
spec/migrations/remove_security_dashboard_feature_flag_spec.rb
...migrations/remove_security_dashboard_feature_flag_spec.rb
+1
-1
spec/migrations/rename_security_dashboard_feature_flag_to_instance_security_dashboard_spec.rb
...board_feature_flag_to_instance_security_dashboard_spec.rb
+1
-1
spec/migrations/rename_sitemap_namespace_spec.rb
spec/migrations/rename_sitemap_namespace_spec.rb
+1
-1
spec/migrations/rename_sitemap_root_namespaces_spec.rb
spec/migrations/rename_sitemap_root_namespaces_spec.rb
+1
-1
spec/migrations/reschedule_artifact_expiry_backfill_spec.rb
spec/migrations/reschedule_artifact_expiry_backfill_spec.rb
+1
-1
spec/migrations/reseed_merge_trains_enabled_spec.rb
spec/migrations/reseed_merge_trains_enabled_spec.rb
+1
-1
spec/migrations/reseed_repository_storages_weighted_spec.rb
spec/migrations/reseed_repository_storages_weighted_spec.rb
+1
-1
spec/migrations/save_instance_administrators_group_id_spec.rb
.../migrations/save_instance_administrators_group_id_spec.rb
+1
-1
spec/migrations/schedule_backfill_push_rules_id_in_projects_spec.rb
...tions/schedule_backfill_push_rules_id_in_projects_spec.rb
+1
-1
spec/migrations/schedule_blocked_by_links_replacement_second_try_spec.rb
.../schedule_blocked_by_links_replacement_second_try_spec.rb
+1
-1
spec/migrations/schedule_disable_expiration_policies_linked_to_no_container_images_spec.rb
...expiration_policies_linked_to_no_container_images_spec.rb
+1
-1
spec/migrations/schedule_fill_valid_time_for_pages_domain_certificates_spec.rb
...ule_fill_valid_time_for_pages_domain_certificates_spec.rb
+1
-1
spec/migrations/schedule_link_lfs_objects_projects_spec.rb
spec/migrations/schedule_link_lfs_objects_projects_spec.rb
+1
-1
spec/migrations/schedule_migrate_pages_to_zip_storage_spec.rb
.../migrations/schedule_migrate_pages_to_zip_storage_spec.rb
+1
-1
spec/migrations/schedule_migrate_security_scans_spec.rb
spec/migrations/schedule_migrate_security_scans_spec.rb
+1
-1
spec/migrations/schedule_migrate_u2f_webauthn_spec.rb
spec/migrations/schedule_migrate_u2f_webauthn_spec.rb
+1
-1
spec/migrations/schedule_pages_metadata_migration_spec.rb
spec/migrations/schedule_pages_metadata_migration_spec.rb
+1
-1
spec/migrations/schedule_populate_issue_email_participants_spec.rb
...ations/schedule_populate_issue_email_participants_spec.rb
+1
-1
spec/migrations/schedule_populate_merge_request_assignees_table_spec.rb
...s/schedule_populate_merge_request_assignees_table_spec.rb
+1
-1
spec/migrations/schedule_populate_personal_snippet_statistics_spec.rb
...ons/schedule_populate_personal_snippet_statistics_spec.rb
+1
-1
spec/migrations/schedule_populate_project_snippet_statistics_spec.rb
...ions/schedule_populate_project_snippet_statistics_spec.rb
+1
-1
spec/migrations/schedule_populate_user_highest_roles_table_spec.rb
...ations/schedule_populate_user_highest_roles_table_spec.rb
+1
-1
spec/migrations/schedule_recalculate_project_authorizations_second_run_spec.rb
...ule_recalculate_project_authorizations_second_run_spec.rb
+1
-1
spec/migrations/schedule_recalculate_project_authorizations_spec.rb
...tions/schedule_recalculate_project_authorizations_spec.rb
+1
-1
spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb
...dule_recalculate_project_authorizations_third_run_spec.rb
+1
-1
spec/migrations/schedule_sync_issuables_state_id_spec.rb
spec/migrations/schedule_sync_issuables_state_id_spec.rb
+1
-1
spec/migrations/schedule_sync_issuables_state_id_where_nil_spec.rb
...ations/schedule_sync_issuables_state_id_where_nil_spec.rb
+1
-1
spec/migrations/schedule_update_existing_subgroup_to_match_visibility_level_of_parent_spec.rb
...ting_subgroup_to_match_visibility_level_of_parent_spec.rb
+1
-1
spec/migrations/schedule_update_existing_users_that_require_two_factor_auth_spec.rb
...pdate_existing_users_that_require_two_factor_auth_spec.rb
+1
-1
spec/migrations/schedule_update_timelogs_project_id_spec.rb
spec/migrations/schedule_update_timelogs_project_id_spec.rb
+1
-1
spec/migrations/schedule_update_users_where_two_factor_auth_required_from_group_spec.rb
...e_users_where_two_factor_auth_required_from_group_spec.rb
+1
-1
spec/migrations/seed_merge_trains_enabled_spec.rb
spec/migrations/seed_merge_trains_enabled_spec.rb
+1
-1
spec/migrations/seed_repository_storages_weighted_spec.rb
spec/migrations/seed_repository_storages_weighted_spec.rb
+1
-1
spec/migrations/services_remove_temporary_index_on_project_id_spec.rb
...ons/services_remove_temporary_index_on_project_id_spec.rb
+1
-1
spec/migrations/set_issue_id_for_all_versions_spec.rb
spec/migrations/set_issue_id_for_all_versions_spec.rb
+1
-1
spec/migrations/set_job_waiter_ttl_spec.rb
spec/migrations/set_job_waiter_ttl_spec.rb
+1
-1
spec/migrations/sync_issuables_state_id_spec.rb
spec/migrations/sync_issuables_state_id_spec.rb
+1
-1
spec/migrations/truncate_user_fullname_spec.rb
spec/migrations/truncate_user_fullname_spec.rb
+1
-1
spec/migrations/unconfirm_wrongfully_verified_emails_spec.rb
spec/migrations/unconfirm_wrongfully_verified_emails_spec.rb
+1
-1
spec/migrations/update_application_setting_npm_package_requests_forwarding_default_spec.rb
...n_setting_npm_package_requests_forwarding_default_spec.rb
+1
-1
spec/migrations/update_fingerprint_sha256_within_keys_spec.rb
.../migrations/update_fingerprint_sha256_within_keys_spec.rb
+1
-1
spec/migrations/update_historical_data_recorded_at_spec.rb
spec/migrations/update_historical_data_recorded_at_spec.rb
+1
-1
spec/migrations/update_internal_ids_last_value_for_epics_renamed_spec.rb
.../update_internal_ids_last_value_for_epics_renamed_spec.rb
+1
-1
spec/migrations/update_minimum_password_length_spec.rb
spec/migrations/update_minimum_password_length_spec.rb
+1
-1
spec/migrations/update_routes_for_lost_and_found_group_and_orphaned_projects_spec.rb
...es_for_lost_and_found_group_and_orphaned_projects_spec.rb
+1
-1
spec/migrations/update_timestamp_softwarelicensespolicy_spec.rb
...igrations/update_timestamp_softwarelicensespolicy_spec.rb
+1
-1
No files found.
spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191125114345_add_admin_mode_protected_path.rb
'
)
require
_migration!
(
'add_admin_mode_protected_path
'
)
RSpec
.
describe
AddAdminModeProtectedPath
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/20191204114127_delete_legacy_triggers_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191204114127_delete_legacy_triggers.rb
'
)
require
_migration!
(
'delete_legacy_triggers
'
)
RSpec
.
describe
DeleteLegacyTriggers
,
schema:
2019_11_25_140458
do
let
(
:ci_trigger_table
)
{
table
(
:ci_triggers
)
}
...
...
spec/migrations/20200107172020_add_timestamp_softwarelicensespolicy_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200107172020_add_timestamp_softwarelicensespolicy.rb
'
)
require
_migration!
(
'add_timestamp_softwarelicensespolicy
'
)
RSpec
.
describe
AddTimestampSoftwarelicensespolicy
do
let
(
:software_licenses_policy
)
{
table
(
:software_license_policies
)
}
...
...
spec/migrations/20200122123016_backfill_project_settings_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200122123016_backfill_project_settings.rb
'
)
require
_migration!
(
'backfill_project_settings
'
)
RSpec
.
describe
BackfillProjectSettings
,
:sidekiq
,
schema:
20200114113341
do
let
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/20200123155929_remove_invalid_jira_data_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200123155929_remove_invalid_jira_data.rb
'
)
require
_migration!
(
'remove_invalid_jira_data
'
)
RSpec
.
describe
RemoveInvalidJiraData
do
let
(
:jira_tracker_data
)
{
table
(
:jira_tracker_data
)
}
...
...
spec/migrations/20200127090233_remove_invalid_issue_tracker_data_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200127090233_remove_invalid_issue_tracker_data.rb
'
)
require
_migration!
(
'remove_invalid_issue_tracker_data
'
)
RSpec
.
describe
RemoveInvalidIssueTrackerData
do
let
(
:issue_tracker_data
)
{
table
(
:issue_tracker_data
)
}
...
...
spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200130145430_reschedule_migrate_issue_trackers_data.rb
'
)
require
_migration!
(
'reschedule_migrate_issue_trackers_data
'
)
RSpec
.
describe
RescheduleMigrateIssueTrackersData
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/20200313203550_remove_orphaned_chat_names_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200313203550_remove_orphaned_chat_names.rb
'
)
require
_migration!
(
'remove_orphaned_chat_names
'
)
RSpec
.
describe
RemoveOrphanedChatNames
,
schema:
20200313202430
do
let
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/20200406102120_backfill_deployment_clusters_from_deployments_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200406102120_backfill_deployment_clusters_from_deployments.rb
'
)
require
_migration!
(
'backfill_deployment_clusters_from_deployments
'
)
RSpec
.
describe
BackfillDeploymentClustersFromDeployments
,
:migration
,
:sidekiq
,
schema:
20200227140242
do
describe
'#up'
do
...
...
spec/migrations/20200511145545_change_variable_interpolation_format_in_common_metrics_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200511145545_
change_variable_interpolation_format_in_common_metrics'
)
require
_migration!
(
'
change_variable_interpolation_format_in_common_metrics'
)
RSpec
.
describe
ChangeVariableInterpolationFormatInCommonMetrics
,
:migration
do
let
(
:prometheus_metrics
)
{
table
(
:prometheus_metrics
)
}
...
...
spec/migrations/20200526115436_dedup_mr_metrics_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200526115436_
dedup_mr_metrics'
)
require
_migration!
(
'
dedup_mr_metrics'
)
RSpec
.
describe
DedupMrMetrics
,
:migration
,
schema:
20200526013844
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20200526231421_update_index_approval_rule_name_for_code_owners_rule_type_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200526231421_update_index_approval_rule_name_for_code_owners_rule_type.rb
'
)
require
_migration!
(
'update_index_approval_rule_name_for_code_owners_rule_type
'
)
RSpec
.
describe
UpdateIndexApprovalRuleNameForCodeOwnersRuleType
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/20200703125016_backfill_namespace_settings_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200703125016_backfill_namespace_settings.rb
'
)
require
_migration!
(
'backfill_namespace_settings
'
)
RSpec
.
describe
BackfillNamespaceSettings
,
:sidekiq
,
schema:
20200703124823
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20200706035141_adjust_unique_index_alert_management_alerts_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200706035141_adjust_unique_index_alert_management_alerts.rb
'
)
require
_migration!
(
'adjust_unique_index_alert_management_alerts
'
)
RSpec
.
describe
AdjustUniqueIndexAlertManagementAlerts
,
:migration
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/20200728080250_replace_unique_index_on_cycle_analytics_stages_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200728080250_replace_unique_index_on_cycle_analytics_stages.rb
'
)
require
_migration!
(
'replace_unique_index_on_cycle_analytics_stages
'
)
RSpec
.
describe
ReplaceUniqueIndexOnCycleAnalyticsStages
,
:migration
,
schema:
20200728080250
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20200728182311_add_o_auth_paths_to_protected_paths_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200728182311_add_o_auth_paths_to_protected_paths.rb
'
)
require
_migration!
(
'add_o_auth_paths_to_protected_paths
'
)
RSpec
.
describe
AddOAuthPathsToProtectedPaths
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/20200811130433_create_missing_vulnerabilities_issue_links_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200811130433_create_missing_vulnerabilities_issue_links.rb
'
)
require
_migration!
(
'create_missing_vulnerabilities_issue_links
'
)
RSpec
.
describe
CreateMissingVulnerabilitiesIssueLinks
,
:migration
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'user'
,
path:
'user'
)
}
...
...
spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200915044225_schedule_migration_to_hashed_storage.rb
'
)
require
_migration!
(
'schedule_migration_to_hashed_storage
'
)
RSpec
.
describe
ScheduleMigrationToHashedStorage
,
:sidekiq
do
describe
'#up'
do
...
...
spec/migrations/20200929052138_create_initial_versions_for_pre_versioning_terraform_states_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200929052138_create_initial_versions_for_pre_versioning_terraform_states.rb
'
)
require
_migration!
(
'create_initial_versions_for_pre_versioning_terraform_states
'
)
RSpec
.
describe
CreateInitialVersionsForPreVersioningTerraformStates
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'terraform'
,
path:
'terraform'
)
}
...
...
spec/migrations/20201014205300_drop_backfill_jira_tracker_deployment_type_jobs_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201014205300_drop_backfill_jira_tracker_deployment_type_jobs.rb
'
)
require
_migration!
(
'drop_backfill_jira_tracker_deployment_type_jobs
'
)
RSpec
.
describe
DropBackfillJiraTrackerDeploymentTypeJobs
,
:sidekiq
,
:redis
,
schema:
2020_10_14_205300
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/20201027002551_migrate_services_to_http_integrations_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201027002551_migrate_services_to_http_integrations.rb
'
)
require
_migration!
(
'migrate_services_to_http_integrations
'
)
RSpec
.
describe
MigrateServicesToHttpIntegrations
do
let!
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'namespace'
,
path:
'namespace'
)
}
...
...
spec/migrations/20201028182809_backfill_jira_tracker_deployment_type2_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201028182809_backfill_jira_tracker_deployment_type2.rb
'
)
require
_migration!
(
'backfill_jira_tracker_deployment_type2
'
)
RSpec
.
describe
BackfillJiraTrackerDeploymentType2
,
:sidekiq
,
schema:
20201028182809
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/20201110161542_cleanup_transfered_projects_shared_runners_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201110161542_cleanup_transfered_projects_shared_runners.rb
'
)
require
_migration!
(
'cleanup_transfered_projects_shared_runners
'
)
RSpec
.
describe
CleanupTransferedProjectsSharedRunners
,
:sidekiq
,
schema:
20201110161542
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20201112130710_schedule_remove_duplicate_vulnerabilities_findings_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201112130710_schedule_remove_duplicate_vulnerabilities_findings.rb
'
)
require
_migration!
(
'schedule_remove_duplicate_vulnerabilities_findings
'
)
RSpec
.
describe
ScheduleRemoveDuplicateVulnerabilitiesFindings
,
:migration
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'user'
,
path:
'user'
)
}
...
...
spec/migrations/20201112130715_schedule_recalculate_uuid_on_vulnerabilities_occurrences_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201112130715_schedule_recalculate_uuid_on_vulnerabilities_occurrences.rb
'
)
require
_migration!
(
'schedule_recalculate_uuid_on_vulnerabilities_occurrences
'
)
RSpec
.
describe
ScheduleRecalculateUuidOnVulnerabilitiesOccurrences
,
:migration
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'user'
,
path:
'user'
)
}
...
...
spec/migrations/20210112143418_remove_duplicate_services2_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210112143418_remove_duplicate_services2.rb
'
)
require
_migration!
(
'remove_duplicate_services2
'
)
RSpec
.
describe
RemoveDuplicateServices2
do
let_it_be
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20210119122354_alter_vsa_issue_first_mentioned_in_commit_value_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210119122354_alter_vsa_issue_first_mentioned_in_commit_value.rb
'
)
require
_migration!
(
'alter_vsa_issue_first_mentioned_in_commit_value
'
)
RSpec
.
describe
AlterVsaIssueFirstMentionedInCommitValue
,
schema:
20210114033715
do
let
(
:group_stages
)
{
table
(
:analytics_cycle_analytics_group_stages
)
}
...
...
spec/migrations/20210205174154_remove_bad_dependency_proxy_manifests_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210205174154_remove_bad_dependency_proxy_manifests.rb
'
)
require
_migration!
(
'remove_bad_dependency_proxy_manifests
'
)
RSpec
.
describe
RemoveBadDependencyProxyManifests
,
schema:
20210128140157
do
let_it_be
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20210210093901_backfill_updated_at_after_repository_storage_move_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210210093901_backfill_updated_at_after_repository_storage_move.rb
'
)
require
_migration!
(
'backfill_updated_at_after_repository_storage_move
'
)
RSpec
.
describe
BackfillUpdatedAtAfterRepositoryStorageMove
,
:sidekiq
do
let_it_be
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/20210226141517_dedup_issue_metrics_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210226141517_dedup_issue_metrics.rb
'
)
require
_migration!
(
'dedup_issue_metrics
'
)
RSpec
.
describe
DedupIssueMetrics
,
:migration
,
schema:
20210205104425
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20210406144743_backfill_total_tuple_count_for_batched_migrations_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210406144743_backfill_total_tuple_count_for_batched_migrations.rb
'
)
require
_migration!
(
'backfill_total_tuple_count_for_batched_migrations
'
)
RSpec
.
describe
BackfillTotalTupleCountForBatchedMigrations
,
:migration
,
schema:
20210406140057
do
let_it_be
(
:table_name
)
{
'projects'
}
...
...
spec/migrations/20210413132500_reschedule_artifact_expiry_backfill_again_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210413132500_reschedule_artifact_expiry_backfill_again.rb
'
)
require
_migration!
(
'reschedule_artifact_expiry_backfill_again
'
)
RSpec
.
describe
RescheduleArtifactExpiryBackfillAgain
,
:migration
do
let
(
:migration_class
)
{
Gitlab
::
BackgroundMigration
::
BackfillArtifactExpiryDate
}
...
...
spec/migrations/20210421163509_schedule_update_jira_tracker_data_deployment_type_based_on_url_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210421163509_schedule_update_jira_tracker_data_deployment_type_based_on_url.rb
'
)
require
_migration!
(
'schedule_update_jira_tracker_data_deployment_type_based_on_url
'
)
RSpec
.
describe
ScheduleUpdateJiraTrackerDataDeploymentTypeBasedOnUrl
,
:migration
do
let
(
:services_table
)
{
table
(
:services
)
}
...
...
spec/migrations/20210423160427_schedule_drop_invalid_vulnerabilities_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210423160427_schedule_drop_invalid_vulnerabilities.rb
'
)
require
_migration!
(
'schedule_drop_invalid_vulnerabilities
'
)
RSpec
.
describe
ScheduleDropInvalidVulnerabilities
,
:migration
do
let_it_be
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'user'
,
path:
'user'
)
}
...
...
spec/migrations/20210430134202_copy_adoption_snapshot_namespace_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
#
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210430134202_copy_adoption_snapshot_namespace.rb
'
)
require
_migration!
(
'copy_adoption_snapshot_namespace
'
)
RSpec
.
describe
CopyAdoptionSnapshotNamespace
,
:migration
,
schema:
20210430124630
do
let
(
:namespaces_table
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20210430135954_copy_adoption_segments_namespace_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210430135954_copy_adoption_segments_namespace.rb
'
)
require
_migration!
(
'copy_adoption_segments_namespace
'
)
RSpec
.
describe
CopyAdoptionSegmentsNamespace
,
:migration
do
let
(
:namespaces_table
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/20210503105845_add_project_value_stream_id_to_project_stages_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20210503105845_add_project_value_stream_id_to_project_stages.rb
'
)
require
_migration!
(
'add_project_value_stream_id_to_project_stages
'
)
RSpec
.
describe
AddProjectValueStreamIdToProjectStages
,
schema:
20210503105022
do
let
(
:stages
)
{
table
(
:analytics_cycle_analytics_project_stages
)
}
...
...
spec/migrations/20210511142748_schedule_drop_invalid_vulnerabilities2_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210511142748_schedule_drop_invalid_vulnerabilities2.rb
'
)
require
_migration!
(
'schedule_drop_invalid_vulnerabilities2
'
)
RSpec
.
describe
ScheduleDropInvalidVulnerabilities2
,
:migration
do
let_it_be
(
:background_migration_jobs
)
{
table
(
:background_migration_jobs
)
}
...
...
spec/migrations/20210601073400_fix_total_stage_in_vsa_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210601073400_fix_total_stage_in_vsa.rb
'
)
require
_migration!
(
'fix_total_stage_in_vsa
'
)
RSpec
.
describe
FixTotalStageInVsa
,
:migration
,
schema:
20210518001450
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/add_default_and_free_plans_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191023152913_add_default_and_free_plans.rb
'
)
require
_migration!
(
'add_default_and_free_plans
'
)
RSpec
.
describe
AddDefaultAndFreePlans
do
describe
'migrate'
do
...
...
spec/migrations/add_default_value_stream_to_groups_with_group_stages_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200701070435_add_default_value_stream_to_groups_with_group_stages.rb'
)
require
_migration!
RSpec
.
describe
AddDefaultValueStreamToGroupsWithGroupStages
,
schema:
20200624142207
do
let
(
:groups
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/add_deploy_token_type_to_deploy_tokens_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200122161638_add_deploy_token_type_to_deploy_tokens.rb'
)
require
_migration!
RSpec
.
describe
AddDeployTokenTypeToDeployTokens
do
let
(
:deploy_tokens
)
{
table
(
:deploy_tokens
)
}
...
...
spec/migrations/add_incident_settings_to_all_existing_projects_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200609212701_add_incident_settings_to_all_existing_projects.rb'
)
require
_migration!
RSpec
.
describe
AddIncidentSettingsToAllExistingProjects
,
:migration
do
let
(
:project_incident_management_settings
)
{
table
(
:project_incident_management_settings
)
}
...
...
spec/migrations/add_new_post_eoa_plans_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210205104425_add_new_post_eoa_plans.rb'
)
require
_migration!
RSpec
.
describe
AddNewPostEoaPlans
do
let
(
:plans
)
{
table
(
:plans
)
}
...
...
spec/migrations/add_partial_index_to_ci_builds_table_on_user_id_name_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200908064229_add_partial_index_to_ci_builds_table_on_user_id_name.rb'
)
require
_migration!
RSpec
.
describe
AddPartialIndexToCiBuildsTableOnUserIdName
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/add_repository_storages_weighted_to_application_settings_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200508203901_add_repository_storages_weighted_to_application_settings.rb'
)
require
_migration!
RSpec
.
describe
AddRepositoryStoragesWeightedToApplicationSettings
,
:migration
do
let
(
:storages
)
{
{
"foo"
=>
{},
"baz"
=>
{}
}
}
...
...
spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200114112932_add_temporary_partial_index_on_project_id_to_services.rb'
)
require
_migration!
RSpec
.
describe
AddTemporaryPartialIndexOnProjectIdToServices
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/add_unique_constraint_to_approvals_user_id_and_merge_request_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190404143330_add_unique_constraint_to_approvals_user_id_and_merge_request_id.rb'
)
require
_migration!
RSpec
.
describe
AddUniqueConstraintToApprovalsUserIdAndMergeRequestId
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/backfill_and_add_not_null_constraint_to_released_at_column_on_releases_table_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190628185004_backfill_and_add_not_null_constraint_to_released_at_column_on_releases_table.rb'
)
require
_migration!
RSpec
.
describe
BackfillAndAddNotNullConstraintToReleasedAtColumnOnReleasesTable
do
let
(
:releases
)
{
table
(
:releases
)
}
...
...
spec/migrations/backfill_clusters_integration_prometheus_enabled_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require_migration!
'backfill_clusters_integration_prometheus_enabled'
require_migration!
RSpec
.
describe
BackfillClustersIntegrationPrometheusEnabled
,
:migration
do
def
create_cluster!
(
label
=
rand
(
2
**
64
).
to_s
)
...
...
spec/migrations/backfill_escalation_policies_for_oncall_schedules_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210519220019_backfill_escalation_policies_for_oncall_schedules.rb'
)
require
_migration!
RSpec
.
describe
BackfillEscalationPoliciesForOncallSchedules
do
let_it_be
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/backfill_imported_snippet_repositories_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200608072931_backfill_imported_snippet_repositories.rb'
)
require
_migration!
RSpec
.
describe
BackfillImportedSnippetRepositories
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/backfill_operations_feature_flags_active_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191213184609_backfill_operations_feature_flags_active.rb'
)
require
_migration!
RSpec
.
describe
BackfillOperationsFeatureFlagsActive
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/backfill_operations_feature_flags_iid_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200117194850_backfill_operations_feature_flags_iid.rb'
)
require
_migration!
RSpec
.
describe
BackfillOperationsFeatureFlagsIid
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/backfill_releases_table_updated_at_and_add_not_null_constraints_to_timestamps_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190920194925_backfill_releases_table_updated_at_and_add_not_null_constraints_to_timestamps.rb'
)
require
_migration!
RSpec
.
describe
BackfillReleasesTableUpdatedAtAndAddNotNullConstraintsToTimestamps
do
let
(
:releases
)
{
table
(
:releases
)
}
...
...
spec/migrations/backfill_snippet_repositories_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200420094444_backfill_snippet_repositories.rb'
)
require
_migration!
RSpec
.
describe
BackfillSnippetRepositories
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/backfill_status_page_published_incidents_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200421195234_backfill_status_page_published_incidents.rb'
)
require
_migration!
RSpec
.
describe
BackfillStatusPagePublishedIncidents
,
:migration
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/backport_enterprise_schema_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190402150158_backport_enterprise_schema.rb'
)
require
_migration!
RSpec
.
describe
BackportEnterpriseSchema
,
schema:
20190329085614
do
include
MigrationsHelpers
...
...
spec/migrations/cap_designs_filename_length_to_new_limit_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200602013901_cap_designs_filename_length_to_new_limit'
)
require
_migration!
RSpec
.
describe
CapDesignsFilenameLengthToNewLimit
,
:migration
,
schema:
20200528125905
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/change_outbound_local_requests_whitelist_default_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190725012225_change_outbound_local_requests_whitelist_default.rb'
)
require
_migration!
RSpec
.
describe
ChangeOutboundLocalRequestsWhitelistDefault
do
let
(
:application_settings
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/change_packages_size_defaults_in_project_statistics_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190516155724_change_packages_size_defaults_in_project_statistics.rb'
)
require
_migration!
RSpec
.
describe
ChangePackagesSizeDefaultsInProjectStatistics
do
let
(
:project_statistics
)
{
table
(
:project_statistics
)
}
...
...
spec/migrations/change_web_hook_events_default_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20210420012444_change_web_hook_events_default.rb'
)
require
_migration!
RSpec
.
describe
ChangeWebHookEventsDefault
do
let
(
:web_hooks
)
{
table
(
:web_hooks
)
}
...
...
spec/migrations/clean_grafana_url_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200214085940_clean_grafana_url.rb'
)
require
_migration!
RSpec
.
describe
CleanGrafanaUrl
do
let
(
:application_settings_table
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/clean_up_noteable_id_for_notes_on_commits_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190313092516_clean_up_noteable_id_for_notes_on_commits.rb'
)
require
_migration!
RSpec
.
describe
CleanUpNoteableIdForNotesOnCommits
do
let
(
:notes
)
{
table
(
:notes
)
}
...
...
spec/migrations/clean_up_pending_builds_table_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210525075724_clean_up_pending_builds_table.rb'
)
require
_migration!
RSpec
.
describe
CleanUpPendingBuildsTable
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/cleanup_empty_commit_user_mentions_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200128133510_cleanup_empty_commit_user_mentions'
)
require
_migration!
RSpec
.
describe
CleanupEmptyCommitUserMentions
,
:migration
,
:sidekiq
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/cleanup_group_import_states_with_null_user_id_spec.rb
View file @
ba216177
...
...
@@ -12,8 +12,8 @@
# To solve this problem, use SchemaVersionFinder to set schema one version prior to AddNotNullConstraintToUserOnGroupImportStates
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200907092715_add_not_null_constraint_to_user_on_group_import_states.rb
'
)
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200909161624_cleanup_group_import_states_with_null_user_id.rb'
)
require
_migration!
(
'add_not_null_constraint_to_user_on_group_import_states
'
)
require
_migration!
RSpec
.
describe
CleanupGroupImportStatesWithNullUserId
,
:migration
,
schema:
MigrationHelpers
::
SchemaVersionFinder
.
migration_prior
(
AddNotNullConstraintToUserOnGroupImportStates
)
do
...
...
spec/migrations/cleanup_legacy_artifact_migration_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190104182041_cleanup_legacy_artifact_migration.rb
'
)
require
_migration!
(
'cleanup_legacy_artifact_migration
'
)
RSpec
.
describe
CleanupLegacyArtifactMigration
,
:redis
do
let
(
:migration
)
{
spy
(
'migration'
)
}
...
...
spec/migrations/cleanup_move_container_registry_enabled_to_project_features_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210513163904_cleanup_move_container_registry_enabled_to_project_feature.rb
'
)
require
_migration!
(
'cleanup_move_container_registry_enabled_to_project_feature
'
)
RSpec
.
describe
CleanupMoveContainerRegistryEnabledToProjectFeature
,
:migration
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'gitlab'
,
path:
'gitlab-org'
)
}
...
...
spec/migrations/cleanup_optimistic_locking_nulls_pt2_fixed_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200427064130_cleanup_optimistic_locking_nulls_pt2_fixed.rb
'
)
require
_migration!
(
'cleanup_optimistic_locking_nulls_pt2_fixed
'
)
RSpec
.
describe
CleanupOptimisticLockingNullsPt2Fixed
,
:migration
,
schema:
20200219193117
do
test_tables
=
%w(ci_stages ci_builds ci_pipelines)
.
freeze
...
...
spec/migrations/cleanup_optimistic_locking_nulls_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200128210353_
cleanup_optimistic_locking_nulls'
)
require
_migration!
(
'
cleanup_optimistic_locking_nulls'
)
RSpec
.
describe
CleanupOptimisticLockingNulls
do
let
(
:epics
)
{
table
(
:epics
)
}
...
...
spec/migrations/cleanup_projects_with_missing_namespace_spec.rb
View file @
ba216177
...
...
@@ -2,8 +2,8 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200511080113_add_projects_foreign_key_to_namespaces.rb
'
)
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200511083541_cleanup_projects_with_missing_namespace.rb'
)
require
_migration!
(
'add_projects_foreign_key_to_namespaces
'
)
require
_migration!
# In order to test the CleanupProjectsWithMissingNamespace migration, we need
# to first create an orphaned project (one with an invalid namespace_id)
...
...
spec/migrations/complete_namespace_settings_migration_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200907124300_complete_namespace_settings_migration.rb'
)
require
_migration!
RSpec
.
describe
CompleteNamespaceSettingsMigration
,
:redis
do
let
(
:migration
)
{
spy
(
'migration'
)
}
...
...
spec/migrations/confirm_project_bot_users_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200713071042_confirm_project_bot_users.rb'
)
require
_migration!
RSpec
.
describe
ConfirmProjectBotUsers
,
:migration
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/create_environment_for_self_monitoring_project_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200214214934_create_environment_for_self_monitoring_project'
)
require
_migration!
RSpec
.
describe
CreateEnvironmentForSelfMonitoringProject
do
let
(
:application_settings_table
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/deduplicate_epic_iids_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201106134950_deduplicate_epic_iids.rb'
)
require
_migration!
RSpec
.
describe
DeduplicateEpicIids
,
:migration
,
schema:
20201106082723
do
let
(
:routes
)
{
table
(
:routes
)
}
...
...
spec/migrations/delete_internal_ids_where_feature_flags_usage_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200117194900_delete_internal_ids_where_feature_flags_usage'
)
require
_migration!
RSpec
.
describe
DeleteInternalIdsWhereFeatureFlagsUsage
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/delete_template_project_services_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200305151736_delete_template_project_services.rb'
)
require
_migration!
RSpec
.
describe
DeleteTemplateProjectServices
,
:migration
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/delete_template_services_duplicated_by_type_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200304160801_delete_template_services_duplicated_by_type.rb'
)
require
_migration!
RSpec
.
describe
DeleteTemplateServicesDuplicatedByType
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/delete_user_callout_alerts_moved_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200710102418_delete_user_callout_alerts_moved.rb'
)
require
_migration!
RSpec
.
describe
DeleteUserCalloutAlertsMoved
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/drop_activate_prometheus_services_background_jobs_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200221144534_drop_activate_prometheus_services_background_jobs.rb'
)
require
_migration!
RSpec
.
describe
DropActivatePrometheusServicesBackgroundJobs
,
:sidekiq
,
:redis
,
schema:
2020_02_21_144534
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/drop_alerts_service_data_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210205213933_drop_alerts_service_data.rb'
)
require
_migration!
RSpec
.
describe
DropAlertsServiceData
do
let_it_be
(
:alerts_service_data
)
{
table
(
:alerts_service_data
)
}
...
...
spec/migrations/drop_background_migration_jobs_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200116051619_drop_background_migration_jobs.rb'
)
require
_migration!
RSpec
.
describe
DropBackgroundMigrationJobs
,
:sidekiq
,
:redis
,
schema:
2020_01_16_051619
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/drop_project_ci_cd_settings_merge_trains_enabled_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191128162854_drop_project_ci_cd_settings_merge_trains_enabled.rb'
)
require
_migration!
RSpec
.
describe
DropProjectCiCdSettingsMergeTrainsEnabled
do
let!
(
:project_ci_cd_setting
)
{
table
(
:project_ci_cd_settings
)
}
...
...
spec/migrations/encrypt_feature_flags_clients_tokens_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190606175050_encrypt_feature_flags_clients_tokens.rb'
)
require
_migration!
RSpec
.
describe
EncryptFeatureFlagsClientsTokens
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/encrypt_plaintext_attributes_on_application_settings_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191120115530_encrypt_plaintext_attributes_on_application_settings.rb'
)
require
_migration!
RSpec
.
describe
EncryptPlaintextAttributesOnApplicationSettings
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/enqueue_reset_merge_status_second_run_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190620112608_enqueue_reset_merge_status_second_run.rb'
)
require
_migration!
RSpec
.
describe
EnqueueResetMergeStatusSecondRun
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/enqueue_reset_merge_status_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190528180441_enqueue_reset_merge_status.rb'
)
require
_migration!
RSpec
.
describe
EnqueueResetMergeStatus
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/ensure_filled_external_diff_store_on_merge_request_diffs_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200910170908_ensure_filled_external_diff_store_on_merge_request_diffs.rb'
)
require
_migration!
RSpec
.
describe
EnsureFilledExternalDiffStoreOnMergeRequestDiffs
,
schema:
20200908095446
do
let!
(
:merge_request_diffs
)
{
table
(
:merge_request_diffs
)
}
...
...
spec/migrations/ensure_filled_file_store_on_package_files_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200915185707_ensure_filled_file_store_on_package_files.rb'
)
require
_migration!
RSpec
.
describe
EnsureFilledFileStoreOnPackageFiles
,
schema:
20200910175553
do
let!
(
:packages_package_files
)
{
table
(
:packages_package_files
)
}
...
...
spec/migrations/ensure_namespace_settings_creation_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201104124300_ensure_namespace_settings_creation.rb'
)
require
_migration!
RSpec
.
describe
EnsureNamespaceSettingsCreation
do
context
'when there are namespaces without namespace settings'
do
...
...
spec/migrations/ensure_target_project_id_is_filled_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200831065705_ensure_target_project_id_is_filled.rb'
)
require
_migration!
RSpec
.
describe
EnsureTargetProjectIdIsFilled
,
schema:
20200827085101
do
let_it_be
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/ensure_u2f_registrations_migrated_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201026185514_ensure_u2f_registrations_migrated.rb'
)
require
_migration!
RSpec
.
describe
EnsureU2fRegistrationsMigrated
,
schema:
20201022144501
do
let
(
:u2f_registrations
)
{
table
(
:u2f_registrations
)
}
...
...
spec/migrations/fill_file_store_ci_job_artifacts_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200513235532_fill_file_store_ci_job_artifacts.rb'
)
require
_migration!
RSpec
.
describe
FillFileStoreCiJobArtifacts
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/fill_file_store_lfs_objects_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200513234502_fill_file_store_lfs_objects.rb'
)
require
_migration!
RSpec
.
describe
FillFileStoreLfsObjects
do
let
(
:lfs_objects
)
{
table
(
:lfs_objects
)
}
...
...
spec/migrations/fill_productivity_analytics_start_date_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191004081520_fill_productivity_analytics_start_date.rb'
)
require
_migration!
RSpec
.
describe
FillProductivityAnalyticsStartDate
do
let
(
:settings_table
)
{
table
(
'application_settings'
)
}
...
...
spec/migrations/fill_store_uploads_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200513235347_fill_store_uploads.rb'
)
require
_migration!
RSpec
.
describe
FillStoreUploads
do
let
(
:uploads
)
{
table
(
:uploads
)
}
...
...
spec/migrations/fix_max_pages_size_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191213120427_fix_max_pages_size.rb'
)
require
_migration!
RSpec
.
describe
FixMaxPagesSize
do
let
(
:application_settings
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/fix_null_type_labels_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190131122559_fix_null_type_labels'
)
require
_migration!
RSpec
.
describe
FixNullTypeLabels
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/fix_pool_repository_source_project_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190604184643_fix_pool_repository_source_project_id.rb'
)
require
_migration!
RSpec
.
describe
FixPoolRepositorySourceProjectId
do
let
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/fix_projects_without_project_feature_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200127111840_fix_projects_without_project_feature.rb'
)
require
_migration!
RSpec
.
describe
FixProjectsWithoutProjectFeature
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'gitlab'
,
path:
'gitlab-org'
)
}
...
...
spec/migrations/fix_projects_without_prometheus_services_spec.rb
View file @
ba216177
# frozen_string_literal: true
#
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200220115023_fix_projects_without_prometheus_service.rb
'
)
require
_migration!
(
'fix_projects_without_prometheus_service
'
)
RSpec
.
describe
FixProjectsWithoutPrometheusService
,
:migration
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'gitlab'
,
path:
'gitlab-org'
)
}
...
...
spec/migrations/fix_wrong_pages_access_level_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190703185326_fix_wrong_pages_access_level.rb'
)
require
_migration!
RSpec
.
describe
FixWrongPagesAccessLevel
,
:sidekiq_might_not_need_inline
,
schema:
20190628185004
do
using
RSpec
::
Parameterized
::
TableSyntax
...
...
spec/migrations/generate_ci_jwt_signing_key_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201008013434_generate_ci_jwt_signing_key.rb'
)
require
_migration!
RSpec
.
describe
GenerateCiJwtSigningKey
do
let
(
:application_settings
)
do
...
...
spec/migrations/generate_lets_encrypt_private_key_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190524062810_generate_lets_encrypt_private_key.rb'
)
require
_migration!
RSpec
.
describe
GenerateLetsEncryptPrivateKey
do
describe
'#up'
do
...
...
spec/migrations/generate_missing_routes_for_bots_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200703064117_generate_missing_routes_for_bots.rb'
)
require
_migration!
RSpec
.
describe
GenerateMissingRoutesForBots
,
:migration
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/insert_daily_invites_plan_limits_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201007033723_insert_daily_invites_plan_limits.rb'
)
require
_migration!
RSpec
.
describe
InsertDailyInvitesPlanLimits
do
let
(
:plans
)
{
table
(
:plans
)
}
...
...
spec/migrations/insert_project_feature_flags_plan_limits_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200831222347_insert_project_feature_flags_plan_limits.rb'
)
require_migration!
RSpec
.
describe
InsertProjectFeatureFlagsPlanLimits
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/insert_project_hooks_plan_limits_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191216183532_insert_project_hooks_plan_limits.rb'
)
require
_migration!
RSpec
.
describe
InsertProjectHooksPlanLimits
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/migrate_all_merge_request_user_mentions_to_db_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200601120434_migrate_all_merge_request_user_mentions_to_db'
)
require
_migration!
RSpec
.
describe
MigrateAllMergeRequestUserMentionsToDb
,
:migration
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190204115450_migrate_auto_dev_ops_domain_to_cluster_domain.rb'
)
require
_migration!
RSpec
.
describe
MigrateAutoDevOpsDomainToClusterDomain
do
include
MigrationHelpers
::
ClusterHelpers
...
...
spec/migrations/migrate_bot_type_to_user_type_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200311074438_migrate_bot_type_to_user_type.rb'
)
require
_migration!
RSpec
.
describe
MigrateBotTypeToUserType
,
:migration
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/migrate_code_owner_approval_status_to_protected_branches_in_batches_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190827102026_migrate_code_owner_approval_status_to_protected_branches_in_batches.rb'
)
require
_migration!
RSpec
.
describe
MigrateCodeOwnerApprovalStatusToProtectedBranchesInBatches
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/migrate_commit_notes_mentions_to_db_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200128134110_migrate_commit_notes_mentions_to_db'
)
require
_migration!
RSpec
.
describe
MigrateCommitNotesMentionsToDb
,
:migration
,
:sidekiq
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/migrate_compliance_framework_enum_to_database_framework_record_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201005094331_migrate_compliance_framework_enum_to_database_framework_record.rb'
)
require
_migration!
RSpec
.
describe
MigrateComplianceFrameworkEnumToDatabaseFrameworkRecord
,
schema:
20201005092753
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/migrate_create_commit_signature_worker_sidekiq_queue_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200206091544_migrate_create_commit_signature_worker_sidekiq_queue.rb'
)
require
_migration!
RSpec
.
describe
MigrateCreateCommitSignatureWorkerSidekiqQueue
,
:sidekiq
,
:redis
do
include
Gitlab
::
Database
::
MigrationHelpers
...
...
spec/migrations/migrate_delayed_project_removal_from_namespaces_to_namespace_settings_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210215095328_migrate_delayed_project_removal_from_namespaces_to_namespace_settings.rb'
)
require
_migration!
RSpec
.
describe
MigrateDelayedProjectRemovalFromNamespacesToNamespaceSettings
,
:migration
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/migrate_discussion_id_on_promoted_epics_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190715193142_migrate_discussion_id_on_promoted_epics.rb'
)
require
_migration!
RSpec
.
describe
MigrateDiscussionIdOnPromotedEpics
do
let
(
:migration_class
)
{
described_class
::
MIGRATION
}
...
...
spec/migrations/migrate_elastic_index_settings_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20210324131727_migrate_elastic_index_settings.rb'
)
require
_migration!
RSpec
.
describe
MigrateElasticIndexSettings
do
let
(
:elastic_index_settings
)
{
table
(
:elastic_index_settings
)
}
...
...
spec/migrations/migrate_incident_issues_to_incident_type_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200723040950_migrate_incident_issues_to_incident_type.rb'
)
require
_migration!
RSpec
.
describe
MigrateIncidentIssuesToIncidentType
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/migrate_k8s_service_integration_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190517153211_migrate_k8s_service_integration.rb'
)
require
_migration!
RSpec
.
describe
MigrateK8sServiceIntegration
do
context
'template service'
do
...
...
spec/migrations/migrate_legacy_managed_clusters_to_unmanaged_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190606163724_migrate_legacy_managed_clusters_to_unmanaged.rb'
)
require
_migration!
RSpec
.
describe
MigrateLegacyManagedClustersToUnmanaged
do
let
(
:cluster_type
)
{
'project_type'
}
...
...
spec/migrations/migrate_managed_clusters_with_no_token_to_unmanaged_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190613231640_migrate_managed_clusters_with_no_token_to_unmanaged.rb'
)
require
_migration!
RSpec
.
describe
MigrateManagedClustersWithNoTokenToUnmanaged
do
let
(
:cluster_type
)
{
'project_type'
}
...
...
spec/migrations/migrate_merge_request_mentions_to_db_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200211155539_migrate_merge_request_mentions_to_db'
)
require
_migration!
RSpec
.
describe
MigrateMergeRequestMentionsToDb
,
:migration
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/migrate_ops_feature_flags_scopes_target_user_ids_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191118211629_migrate_ops_feature_flags_scopes_target_user_ids.rb'
)
require
_migration!
RSpec
.
describe
MigrateOpsFeatureFlagsScopesTargetUserIds
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/migrate_storage_migrator_sidekiq_queue_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190124200344_migrate_storage_migrator_sidekiq_queue.rb'
)
require
_migration!
RSpec
.
describe
MigrateStorageMigratorSidekiqQueue
,
:redis
do
include
Gitlab
::
Database
::
MigrationHelpers
...
...
spec/migrations/migrate_store_security_reports_sidekiq_queue_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200213220159_migrate_store_security_reports_sidekiq_queue.rb'
)
require
_migration!
RSpec
.
describe
MigrateStoreSecurityReportsSidekiqQueue
,
:redis
do
include
Gitlab
::
Database
::
MigrationHelpers
...
...
spec/migrations/migrate_sync_security_reports_to_report_approval_rules_sidekiq_queue_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200213220211_migrate_sync_security_reports_to_report_approval_rules_sidekiq_queue.rb'
)
require
_migration!
RSpec
.
describe
MigrateSyncSecurityReportsToReportApprovalRulesSidekiqQueue
,
:redis
do
include
Gitlab
::
Database
::
MigrationHelpers
...
...
spec/migrations/move_container_registry_enabled_to_project_features3_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210415155043_move_container_registry_enabled_to_project_features3.rb'
)
require
_migration!
RSpec
.
describe
MoveContainerRegistryEnabledToProjectFeatures3
,
:migration
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'gitlab'
,
path:
'gitlab-org'
)
}
...
...
spec/migrations/move_limits_from_plans_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20191030152934_move_limits_from_plans.rb'
)
require
_migration!
RSpec
.
describe
MoveLimitsFromPlans
do
let
(
:plans
)
{
table
(
:plans
)
}
...
...
spec/migrations/nullify_users_role_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191104142124_nullify_users_role.rb'
)
require
_migration!
RSpec
.
describe
NullifyUsersRole
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/populate_project_statistics_packages_size_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190418132125_populate_project_statistics_packages_size.rb'
)
require
_migration!
RSpec
.
describe
PopulateProjectStatisticsPackagesSize
do
let
(
:project_statistics
)
{
table
(
:project_statistics
)
}
...
...
spec/migrations/populate_rule_type_on_approval_merge_request_rules_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190520201748_populate_rule_type_on_approval_merge_request_rules.rb'
)
require
_migration!
RSpec
.
describe
PopulateRuleTypeOnApprovalMergeRequestRules
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/remove_additional_application_settings_rows_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200420162730_remove_additional_application_settings_rows.rb'
)
require
_migration!
RSpec
.
describe
RemoveAdditionalApplicationSettingsRows
do
let
(
:application_settings
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/remove_alerts_service_records_again_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210205214003_remove_alerts_service_records_again.rb'
)
require
_migration!
RSpec
.
describe
RemoveAlertsServiceRecordsAgain
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/remove_alerts_service_records_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210107194543_remove_alerts_service_records.rb'
)
require
_migration!
RSpec
.
describe
RemoveAlertsServiceRecords
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/remove_deprecated_jenkins_service_records_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200511130129_remove_deprecated_jenkins_service_records.rb'
)
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200511130130_ensure_deprecated_jenkins_service_records_removal.rb'
)
require_migration!
require_migration!
(
'ensure_deprecated_jenkins_service_records_removal'
)
RSpec
.
shared_examples
'remove DeprecatedJenkinsService records'
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/remove_duplicate_labels_from_groups_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200716234259_remove_duplicate_labels_from_group.rb
'
)
require
_migration!
(
'remove_duplicate_labels_from_group
'
)
RSpec
.
describe
RemoveDuplicateLabelsFromGroup
do
let
(
:labels_table
)
{
table
(
:labels
)
}
...
...
spec/migrations/remove_duplicate_labels_from_project_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200305082754_remove_duplicate_labels_from_project.rb'
)
require
_migration!
RSpec
.
describe
RemoveDuplicateLabelsFromProject
do
let
(
:labels_table
)
{
table
(
:labels
)
}
...
...
spec/migrations/remove_empty_github_service_templates_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191021101942_remove_empty_github_service_templates.rb'
)
require
_migration!
RSpec
.
describe
RemoveEmptyGithubServiceTemplates
do
subject
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/remove_gitlab_issue_tracker_service_records_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200623142159_remove_gitlab_issue_tracker_service_records.rb'
)
require
_migration!
RSpec
.
describe
RemoveGitlabIssueTrackerServiceRecords
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/remove_hipchat_service_records_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210420103955_remove_hipchat_service_records.rb'
)
require
_migration!
RSpec
.
describe
RemoveHipchatServiceRecords
do
let
(
:services
)
{
table
(
:services
)
}
...
...
spec/migrations/remove_orphan_service_hooks_spec.rb
View file @
ba216177
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require_migration!
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201119125730_add_web_hooks_service_foreign_key.rb
'
)
require
_migration!
(
'add_web_hooks_service_foreign_key
'
)
RSpec
.
describe
RemoveOrphanServiceHooks
,
schema:
20201203123201
do
let
(
:web_hooks
)
{
table
(
:web_hooks
)
}
...
...
spec/migrations/remove_orphaned_invited_members_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200424050250_remove_orphaned_invited_members.rb'
)
require
_migration!
RSpec
.
describe
RemoveOrphanedInvitedMembers
do
let
(
:members_table
)
{
table
(
:members
)
}
...
...
spec/migrations/remove_packages_deprecated_dependencies_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200210135504_remove_packages_deprecated_dependencies.rb'
)
require
_migration!
RSpec
.
describe
RemovePackagesDeprecatedDependencies
do
let
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/remove_records_without_group_from_webhooks_table_spec.rb
View file @
ba216177
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require_migration!
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20210325092215_add_not_valid_foreign_key_to_group_hooks.rb
'
)
require
_migration!
(
'add_not_valid_foreign_key_to_group_hooks
'
)
RSpec
.
describe
RemoveRecordsWithoutGroupFromWebhooksTable
,
schema:
20210330091751
do
let
(
:web_hooks
)
{
table
(
:web_hooks
)
}
...
...
spec/migrations/remove_security_dashboard_feature_flag_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200214034836_remove_security_dashboard_feature_flag.rb'
)
require
_migration!
RSpec
.
describe
RemoveSecurityDashboardFeatureFlag
do
let
(
:feature_gates
)
{
table
(
:feature_gates
)
}
...
...
spec/migrations/rename_security_dashboard_feature_flag_to_instance_security_dashboard_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200212014653_rename_security_dashboard_feature_flag_to_instance_security_dashboard.rb'
)
require
_migration!
RSpec
.
describe
RenameSecurityDashboardFeatureFlagToInstanceSecurityDashboard
do
let
(
:feature_gates
)
{
table
(
:feature_gates
)
}
...
...
spec/migrations/rename_sitemap_namespace_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201102112206_rename_sitemap_namespace.rb'
)
require
_migration!
RSpec
.
describe
RenameSitemapNamespace
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/rename_sitemap_root_namespaces_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201019094741_rename_sitemap_root_namespaces.rb'
)
require
_migration!
RSpec
.
describe
RenameSitemapRootNamespaces
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/reschedule_artifact_expiry_backfill_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210224150506_reschedule_artifact_expiry_backfill.rb'
)
require
_migration!
RSpec
.
describe
RescheduleArtifactExpiryBackfill
,
:migration
do
let
(
:migration_class
)
{
Gitlab
::
BackgroundMigration
::
BackfillArtifactExpiryDate
}
...
...
spec/migrations/reseed_merge_trains_enabled_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201112195322_reseed_merge_trains_enabled.rb'
)
require
_migration!
RSpec
.
describe
ReseedMergeTrainsEnabled
do
describe
'migrate'
do
...
...
spec/migrations/reseed_repository_storages_weighted_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200509203901_reseed_repository_storages_weighted.rb'
)
require
_migration!
RSpec
.
describe
ReseedRepositoryStoragesWeighted
do
let
(
:storages
)
{
{
"foo"
=>
{},
"baz"
=>
{}
}
}
...
...
spec/migrations/save_instance_administrators_group_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200210092405_save_instance_administrators_group_id'
)
require
_migration!
RSpec
.
describe
SaveInstanceAdministratorsGroupId
do
let
(
:application_settings_table
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/schedule_backfill_push_rules_id_in_projects_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200325162730_schedule_backfill_push_rules_id_in_projects.rb'
)
require
_migration!
RSpec
.
describe
ScheduleBackfillPushRulesIdInProjects
do
let
(
:push_rules
)
{
table
(
:push_rules
)
}
...
...
spec/migrations/schedule_blocked_by_links_replacement_second_try_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201102073808_schedule_blocked_by_links_replacement_second_try'
)
require
_migration!
RSpec
.
describe
ScheduleBlockedByLinksReplacementSecondTry
do
let
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'gitlab'
,
path:
'gitlab-org'
)
}
...
...
spec/migrations/schedule_disable_expiration_policies_linked_to_no_container_images_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210518074332_schedule_disable_expiration_policies_linked_to_no_container_images.rb'
)
require
_migration!
RSpec
.
describe
ScheduleDisableExpirationPoliciesLinkedToNoContainerImages
do
let_it_be
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/schedule_fill_valid_time_for_pages_domain_certificates_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190524073827_schedule_fill_valid_time_for_pages_domain_certificates.rb'
)
require
_migration!
RSpec
.
describe
ScheduleFillValidTimeForPagesDomainCertificates
do
let
(
:migration_class
)
{
described_class
::
MIGRATION
}
...
...
spec/migrations/schedule_link_lfs_objects_projects_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200310075115_schedule_link_lfs_objects_projects.rb'
)
require
_migration!
RSpec
.
describe
ScheduleLinkLfsObjectsProjects
,
:migration
,
:sidekiq
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/schedule_migrate_pages_to_zip_storage_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210302150310_schedule_migrate_pages_to_zip_storage.rb'
)
require
_migration!
RSpec
.
describe
ScheduleMigratePagesToZipStorage
,
:sidekiq_might_not_need_inline
,
schema:
20201231133921
do
let
(
:migration_class
)
{
described_class
::
MIGRATION
}
...
...
spec/migrations/schedule_migrate_security_scans_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200217225719_schedule_migrate_security_scans.rb'
)
require
_migration!
RSpec
.
describe
ScheduleMigrateSecurityScans
,
:sidekiq
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/schedule_migrate_u2f_webauthn_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200929114107_schedule_migrate_u2f_webauthn.rb'
)
require
_migration!
RSpec
.
describe
ScheduleMigrateU2fWebauthn
do
let
(
:migration_name
)
{
described_class
::
MIGRATION
}
...
...
spec/migrations/schedule_pages_metadata_migration_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191002031332_schedule_pages_metadata_migration'
)
require
_migration!
RSpec
.
describe
SchedulePagesMetadataMigration
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/schedule_populate_issue_email_participants_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201128210234_schedule_populate_issue_email_participants.rb'
)
require
_migration!
RSpec
.
describe
SchedulePopulateIssueEmailParticipants
do
let!
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'namespace'
,
path:
'namespace'
)
}
...
...
spec/migrations/schedule_populate_merge_request_assignees_table_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190322132835_schedule_populate_merge_request_assignees_table.rb'
)
require
_migration!
RSpec
.
describe
SchedulePopulateMergeRequestAssigneesTable
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/schedule_populate_personal_snippet_statistics_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200714075739_schedule_populate_personal_snippet_statistics.rb'
)
require
_migration!
RSpec
.
describe
SchedulePopulatePersonalSnippetStatistics
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_populate_project_snippet_statistics_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200709101408_schedule_populate_project_snippet_statistics.rb'
)
require
_migration!
RSpec
.
describe
SchedulePopulateProjectSnippetStatistics
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_populate_user_highest_roles_table_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200311130802_schedule_populate_user_highest_roles_table.rb'
)
require
_migration!
RSpec
.
describe
SchedulePopulateUserHighestRolesTable
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_recalculate_project_authorizations_second_run_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200204113224_schedule_recalculate_project_authorizations_second_run.rb'
)
require
_migration!
RSpec
.
describe
ScheduleRecalculateProjectAuthorizationsSecondRun
do
let
(
:users_table
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_recalculate_project_authorizations_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200204113223_schedule_recalculate_project_authorizations.rb'
)
require
_migration!
RSpec
.
describe
ScheduleRecalculateProjectAuthorizations
do
let
(
:users_table
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200204113225_schedule_recalculate_project_authorizations_third_run.rb'
)
require
_migration!
RSpec
.
describe
ScheduleRecalculateProjectAuthorizationsThirdRun
do
let
(
:users_table
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_sync_issuables_state_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190214112022_schedule_sync_issuables_state_id.rb'
)
require
_migration!
RSpec
.
describe
ScheduleSyncIssuablesStateId
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/schedule_sync_issuables_state_id_where_nil_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190506135400_schedule_sync_issuables_state_id_where_nil'
)
require
_migration!
RSpec
.
describe
ScheduleSyncIssuablesStateIdWhereNil
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/schedule_update_existing_subgroup_to_match_visibility_level_of_parent_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200110121314_schedule_update_existing_subgroup_to_match_visibility_level_of_parent.rb'
)
require
_migration!
RSpec
.
describe
ScheduleUpdateExistingSubgroupToMatchVisibilityLevelOfParent
do
include
MigrationHelpers
::
NamespacesHelpers
...
...
spec/migrations/schedule_update_existing_users_that_require_two_factor_auth_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20201030121314_schedule_update_existing_users_that_require_two_factor_auth.rb'
)
require
_migration!
RSpec
.
describe
ScheduleUpdateExistingUsersThatRequireTwoFactorAuth
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/schedule_update_timelogs_project_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20210427212034_schedule_update_timelogs_project_id.rb'
)
require
_migration!
RSpec
.
describe
ScheduleUpdateTimelogsProjectId
do
let!
(
:namespace
)
{
table
(
:namespaces
).
create!
(
name:
'namespace'
,
path:
'namespace'
)
}
...
...
spec/migrations/schedule_update_users_where_two_factor_auth_required_from_group_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20210519154058_schedule_update_users_where_two_factor_auth_required_from_group.rb'
)
require
_migration!
RSpec
.
describe
ScheduleUpdateUsersWhereTwoFactorAuthRequiredFromGroup
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/seed_merge_trains_enabled_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201026200736_seed_merge_trains_enabled.rb'
)
require
_migration!
RSpec
.
describe
SeedMergeTrainsEnabled
do
describe
'migrate'
do
...
...
spec/migrations/seed_repository_storages_weighted_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200526000407_seed_repository_storages_weighted.rb'
)
require
_migration!
RSpec
.
describe
SeedRepositoryStoragesWeighted
do
let
(
:storages
)
{
{
"foo"
=>
{},
"baz"
=>
{}
}
}
...
...
spec/migrations/services_remove_temporary_index_on_project_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200203104214_services_remove_temporary_index_on_project_id.rb'
)
require
_migration!
RSpec
.
describe
ServicesRemoveTemporaryIndexOnProjectId
do
let
(
:migration_instance
)
{
described_class
.
new
}
...
...
spec/migrations/set_issue_id_for_all_versions_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190715043954_set_issue_id_for_all_versions.rb'
)
require
_migration!
RSpec
.
describe
SetIssueIdForAllVersions
do
let
(
:projects
)
{
table
(
:projects
)
}
...
...
spec/migrations/set_job_waiter_ttl_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200930144340_set_job_waiter_ttl.rb'
)
require
_migration!
RSpec
.
describe
SetJobWaiterTtl
,
:redis
do
it
'sets TTLs where necessary'
do
...
...
spec/migrations/sync_issuables_state_id_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20190911251732_sync_issuables_state_id'
)
require
_migration!
RSpec
.
describe
SyncIssuablesStateId
do
let
(
:migration
)
{
described_class
.
new
}
...
...
spec/migrations/truncate_user_fullname_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20190325080727_truncate_user_fullname.rb'
)
require
_migration!
RSpec
.
describe
TruncateUserFullname
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/unconfirm_wrongfully_verified_emails_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200615111857_unconfirm_wrongfully_verified_emails.rb'
)
require
_migration!
RSpec
.
describe
UnconfirmWrongfullyVerifiedEmails
do
before
do
...
...
spec/migrations/update_application_setting_npm_package_requests_forwarding_default_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200221105436_update_application_setting_npm_package_requests_forwarding_default.rb'
)
require
_migration!
RSpec
.
describe
UpdateApplicationSettingNpmPackageRequestsForwardingDefault
do
# Create test data - pipeline and CI/CD jobs.
...
...
spec/migrations/update_fingerprint_sha256_within_keys_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200106071113_update_fingerprint_sha256_within_keys.rb'
)
require
_migration!
RSpec
.
describe
UpdateFingerprintSha256WithinKeys
do
let
(
:key_table
)
{
table
(
:keys
)
}
...
...
spec/migrations/update_historical_data_recorded_at_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201022094846_update_historical_data_recorded_at.rb'
)
require
_migration!
RSpec
.
describe
UpdateHistoricalDataRecordedAt
do
let
(
:historical_data_table
)
{
table
(
:historical_data
)
}
...
...
spec/migrations/update_internal_ids_last_value_for_epics_renamed_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20201208081429_update_internal_ids_last_value_for_epics_renamed.rb'
)
require
_migration!
RSpec
.
describe
UpdateInternalIdsLastValueForEpicsRenamed
,
:migration
,
schema:
20201124185639
do
let
(
:namespaces
)
{
table
(
:namespaces
)
}
...
...
spec/migrations/update_minimum_password_length_spec.rb
View file @
ba216177
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20191205084057_update_minimum_password_length'
)
require
_migration!
RSpec
.
describe
UpdateMinimumPasswordLength
do
let
(
:application_settings
)
{
table
(
:application_settings
)
}
...
...
spec/migrations/update_routes_for_lost_and_found_group_and_orphaned_projects_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20200602143020_update_routes_for_lost_and_found_group_and_orphaned_projects.rb'
)
require
_migration!
RSpec
.
describe
UpdateRoutesForLostAndFoundGroupAndOrphanedProjects
,
:migration
do
let
(
:users
)
{
table
(
:users
)
}
...
...
spec/migrations/update_timestamp_softwarelicensespolicy_spec.rb
View file @
ba216177
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20200116175538_update_timestamp_softwarelicensespolicy.rb'
)
require
_migration!
RSpec
.
describe
UpdateTimestampSoftwarelicensespolicy
do
let
(
:software_licenses_policy
)
{
table
(
:software_license_policies
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment