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
2d8e5dce
Commit
2d8e5dce
authored
Mar 24, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary http/s regex URL match
parent
79b6893e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/generators/gitlab/usage_metric_definition_generator_spec.rb
...nerators/gitlab/usage_metric_definition_generator_spec.rb
+2
-2
No files found.
spec/lib/generators/gitlab/usage_metric_definition_generator_spec.rb
View file @
2d8e5dce
...
...
@@ -12,14 +12,14 @@ RSpec.describe Gitlab::UsageMetricDefinitionGenerator do
before
do
stub_const
(
"
#{
described_class
}
::TOP_LEVEL_DIR"
,
temp_dir
)
# Stub Prometheus requests from Gitlab::Utils::UsageData
stub_request
(
:get
,
%r{^https?://::1:9090/-/ready}
)
stub_request
(
:get
,
'https://::1:9090/-/ready'
)
.
to_return
(
status:
200
,
body:
[{}].
to_json
,
headers:
{
'Content-Type'
=>
'application/json'
}
)
stub_request
(
:get
,
%r{^https
?
://::1:9090/api/v1/query
\?
query=.*}
)
stub_request
(
:get
,
%r{^https://::1:9090/api/v1/query
\?
query=.*}
)
.
to_return
(
status:
200
,
body:
[{}].
to_json
,
...
...
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