Skip to content

Commit

Permalink
Use Gradle Nexus Publish Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Feb 26, 2024
1 parent 4c791fc commit 95cc940
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal class SonatypePluginIT {

private fun mockNexusProtocol(wiremock: WireMockServer) {
wiremock.addMockServiceRequestListener { request, response ->
println("Got request ${request.method} ${request.url} with response ${response.status}")
println("Answered request ${request.method} ${request.url} with response ${response.status}")
}
wiremock.stubFor(get(urlMatching("/staging/profiles"))
.willReturn(okJson("""{"data": [{"id": $PROFILE_ID, "name": "${TEST_GROUP}"}]}""")))
Expand All @@ -140,10 +140,7 @@ internal class SonatypePluginIT {
wiremock.stubFor(post(urlMatching("/staging/bulk/close"))
.willReturn(okJson("{}")))
wiremock.stubFor(get(urlMatching("/staging/repository/$STAGING_ID"))
.willReturn(aResponse()
.withStatus(404)
.withHeader(HTTP.CONTENT_TYPE, "application/json")
.withBody("""{"repositoryId": "$STAGING_ID", "type": "closed", "transitioning": false}""")))
.willReturn(okJson("""{"repositoryId": "$STAGING_ID", "type": "closed", "transitioning": false}""")))
}

@Disabled
Expand Down

0 comments on commit 95cc940

Please sign in to comment.