Hi, we’re using pact version 4.0.7 for one of our ...
# pact-jvm
f
Hi, we’re using pact version 4.0.7 for one of our projects and when trying to authorise with the broker it complains about it. I think it may perhaps be something to do with some error on the syntax on how we’re trying to send these credentials over to pactflow? We have this:
Copy code
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.18.1</version>
    <configuration>
        <systemPropertyVariables>
            <pact.provider.version>${project.version}</pact.provider.version>
            <pact.verifier.publishResults>true</pact.verifier.publishResults>
            <pactbroker.host><http://my.pactflow.io|my.pactflow.io></pactbroker.host>
        </systemPropertyVariables>
    </configuration>
</plugin>
And then
Copy code
@RunWith(PactRunner.class)
@PactBroker(host = "<http://my.pact.dius.com.au|my.pact.dius.com.au>", consumers = {
        "${pact.filter.consumers:NONE}" }, tags = { "${pact.consumer.tags:latest}" }, authentication = @PactBrokerAuth(token = "myToken"))
@uglyog I see you helped someone before with a similar error but on gradle? https://github.com/pact-foundation/pact-jvm/issues/902#issuecomment-506959822 Thank you.
m
I’m not familiar with the
:NONE
or
:latest
syntax - is that a Pact thing or a spring or something else thing? is that a default value?
See if you can get a debug level output. If you see that your variables aren’t being substituted (i.e. you should see
$
or something else in the logs) then you know the problem is in the interpolation
f
Thanks Matt. I’m not sure how to get better logs out of this though? Would it be printed somewhere?
I tried this now
Copy code
@RunWith(PactRunner.class)
@PactBroker(host = "<http://my.pactflow.io|my.pactflow.io>", consumers =
        "myConsumer", authentication = @PactBrokerAuth(token = "myToken"))
(The address was still pointing to the australian domain.
However, I now see another error.
I think this may be to do with the other helper classes. I’ll investigate it.
message has been deleted
Or try to get them to update to a newer version. 😉