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
1d99729b
Commit
1d99729b
authored
Aug 03, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change all `:empty_project` to `:project`
parent
7b95940b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
spec/lib/gitlab/geo/log_cursor/daemon_spec.rb
spec/lib/gitlab/geo/log_cursor/daemon_spec.rb
+1
-1
spec/models/geo_node_spec.rb
spec/models/geo_node_spec.rb
+3
-3
spec/models/geo_node_status_spec.rb
spec/models/geo_node_status_spec.rb
+4
-4
spec/workers/geo/file_download_dispatch_worker_spec.rb
spec/workers/geo/file_download_dispatch_worker_spec.rb
+2
-2
spec/workers/geo/repositories_clean_up_worker_spec.rb
spec/workers/geo/repositories_clean_up_worker_spec.rb
+2
-2
No files found.
spec/lib/gitlab/geo/log_cursor/daemon_spec.rb
View file @
1d99729b
...
...
@@ -112,7 +112,7 @@ describe Gitlab::Geo::LogCursor::Daemon do
let
(
:geo_node
)
{
create
(
:geo_node
,
:current
)
}
let
(
:group_1
)
{
create
(
:group
)
}
let
(
:group_2
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
group:
group_1
)
}
let
(
:project
)
{
create
(
:project
,
group:
group_1
)
}
let
(
:repository_updated_event
)
{
create
(
:geo_repository_updated_event
,
project:
project
)
}
let
(
:event_log
)
{
create
(
:geo_event_log
,
repository_updated_event:
repository_updated_event
)
}
let!
(
:event_log_state
)
{
create
(
:geo_event_log_state
,
event_id:
event_log
.
id
-
1
)
}
...
...
spec/models/geo_node_spec.rb
View file @
1d99729b
...
...
@@ -329,9 +329,9 @@ describe GeoNode, type: :model do
group_1
=
create
(
:group
)
group_2
=
create
(
:group
)
nested_group_1
=
create
(
:group
,
parent:
group_1
)
project_1
=
create
(
:
empty_
project
,
group:
group_1
)
project_2
=
create
(
:
empty_
project
,
group:
nested_group_1
)
project_3
=
create
(
:
empty_
project
,
group:
group_2
)
project_1
=
create
(
:project
,
group:
group_1
)
project_2
=
create
(
:project
,
group:
nested_group_1
)
project_3
=
create
(
:project
,
group:
group_2
)
node
.
update_attribute
(
:namespaces
,
[
group_1
,
group_2
,
nested_group_1
])
...
...
spec/models/geo_node_status_spec.rb
View file @
1d99729b
...
...
@@ -3,10 +3,10 @@ require 'spec_helper'
describe
GeoNodeStatus
do
let!
(
:geo_node
)
{
create
(
:geo_node
,
:current
)
}
let
(
:group
)
{
create
(
:group
)
}
let!
(
:project_1
)
{
create
(
:
empty_
project
,
group:
group
)
}
let!
(
:project_2
)
{
create
(
:
empty_
project
,
group:
group
)
}
let!
(
:project_3
)
{
create
(
:
empty_
project
)
}
let!
(
:project_4
)
{
create
(
:
empty_
project
)
}
let!
(
:project_1
)
{
create
(
:project
,
group:
group
)
}
let!
(
:project_2
)
{
create
(
:project
,
group:
group
)
}
let!
(
:project_3
)
{
create
(
:project
)
}
let!
(
:project_4
)
{
create
(
:project
)
}
subject
{
described_class
.
new
}
...
...
spec/workers/geo/file_download_dispatch_worker_spec.rb
View file @
1d99729b
...
...
@@ -77,8 +77,8 @@ describe Geo::FileDownloadDispatchWorker do
context
'when node has namespace restrictions'
do
let
(
:group_1
)
{
create
(
:group
)
}
let!
(
:project_1
)
{
create
(
:
empty_
project
,
group:
group_1
)
}
let!
(
:project_2
)
{
create
(
:
empty_
project
)
}
let!
(
:project_1
)
{
create
(
:project
,
group:
group_1
)
}
let!
(
:project_2
)
{
create
(
:project
)
}
before
do
allow
(
ProjectCacheWorker
).
to
receive
(
:perform_async
).
and_return
(
true
)
...
...
spec/workers/geo/repositories_clean_up_worker_spec.rb
View file @
1d99729b
...
...
@@ -3,8 +3,8 @@ require 'spec_helper'
describe
Geo
::
RepositoriesCleanUpWorker
do
let!
(
:geo_node
)
{
create
(
:geo_node
)
}
let
(
:group
)
{
create
(
:group
)
}
let!
(
:project_1
)
{
create
(
:
empty_
project
,
group:
group
)
}
let!
(
:project_2
)
{
create
(
:
empty_
project
)
}
let!
(
:project_1
)
{
create
(
:project
,
group:
group
)
}
let!
(
:project_2
)
{
create
(
:project
)
}
describe
'#perform'
do
before
do
...
...
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