Commit 0a501f74 authored by Timo Furrer's avatar Timo Furrer

Test for missing `enable_ssl_verification` field

parent f4d7de21
...@@ -37,11 +37,13 @@ RSpec.describe API::SystemHooks do ...@@ -37,11 +37,13 @@ RSpec.describe API::SystemHooks do
expect(response).to have_gitlab_http_status(:ok) expect(response).to have_gitlab_http_status(:ok)
expect(response).to include_pagination_headers expect(response).to include_pagination_headers
expect(json_response).to be_an Array expect(json_response).to be_an Array
expect(json_response.first).not_to have_key("token")
expect(json_response.first['url']).to eq(hook.url) expect(json_response.first['url']).to eq(hook.url)
expect(json_response.first['push_events']).to be false expect(json_response.first['push_events']).to be false
expect(json_response.first['tag_push_events']).to be false expect(json_response.first['tag_push_events']).to be false
expect(json_response.first['merge_requests_events']).to be false expect(json_response.first['merge_requests_events']).to be false
expect(json_response.first['repository_update_events']).to be true expect(json_response.first['repository_update_events']).to be true
expect(json_response.first['enable_ssl_verification']).to be true
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment