From 11cafc8c562cf3d7d207aa7f511d99c0aca7995b Mon Sep 17 00:00:00 2001 From: jbwheatley <19939655+jbwheatley@users.noreply.github.com> Date: Sun, 20 Nov 2022 18:38:02 +0000 Subject: [PATCH] update pact-jvm to 4.4.0 --- example/resources/pacts/munit-consumer-munit-provider.json | 2 +- .../resources/pacts/scalatest-consumer-scalatest-provider.json | 2 +- models/src/main/scala/pact4s/provider/ProviderInfoBuilder.scala | 2 +- project/Dependencies.scala | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/resources/pacts/munit-consumer-munit-provider.json b/example/resources/pacts/munit-consumer-munit-provider.json index 64a22b53..bea73b81 100644 --- a/example/resources/pacts/munit-consumer-munit-provider.json +++ b/example/resources/pacts/munit-consumer-munit-provider.json @@ -111,7 +111,7 @@ ], "metadata": { "pact-jvm": { - "version": "4.3.15" + "version": "4.4.0" }, "pactSpecification": { "version": "3.0.0" diff --git a/example/resources/pacts/scalatest-consumer-scalatest-provider.json b/example/resources/pacts/scalatest-consumer-scalatest-provider.json index 6842d23b..15b9e696 100644 --- a/example/resources/pacts/scalatest-consumer-scalatest-provider.json +++ b/example/resources/pacts/scalatest-consumer-scalatest-provider.json @@ -111,7 +111,7 @@ ], "metadata": { "pact-jvm": { - "version": "4.3.15" + "version": "4.4.0" }, "pactSpecification": { "version": "3.0.0" diff --git a/models/src/main/scala/pact4s/provider/ProviderInfoBuilder.scala b/models/src/main/scala/pact4s/provider/ProviderInfoBuilder.scala index 2237c309..10815d50 100644 --- a/models/src/main/scala/pact4s/provider/ProviderInfoBuilder.scala +++ b/models/src/main/scala/pact4s/provider/ProviderInfoBuilder.scala @@ -199,7 +199,7 @@ final class ProviderInfoBuilder private ( case Right(_) => val pactJvmAuth: Auth = p.auth match { case None => Auth.None.INSTANCE - case Some(TokenAuth(token)) => new Auth.BearerAuthentication(token) + case Some(TokenAuth(token)) => new Auth.BearerAuthentication(token, Auth.DEFAULT_AUTH_HEADER) case Some(BasicAuth(user, pass)) => new Auth.BasicAuthentication(user, pass) } val brokerOptions: PactBrokerOptions = new PactBrokerOptions( diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 3e7eba7c..cafaf9bc 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -4,7 +4,7 @@ object Dependencies { val mockito = "4.9.0" - val pactJvm = "4.3.16" + val pactJvm = "4.4.0" val http4s = "1.0.0-M30"