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
path: root/spec/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-27 22:19:51 +0300
committerStan Hu <stanhu@gmail.com>2018-07-29 00:35:02 +0300
commit22d44ae9a699c418aba442cd99eec8f58d5fa006 (patch)
tree035cd854d43f390b3684e123be74482485e25296 /spec/lib
parenteb2bc7d99a99981150f32ac2469bff29eebbfa19 (diff)
Use /-/health instead of breaking /-/liveness
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/middleware/basic_health_check_spec.rb (renamed from spec/lib/gitlab/middleware/liveness_health_check_spec.rb)8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/middleware/liveness_health_check_spec.rb b/spec/lib/gitlab/middleware/basic_health_check_spec.rb
index 3dee13b7770..187d903a5e1 100644
--- a/spec/lib/gitlab/middleware/liveness_health_check_spec.rb
+++ b/spec/lib/gitlab/middleware/basic_health_check_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe Gitlab::Middleware::LivenessHealthCheck do
+describe Gitlab::Middleware::BasicHealthCheck do
let(:app) { double(:app) }
let(:middleware) { described_class.new(app) }
let(:env) { {} }
@@ -12,7 +12,7 @@ describe Gitlab::Middleware::LivenessHealthCheck do
end
it 'returns a 404' do
- env['PATH_INFO'] = described_class::LIVENESS_PATH
+ env['PATH_INFO'] = described_class::HEALTH_PATH
response = middleware.call(env)
@@ -34,7 +34,7 @@ describe Gitlab::Middleware::LivenessHealthCheck do
end
it 'returns 200 response when endpoint is hit' do
- env['PATH_INFO'] = described_class::LIVENESS_PATH
+ env['PATH_INFO'] = described_class::HEALTH_PATH
expect(app).not_to receive(:call)
@@ -42,7 +42,7 @@ describe Gitlab::Middleware::LivenessHealthCheck do
expect(response[0]).to eq(200)
expect(response[1]).to eq({ 'Content-Type' => 'text/plain' })
- expect(response[2]).to eq(['GitLab is alive'])
+ expect(response[2]).to eq(['GitLab OK'])
end
it 'forwards the call for other paths' do