Skip to content

Commit

Permalink
update to token auth in tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwheatley committed Jan 15, 2025
1 parent 5ccf2bc commit 37b02af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/test/scala/pact4s/MockProviderServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 37b02af

Please sign in to comment.