Commit 123f9c4a2940e4f85beceffcaabfad67eddbd692
1 parent
d86effa3
Exists in
colab
and in
4 other branches
Fix request headers for push notify acceptance
Signed off by: Eduardo Araújo <duduktamg@hotmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
features/step_definitions/repository_steps.rb
| ... | ... | @@ -162,11 +162,11 @@ When(/^I get the Creation Date information as "(.*?)"$/) do |variable| |
| 162 | 162 | end |
| 163 | 163 | |
| 164 | 164 | When(/^I push some commits to the repository$/) do |
| 165 | - post repository_notify_push_path(id: @repository.id) | |
| 165 | + post repository_notify_push_path(id: @repository.id), {}, {'HTTP_X_GITLAB_EVENT' => 'Push Hook'} | |
| 166 | 166 | end |
| 167 | 167 | |
| 168 | 168 | When(/^I push some commits to an invalid repository$/) do |
| 169 | - @response = post repository_notify_push_path(id: 0) | |
| 169 | + @response = post repository_notify_push_path(id: 0), {}, {'HTTP_X_GITLAB_EVENT' => 'Push Hook'} | |
| 170 | 170 | end |
| 171 | 171 | |
| 172 | 172 | Then(/^I should see the sample metric's name$/) do | ... | ... |