Skip to content
Snippets Groups Projects

feat: thread google chat messages (fixes #27823)

Merged Chetan Sarva requested to merge csarva/gitlab:feature/thread-google-chat-messages into master
All threads resolved!
@@ -44,7 +44,7 @@
webhook: webhook_url
)
WebMock.stub_request(:post, webhook_url)
WebMock.stub_request(:post, /#{webhook_url}.*/)
end
shared_examples "triggered #{integration_name} integration" do |branches_to_be_notified: nil|
@@ -56,7 +56,7 @@
result = subject.execute(sample_data)
expect(result).to be(true)
expect(WebMock).to have_requested(:post, webhook_url).once.with { |req|
expect(WebMock).to have_requested(:post, /#{webhook_url}.*/).once.with { |req|
json_body = Gitlab::Json.parse(req.body).with_indifferent_access
expect(json_body).to include(payload)
}
@@ -72,7 +72,7 @@
result = subject.execute(sample_data)
expect(result).to be_falsy
expect(WebMock).not_to have_requested(:post, webhook_url)
expect(WebMock).not_to have_requested(:post, /#{webhook_url}.*/)
end
end
Loading