From 37b02aff96d220e4ee4aedf2f010481059c4e7a6 Mon Sep 17 00:00:00 2001 From: jbwheatley <19939655+jbwheatley@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:18:18 +0000 Subject: [PATCH] update to token auth in tests too --- shared/src/test/scala/pact4s/MockProviderServer.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/test/scala/pact4s/MockProviderServer.scala b/shared/src/test/scala/pact4s/MockProviderServer.scala index fe1c1996..29338ffd 100644 --- a/shared/src/test/scala/pact4s/MockProviderServer.scala +++ b/shared/src/test/scala/pact4s/MockProviderServer.scala @@ -32,7 +32,7 @@ import org.http4s.headers.`WWW-Authenticate` import org.http4s.implicits.http4sKleisliResponseSyntaxOptionT import org.http4s.server.Server import pact4s.circe.implicits._ -import pact4s.provider.Authentication.BasicAuth +import pact4s.provider.Authentication.TokenAuth import pact4s.provider.PactSource.{FileSource, PactBrokerWithSelectors} import pact4s.provider._ import sourcecode.{File => SCFile} @@ -181,7 +181,7 @@ class MockProviderServer(port: Int, hasFeatureX: Boolean = false)(implicit file: pactSource = PactBrokerWithSelectors( brokerUrl = "https://test.pactflow.io" ).pipe(b => if (pendingPactsEnabled) b.withPendingPactsEnabled else b.withPendingPactsDisabled) - .withAuth(BasicAuth("dXfltyFMgNOFZAxr8io9wJ37iUpY42M", "O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1")) + .withAuth(TokenAuth("129cCdfCWhMzcC9pFwb4bw")) .withConsumerVersionSelectors(consumerVersionSelector) ).withPort(port) .withOptionalVerificationSettings(verificationSettings)