Skip to content

Commit

Permalink
chore: fix test after cherry pick commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Nov 12, 2021
1 parent 2257dfd commit 577fd1e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,19 +654,18 @@ class PactBrokerClientSpec extends Specification {
System.setProperty('pactbroker.consumerversionselectors.rawjson', '[{"mainBranch":true}]')
def halClient = Mock(IHalClient)
halClient.navigate() >> halClient
halClient.linkUrl("pb:provider-pacts-for-verification") >> "pb:provider-pacts-for-verification"
halClient.linkUrl('pb:provider-pacts-for-verification') >> 'pb:provider-pacts-for-verification'
PactBrokerClient client = Spy(PactBrokerClient, constructorArgs: ['baseUrl']) {
newHalClient() >> halClient
}

def expectedJson = "{\"consumerVersionSelectors\":[{\"mainBranch\":true}],\"includePendingStatus\":false}"
def expectedJson = '{"consumerVersionSelectors":[{"mainBranch":true}],"includePendingStatus":false}'

when:
def consumers = client.fetchConsumersWithSelectors('provider',
[], [], false, '')
client.fetchConsumersWithSelectors('provider', [], [], false, '')

then:
1 * halClient.postJson("pb:provider-pacts-for-verification", _, expectedJson)
1 * halClient.postJson('pb:provider-pacts-for-verification', _, expectedJson)
}

@Unroll
Expand Down

0 comments on commit 577fd1e

Please sign in to comment.