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
c905130e
Commit
c905130e
authored
Jan 16, 2019
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore existing offenses of FactoriesInMigration
parent
7c801333
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
1 deletion
+19
-1
spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb
...ackground_migration/backfill_project_repositories_spec.rb
+2
-0
spec/lib/gitlab/background_migration/create_gpg_key_subkeys_from_gpg_keys_spec.rb
...nd_migration/create_gpg_key_subkeys_from_gpg_keys_spec.rb
+1
-1
spec/lib/gitlab/background_migration/delete_diff_files_spec.rb
...lib/gitlab/background_migration/delete_diff_files_spec.rb
+2
-0
spec/lib/gitlab/background_migration/deserialize_merge_request_diffs_and_commits_spec.rb
...ation/deserialize_merge_request_diffs_and_commits_spec.rb
+2
-0
spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
...d_migration/migrate_events_to_push_event_payloads_spec.rb
+2
-0
spec/lib/gitlab/background_migration/migrate_system_uploads_to_new_folder_spec.rb
...nd_migration/migrate_system_uploads_to_new_folder_spec.rb
+2
-0
spec/lib/gitlab/background_migration/move_personal_snippet_files_spec.rb
.../background_migration/move_personal_snippet_files_spec.rb
+2
-0
spec/lib/gitlab/background_migration/populate_cluster_kubernetes_namespace_table_spec.rb
...ation/populate_cluster_kubernetes_namespace_table_spec.rb
+2
-0
spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb
...round_migration/populate_external_pipeline_source_spec.rb
+2
-0
spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb
...n/populate_merge_request_metrics_with_events_data_spec.rb
+2
-0
No files found.
spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb
View file @
c905130e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
BackfillProjectRepositories
do
describe
Gitlab
::
BackgroundMigration
::
BackfillProjectRepositories
do
let
(
:group
)
{
create
(
:group
,
name:
'foo'
,
path:
'foo'
)
}
let
(
:group
)
{
create
(
:group
,
name:
'foo'
,
path:
'foo'
)
}
...
@@ -102,3 +103,4 @@ describe Gitlab::BackgroundMigration::BackfillProjectRepositories do
...
@@ -102,3 +103,4 @@ describe Gitlab::BackgroundMigration::BackfillProjectRepositories do
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/create_gpg_key_subkeys_from_gpg_keys_spec.rb
View file @
c905130e
...
@@ -2,7 +2,7 @@ require 'spec_helper'
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
Gitlab
::
BackgroundMigration
::
CreateGpgKeySubkeysFromGpgKeys
,
:migration
,
schema:
20171005130944
do
describe
Gitlab
::
BackgroundMigration
::
CreateGpgKeySubkeysFromGpgKeys
,
:migration
,
schema:
20171005130944
do
context
'when GpgKey exists'
do
context
'when GpgKey exists'
do
let!
(
:gpg_key
)
{
create
(
:gpg_key
,
key:
GpgHelpers
::
User3
.
public_key
)
}
let!
(
:gpg_key
)
{
create
(
:gpg_key
,
key:
GpgHelpers
::
User3
.
public_key
)
}
# rubocop:disable RSpec/FactoriesInMigrationSpecs
before
do
before
do
GpgKeySubkey
.
destroy_all
# rubocop: disable DestroyAll
GpgKeySubkey
.
destroy_all
# rubocop: disable DestroyAll
...
...
spec/lib/gitlab/background_migration/delete_diff_files_spec.rb
View file @
c905130e
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
DeleteDiffFiles
,
:migration
,
:sidekiq
,
schema:
20180619121030
do
describe
Gitlab
::
BackgroundMigration
::
DeleteDiffFiles
,
:migration
,
:sidekiq
,
schema:
20180619121030
do
describe
'#perform'
do
describe
'#perform'
do
context
'when diff files can be deleted'
do
context
'when diff files can be deleted'
do
...
@@ -71,3 +72,4 @@ describe Gitlab::BackgroundMigration::DeleteDiffFiles, :migration, :sidekiq, sch
...
@@ -71,3 +72,4 @@ describe Gitlab::BackgroundMigration::DeleteDiffFiles, :migration, :sidekiq, sch
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/deserialize_merge_request_diffs_and_commits_spec.rb
View file @
c905130e
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
DeserializeMergeRequestDiffsAndCommits
,
:migration
,
schema:
20171114162227
do
describe
Gitlab
::
BackgroundMigration
::
DeserializeMergeRequestDiffsAndCommits
,
:migration
,
schema:
20171114162227
do
include
GitHelpers
include
GitHelpers
...
@@ -324,3 +325,4 @@ describe Gitlab::BackgroundMigration::DeserializeMergeRequestDiffsAndCommits, :m
...
@@ -324,3 +325,4 @@ describe Gitlab::BackgroundMigration::DeserializeMergeRequestDiffsAndCommits, :m
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
View file @
c905130e
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
MigrateEventsToPushEventPayloads
::
Event
,
:migration
,
schema:
20170608152748
do
describe
Gitlab
::
BackgroundMigration
::
MigrateEventsToPushEventPayloads
::
Event
,
:migration
,
schema:
20170608152748
do
describe
'#commit_title'
do
describe
'#commit_title'
do
it
'returns nil when there are no commits'
do
it
'returns nil when there are no commits'
do
...
@@ -429,3 +430,4 @@ describe Gitlab::BackgroundMigration::MigrateEventsToPushEventPayloads, :migrati
...
@@ -429,3 +430,4 @@ describe Gitlab::BackgroundMigration::MigrateEventsToPushEventPayloads, :migrati
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/migrate_system_uploads_to_new_folder_spec.rb
View file @
c905130e
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
MigrateSystemUploadsToNewFolder
,
:delete
do
describe
Gitlab
::
BackgroundMigration
::
MigrateSystemUploadsToNewFolder
,
:delete
do
let
(
:migration
)
{
described_class
.
new
}
let
(
:migration
)
{
described_class
.
new
}
...
@@ -17,3 +18,4 @@ describe Gitlab::BackgroundMigration::MigrateSystemUploadsToNewFolder, :delete d
...
@@ -17,3 +18,4 @@ describe Gitlab::BackgroundMigration::MigrateSystemUploadsToNewFolder, :delete d
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/move_personal_snippet_files_spec.rb
View file @
c905130e
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
MovePersonalSnippetFiles
do
describe
Gitlab
::
BackgroundMigration
::
MovePersonalSnippetFiles
do
let
(
:test_dir
)
{
File
.
join
(
Rails
.
root
,
'tmp'
,
'tests'
,
'move_snippet_files_test'
)
}
let
(
:test_dir
)
{
File
.
join
(
Rails
.
root
,
'tmp'
,
'tests'
,
'move_snippet_files_test'
)
}
let
(
:old_uploads_dir
)
{
File
.
join
(
'uploads'
,
'system'
,
'personal_snippet'
)
}
let
(
:old_uploads_dir
)
{
File
.
join
(
'uploads'
,
'system'
,
'personal_snippet'
)
}
...
@@ -70,3 +71,4 @@ describe Gitlab::BackgroundMigration::MovePersonalSnippetFiles do
...
@@ -70,3 +71,4 @@ describe Gitlab::BackgroundMigration::MovePersonalSnippetFiles do
"[an upload](
#{
path
}
)"
"[an upload](
#{
path
}
)"
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/populate_cluster_kubernetes_namespace_table_spec.rb
View file @
c905130e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
PopulateClusterKubernetesNamespaceTable
,
:migration
,
schema:
20181022173835
do
describe
Gitlab
::
BackgroundMigration
::
PopulateClusterKubernetesNamespaceTable
,
:migration
,
schema:
20181022173835
do
let
(
:migration
)
{
described_class
.
new
}
let
(
:migration
)
{
described_class
.
new
}
let
(
:clusters
)
{
create_list
(
:cluster
,
10
,
:project
,
:provided_by_gcp
)
}
let
(
:clusters
)
{
create_list
(
:cluster
,
10
,
:project
,
:provided_by_gcp
)
}
...
@@ -95,3 +96,4 @@ describe Gitlab::BackgroundMigration::PopulateClusterKubernetesNamespaceTable, :
...
@@ -95,3 +96,4 @@ describe Gitlab::BackgroundMigration::PopulateClusterKubernetesNamespaceTable, :
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb
View file @
c905130e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
require
'spec_helper'
require
'spec_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
PopulateExternalPipelineSource
,
:migration
,
schema:
20180916011959
do
describe
Gitlab
::
BackgroundMigration
::
PopulateExternalPipelineSource
,
:migration
,
schema:
20180916011959
do
let
(
:migration
)
{
described_class
.
new
}
let
(
:migration
)
{
described_class
.
new
}
...
@@ -65,3 +66,4 @@ describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration
...
@@ -65,3 +66,4 @@ describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration
it_behaves_like
'no changes'
it_behaves_like
'no changes'
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb
View file @
c905130e
require
'rails_helper'
require
'rails_helper'
# rubocop:disable RSpec/FactoriesInMigrationSpecs
describe
Gitlab
::
BackgroundMigration
::
PopulateMergeRequestMetricsWithEventsData
,
:migration
,
schema:
20171128214150
do
describe
Gitlab
::
BackgroundMigration
::
PopulateMergeRequestMetricsWithEventsData
,
:migration
,
schema:
20171128214150
do
# commits_count attribute is added in a next migration
# commits_count attribute is added in a next migration
before
do
before
do
...
@@ -128,3 +129,4 @@ describe Gitlab::BackgroundMigration::PopulateMergeRequestMetricsWithEventsData,
...
@@ -128,3 +129,4 @@ describe Gitlab::BackgroundMigration::PopulateMergeRequestMetricsWithEventsData,
end
end
end
end
end
end
# rubocop:enable RSpec/FactoriesInMigrationSpecs
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