diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-27 12:36:55 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-27 15:54:29 +0200 |
commit | 0393a82d2628f7d4e75f317ea7013a9f4772e840 (patch) | |
tree | d942d554485780ed0d45ec8b65541d3c654e6677 /spec/requests | |
parent | 802ca4ff65f04f8741565288fbc1e89bb29db572 (diff) | |
download | gitlab-ce-0393a82d2628f7d4e75f317ea7013a9f4772e840.tar.gz |
Add instance statistics settings to API
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/settings_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/requests/api/settings_spec.rb b/spec/requests/api/settings_spec.rb index 57adc3ca7a6..3e0f47b84a1 100644 --- a/spec/requests/api/settings_spec.rb +++ b/spec/requests/api/settings_spec.rb @@ -25,6 +25,7 @@ describe API::Settings, 'Settings' do expect(json_response['ed25519_key_restriction']).to eq(0) expect(json_response['circuitbreaker_failure_count_threshold']).not_to be_nil expect(json_response['performance_bar_allowed_group_id']).to be_nil + expect(json_response['instance_statistics_visibility_private']).to be(false) expect(json_response).not_to have_key('performance_bar_allowed_group_path') expect(json_response).not_to have_key('performance_bar_enabled') end @@ -64,7 +65,8 @@ describe API::Settings, 'Settings' do circuitbreaker_check_interval: 2, enforce_terms: true, terms: 'Hello world!', - performance_bar_allowed_group_path: group.full_path + performance_bar_allowed_group_path: group.full_path, + instance_statistics_visibility_private: true expect(response).to have_gitlab_http_status(200) expect(json_response['default_projects_limit']).to eq(3) @@ -89,6 +91,7 @@ describe API::Settings, 'Settings' do expect(json_response['enforce_terms']).to be(true) expect(json_response['terms']).to eq('Hello world!') expect(json_response['performance_bar_allowed_group_id']).to eq(group.id) + expect(json_response['instance_statistics_visibility_private']).to be(true) end end |