|
|
@ -57,7 +57,8 @@ class SonatypeServiceTests {
|
|
|
|
void artifactsPublishedWhenPublishedShouldReturnTrue() {
|
|
|
|
void artifactsPublishedWhenPublishedShouldReturnTrue() {
|
|
|
|
this.server.expect(requestTo(String.format(
|
|
|
|
this.server.expect(requestTo(String.format(
|
|
|
|
"https://oss.sonatype.org/service/local/repositories/releases/content/org/springframework/boot/spring-boot/%s/spring-boot-%s.jar.sha1",
|
|
|
|
"https://oss.sonatype.org/service/local/repositories/releases/content/org/springframework/boot/spring-boot/%s/spring-boot-%s.jar.sha1",
|
|
|
|
"1.1.0.RELEASE", "1.1.0.RELEASE"))).andExpect(method(HttpMethod.GET)).andRespond(withSuccess());
|
|
|
|
"1.1.0.RELEASE", "1.1.0.RELEASE"))).andExpect(method(HttpMethod.GET))
|
|
|
|
|
|
|
|
.andRespond(withSuccess().body("ce8d8b6838ecceb68962b975b18682f4237ccf71".getBytes()));
|
|
|
|
boolean published = this.service.artifactsPublished(getReleaseInfo());
|
|
|
|
boolean published = this.service.artifactsPublished(getReleaseInfo());
|
|
|
|
assertThat(published).isTrue();
|
|
|
|
assertThat(published).isTrue();
|
|
|
|
this.server.verify();
|
|
|
|
this.server.verify();
|
|
|
|