diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-27 12:19:51 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-28 14:35:02 -0700 |
commit | 22d44ae9a699c418aba442cd99eec8f58d5fa006 (patch) | |
tree | 035cd854d43f390b3684e123be74482485e25296 /spec/lib/gitlab/middleware | |
parent | eb2bc7d99a99981150f32ac2469bff29eebbfa19 (diff) | |
download | gitlab-ce-22d44ae9a699c418aba442cd99eec8f58d5fa006.tar.gz |
Use /-/health instead of breaking /-/liveness
Diffstat (limited to 'spec/lib/gitlab/middleware')
-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 |