Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpomykala committed Sep 7, 2023
1 parent 97a9baa commit c80b4fb
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,8 @@ void publishProduction() throws IOException
);
mockServer.when(request()
.withMethod("POST")
.withPath("/api/v1/translations/deploy")
.withHeader("X-SimpleLocalize-Token", "my-api-key")
.withQueryStringParameter("sourceEnvironment", "_latest")
.withQueryStringParameter("targetEnvironment", "_production")
,
.withPath("/api/v2/environments/_production/publish")
.withHeader("X-SimpleLocalize-Token", "my-api-key"),
Times.exactly(1))
.respond(
response()
Expand All @@ -283,7 +280,7 @@ void publishProduction() throws IOException
);


sut.publish("my-api-key", "production", MOCK_SERVER_BASE_URL);
sut.publish("my-api-key", "_production", MOCK_SERVER_BASE_URL);
}

@Test
Expand Down

0 comments on commit c80b4fb

Please sign in to comment.