Hi, I’m using v4.1.39 of the junit5 provider plugi...
# pact-jvm
l
Hi, I’m using v4.1.39 of the junit5 provider plugin to verify pacts with a pact broker with basic auth enabled. I’m trying to pass in the password to the
@PactBrokerAuth
annotation using a java system property, since the documentation says, “the
token
,
username
and
password
values also take Java system property expressions”. A quick google of java system property expressions led me to Spring expression language, so I tried
password = "#{systemProperties['pact.broker.password']}"
, and also
password = "System.getProperty(\"pact.broker.password\")"
(where I’ve defined
pact.broker.password
on the command line), but in both cases the string was interpreted literally. I’m not too familiar with spring, or java for that matter, would you be able to help me get the syntax right? Thanks
u
Use the form
password = "${pact.broker.password}"
l
excellent thank you