diff options
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/health_controller_spec.rb | 3 | ||||
-rw-r--r-- | spec/controllers/projects/settings/operations_controller_spec.rb | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/spec/controllers/health_controller_spec.rb b/spec/controllers/health_controller_spec.rb index ae05573af2e..dd6aac4b126 100644 --- a/spec/controllers/health_controller_spec.rb +++ b/spec/controllers/health_controller_spec.rb @@ -32,7 +32,8 @@ describe HealthController do end it 'responds with readiness checks data when a failure happens' do - allow(Gitlab::HealthChecks::Redis::RedisCheck).to receive(:readiness).and_return(Gitlab::HealthChecks::Result.new(false, "check error")) + allow(Gitlab::HealthChecks::Redis::RedisCheck).to receive(:readiness).and_return( + Gitlab::HealthChecks::Result.new('redis_check', false, "check error")) subject diff --git a/spec/controllers/projects/settings/operations_controller_spec.rb b/spec/controllers/projects/settings/operations_controller_spec.rb index 3a56511a8d6..0b34656e9e2 100644 --- a/spec/controllers/projects/settings/operations_controller_spec.rb +++ b/spec/controllers/projects/settings/operations_controller_spec.rb @@ -180,6 +180,21 @@ describe Projects::Settings::OperationsController do end end + context 'grafana integration' do + describe 'PATCH #update' do + let(:params) do + { + grafana_integration_attributes: { + grafana_url: 'https://grafana.gitlab.com', + token: 'eyJrIjoicDRlRTREdjhhOEZ5WjZPWXUzazJOSW0zZHJUejVOd3IiLCJuIjoiVGVzdCBLZXkiLCJpZCI6MX0=' + } + } + end + + it_behaves_like 'PATCHable' + end + end + private def project_params(project, params = {}) |