Skip to content

Commit

Permalink
chore: add delete pacticipant to http test data builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 11, 2021
1 parent 6ab6e19 commit 517f5a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/pact_broker/test/http_test_data_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ def delete_integration(consumer:, provider:)
self
end

def delete_pacticipant(name)
puts "Deleting pacticipant #{name}"
@publish_pact_response = client.delete("/pacticipants/#{encode(name)}").tap { |response| check_for_error(response) }
separate
self
end

def generate_content(consumer_name, provider_name, content_id)
{
consumer: {
Expand Down

0 comments on commit 517f5a0

Please sign in to comment.