Skip to content

Commit

Permalink
chore: Upgrade plugin driver to 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
uglyog committed Aug 14, 2022
1 parent 9a1c9c3 commit e4d37b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4d37b9

Please sign in to comment.