Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-org
gitlab-exporter
Commits
9903a52a
Commit
9903a52a
authored
Mar 01, 2017
by
Ben Kochie
Browse files
Add additional tests to spec
Test for all cases of "other" buckets.
parent
1bb6d220
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/database/ci_builds_spec.rb
View file @
9903a52a
...
...
@@ -81,6 +81,9 @@ describe GitLab::Monitor::Database do
expect
(
writer
.
string
).
to
match
(
/ci_pending_builds{namespace="foo",shared_runners="yes"} 30/
)
expect
(
writer
.
string
).
to
match
(
/ci_pending_builds{namespace="bar",shared_runners="yes"} 50/
)
expect
(
writer
.
string
).
to
match
(
/ci_pending_builds{namespace="",shared_runners="yes"} 3/
)
expect
(
writer
.
string
).
to
match
(
/ci_pending_builds{namespace="",shared_runners="no"} 0/
)
expect
(
writer
.
string
).
to
match
(
/ci_created_builds{namespace="",shared_runners="yes"} 0/
)
expect
(
writer
.
string
).
to
match
(
/ci_created_builds{namespace="",shared_runners="no"} 0/
)
expect
(
writer
.
string
).
to
match
(
/ci_builds_stale{status="running",when="last_hour"} 2/
)
expect
(
writer
.
string
).
to
match
(
/ci_running_builds{runner="1",shared_runner="yes",mirror="no",pending_delete="no",mirror_trigger_builds="no"} 15/
)
expect
(
writer
.
string
).
to
match
(
/ci_running_builds{runner="2",shared_runner="no",mirror="yes",pending_delete="no",mirror_trigger_builds="yes"} 5/
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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