From e4d37b9a8c0f3a98268f0519a88639c289466990 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Mon, 15 Aug 2022 09:48:53 +1000 Subject: [PATCH] chore: Upgrade plugin driver to 0.1.5 --- gradle.properties | 2 +- .../broker/PactBrokerClientPactSpec.groovy | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gradle.properties b/gradle.properties index f7d3396b2f..a2182b2f03 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,4 +17,4 @@ junit5Version=5.8.2 bytebuddyVersion=1.12.7 kotlinLogging=2.0.10 kotlinResult=1.1.12 -pluginDriverVersion=0.1.4 +pluginDriverVersion=0.1.5 diff --git a/pact-publish/src/test/groovy/broker/PactBrokerClientPactSpec.groovy b/pact-publish/src/test/groovy/broker/PactBrokerClientPactSpec.groovy index 9ff8367f56..6e9e5792cd 100644 --- a/pact-publish/src/test/groovy/broker/PactBrokerClientPactSpec.groovy +++ b/pact-publish/src/test/groovy/broker/PactBrokerClientPactSpec.groovy @@ -3,6 +3,7 @@ package broker import au.com.dius.pact.consumer.PactVerificationResult import au.com.dius.pact.consumer.groovy.PactBuilder import au.com.dius.pact.core.pactbroker.ConsumerVersionSelector +import au.com.dius.pact.core.pactbroker.ConsumerVersionSelectors import au.com.dius.pact.core.pactbroker.Latest import au.com.dius.pact.core.pactbroker.PactBrokerClient import au.com.dius.pact.core.pactbroker.PactBrokerClientConfig @@ -915,9 +916,9 @@ class PactBrokerClientPactSpec extends Specification { when: def result = pactBroker.runTest { server, context -> - def consumerPacts = pactBrokerClient.fetchConsumersWithSelectors('Activity Service', [ - new ConsumerVersionSelector('test', true, null, null) - ], [], false, '') + def consumerPacts = pactBrokerClient.fetchConsumersWithSelectorsV2('Activity Service', [ + new ConsumerVersionSelectors.Selector('test', true, null, null ) + ], [], '', false, '') assert consumerPacts instanceof Ok assert consumerPacts.value.size == 2 assert !consumerPacts.value[0].pending @@ -1028,9 +1029,9 @@ class PactBrokerClientPactSpec extends Specification { when: def result = pactBroker.runTest { server, context -> - def consumerPacts = pactBrokerClient.fetchConsumersWithSelectors('Activity Service', [ - new ConsumerVersionSelector('test', true, null, null) - ], ['master'], true, '') + def consumerPacts = pactBrokerClient.fetchConsumersWithSelectorsV2('Activity Service', [ + new ConsumerVersionSelectors.Selector('test', true, null, null) + ], ['master'], '', true, '') assert consumerPacts instanceof Ok assert consumerPacts.value.size == 2 assert !consumerPacts.value[0].pending @@ -1152,9 +1153,9 @@ class PactBrokerClientPactSpec extends Specification { when: def result = pactBroker.runTest { server, context -> - def consumerPacts = pactBrokerClient.fetchConsumersWithSelectors('Activity Service', [ - new ConsumerVersionSelector('test', true, null, null) - ], ['master'], true, '2020-06-24') + def consumerPacts = pactBrokerClient.fetchConsumersWithSelectorsV2('Activity Service', [ + new ConsumerVersionSelectors.Selector('test', true, null, null) + ], ['master'], '', true, '2020-06-24') assert consumerPacts instanceof Ok assert consumerPacts.value.size == 2 assert !consumerPacts.value[0].wip