Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-14 18:09:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-14 18:09:04 +0300
commita3dfd311f4660fc81e929058abd6e136ac884ed3 (patch)
tree4d7087cac6e2ca89df3adea98f92b9eddffa7790 /spec/tasks
parent7f408a3831590a1f98a1e1a04b63acba8937e36b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/usage_data_rake_spec.rb16
1 files changed, 3 insertions, 13 deletions
diff --git a/spec/tasks/gitlab/usage_data_rake_spec.rb b/spec/tasks/gitlab/usage_data_rake_spec.rb
index 0ee6fbef53f..84269568b8b 100644
--- a/spec/tasks/gitlab/usage_data_rake_spec.rb
+++ b/spec/tasks/gitlab/usage_data_rake_spec.rb
@@ -3,22 +3,12 @@
require 'rake_helper'
RSpec.describe 'gitlab:usage data take tasks' do
+ include UsageDataHelpers
+
before do
Rake.application.rake_require 'tasks/gitlab/usage_data'
# stub prometheus external http calls https://gitlab.com/gitlab-org/gitlab/-/issues/245277
- stub_request(:get, %r{^http[s]?://::1:9090/-/ready})
- .to_return(
- status: 200,
- body: [{}].to_json,
- headers: { 'Content-Type' => 'application/json' }
- )
-
- stub_request(:get, %r{^http[s]?://::1:9090/api/v1/query\?query=.*})
- .to_return(
- status: 200,
- body: [{}].to_json,
- headers: { 'Content-Type' => 'application/json' }
- )
+ stub_prometheus_queries
end
describe 'dump_sql_in_yaml' do