Skip to content

Commit 3e667a9

Browse files
committed
Use Gradle Nexus Publish Plugin
1 parent 95cc940 commit 3e667a9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

sonatype/src/test/kotlin/com/bakdata/gradle/SonatypePluginIT.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ internal class SonatypePluginIT {
141141
.willReturn(okJson("{}")))
142142
wiremock.stubFor(get(urlMatching("/staging/repository/$STAGING_ID"))
143143
.willReturn(okJson("""{"repositoryId": "$STAGING_ID", "type": "closed", "transitioning": false}""")))
144+
wiremock.stubFor(post(urlMatching("/staging/bulk/promote"))
145+
.inScenario("promoting").whenScenarioStateIs(STARTED)
146+
.willReturn(okJson("{}"))
147+
.willSetStateTo("promoting"))
148+
wiremock.stubFor(get(urlMatching("/staging/repository/$STAGING_ID"))
149+
.inScenario("promoting").whenScenarioStateIs("promoting")
150+
.willReturn(okJson("""{"repositoryId": "$STAGING_ID", "type": "released", "transitioning": false}""")))
144151
}
145152

146153
@Disabled

0 commit comments

Comments
 (0)