Skip to content

Commit

Permalink
fix GCP pub/sub auth issue - remore redundant apikey param (akka#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyoll authored and raboof committed Nov 13, 2017
1 parent 35216f6 commit 72bf890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private trait HttpApi {
): Future[immutable.Seq[String]] = {
import materializer.executionContext

val url: Uri = s"$PubSubGoogleApisHost/v1/projects/$project/topics/$topic:publish?key=$apiKey"
val url: Uri = s"$PubSubGoogleApisHost/v1/projects/$project/topics/$topic:publish"

for {
request <- Marshal((HttpMethods.POST, url, request)).to[HttpRequest]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class HttpApiSpec extends FlatSpec with BeforeAndAfterAll with ScalaFutures with
mock.register(
WireMock
.post(
urlEqualTo(s"/v1/projects/${TestCredentials.projectId}/topics/topic1:publish?key=${TestCredentials.apiKey}")
urlEqualTo(s"/v1/projects/${TestCredentials.projectId}/topics/topic1:publish")
)
.withRequestBody(WireMock.equalTo(expectedPublishRequest))
.withHeader("Authorization", WireMock.equalTo("Bearer " + accessToken))
Expand Down

0 comments on commit 72bf890

Please sign in to comment.