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
547a7795
Commit
547a7795
authored
Jan 10, 2022
by
Thong Kuah
Committed by
Kamil Trzciński
Jan 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some cross-db modifications in specs
parent
d994607e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
spec/graphql/resolvers/package_pipelines_resolver_spec.rb
spec/graphql/resolvers/package_pipelines_resolver_spec.rb
+3
-2
spec/requests/api/graphql/packages/package_spec.rb
spec/requests/api/graphql/packages/package_spec.rb
+3
-2
No files found.
spec/graphql/resolvers/package_pipelines_resolver_spec.rb
View file @
547a7795
...
@@ -15,8 +15,9 @@ RSpec.describe Resolvers::PackagePipelinesResolver do
...
@@ -15,8 +15,9 @@ RSpec.describe Resolvers::PackagePipelinesResolver do
subject
{
resolve
(
described_class
,
obj:
package
,
args:
args
,
ctx:
{
current_user:
user
})
}
subject
{
resolve
(
described_class
,
obj:
package
,
args:
args
,
ctx:
{
current_user:
user
})
}
before
do
before
do
package
.
pipelines
=
pipelines
pipelines
.
each
do
|
pipeline
|
package
.
save!
create
(
:package_build_info
,
package:
package
,
pipeline:
pipeline
)
end
end
end
it
{
is_expected
.
to
contain_exactly
(
*
pipelines
)
}
it
{
is_expected
.
to
contain_exactly
(
*
pipelines
)
}
...
...
spec/requests/api/graphql/packages/package_spec.rb
View file @
547a7795
...
@@ -145,8 +145,9 @@ RSpec.describe 'package details' do
...
@@ -145,8 +145,9 @@ RSpec.describe 'package details' do
let
(
:pipeline_gids
)
{
pipelines
.
sort_by
(
&
:id
).
map
(
&
:to_gid
).
map
(
&
:to_s
).
reverse
}
let
(
:pipeline_gids
)
{
pipelines
.
sort_by
(
&
:id
).
map
(
&
:to_gid
).
map
(
&
:to_s
).
reverse
}
before
do
before
do
composer_package
.
pipelines
=
pipelines
pipelines
.
each
do
|
pipeline
|
composer_package
.
save!
create
(
:package_build_info
,
package:
composer_package
,
pipeline:
pipeline
)
end
end
end
def
run_query
(
args
)
def
run_query
(
args
)
...
...
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