Commit 9903a52a authored by Ben Kochie's avatar Ben Kochie
Browse files

Add additional tests to spec

Test for all cases of "other" buckets.
parent 1bb6d220
......@@ -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/)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment