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
72ad8ea7
Commit
72ad8ea7
authored
Aug 23, 2021
by
Marius Bobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more tests for CI minutes cost factor
parent
31462b14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ee/spec/lib/gitlab/ci/minutes/cost_factor_spec.rb
ee/spec/lib/gitlab/ci/minutes/cost_factor_spec.rb
+10
-0
ee/spec/models/ee/ci/runner_spec.rb
ee/spec/models/ee/ci/runner_spec.rb
+2
-2
No files found.
ee/spec/lib/gitlab/ci/minutes/cost_factor_spec.rb
View file @
72ad8ea7
...
@@ -91,18 +91,23 @@ RSpec.describe Gitlab::Ci::Minutes::CostFactor do
...
@@ -91,18 +91,23 @@ RSpec.describe Gitlab::Ci::Minutes::CostFactor do
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
400
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
400
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
2
|
5
|
400
|
0
|
2
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
2
|
5
|
nil
|
400
|
2
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
2
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
0
|
400
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
0
|
400
|
0
|
0
end
end
with_them
do
with_them
do
...
@@ -143,18 +148,23 @@ RSpec.describe Gitlab::Ci::Minutes::CostFactor do
...
@@ -143,18 +148,23 @@ RSpec.describe Gitlab::Ci::Minutes::CostFactor do
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
400
|
0
|
0.008
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
0
|
5
|
400
|
0
|
0.008
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
2
|
5
|
400
|
0
|
2
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
2
|
5
|
nil
|
400
|
2
:instance
|
Gitlab
::
VisibilityLevel
::
PUBLIC
|
2
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
INTERNAL
|
0
|
0
|
400
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
400
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
nil
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
nil
|
0
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
0
|
400
|
0
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
5
|
400
|
0
|
5
:instance
|
Gitlab
::
VisibilityLevel
::
PRIVATE
|
0
|
0
|
400
|
0
|
0
end
end
with_them
do
with_them
do
...
...
ee/spec/models/ee/ci/runner_spec.rb
View file @
72ad8ea7
...
@@ -50,9 +50,9 @@ RSpec.describe EE::Ci::Runner do
...
@@ -50,9 +50,9 @@ RSpec.describe EE::Ci::Runner do
it
{
is_expected
.
to
eq
(
1.1
)
}
it
{
is_expected
.
to
eq
(
1.1
)
}
context
'with unlimited minutes'
do
context
'with unlimited minutes'
do
let
(
:shared_runners_minutes
)
{
40
0
}
let
(
:shared_runners_minutes
)
{
0
}
it
{
is_expected
.
to
eq
(
1.1
)
}
it
{
is_expected
.
to
eq
(
0
)
}
end
end
end
end
...
...
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