|
|
|
@ -55,7 +55,7 @@ class SdkmanServiceTests {
|
|
|
|
|
@Test
|
|
|
|
|
void publishWhenMakeDefaultTrue() {
|
|
|
|
|
setupExpectation("https://vendors.sdkman.io/release",
|
|
|
|
|
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"url\": \"https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-cli/1.2.3/spring-boot-cli-1.2.3-bin.zip\"}");
|
|
|
|
|
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"url\": \"https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/1.2.3/spring-boot-cli-1.2.3-bin.zip\"}");
|
|
|
|
|
setupExpectation("https://vendors.sdkman.io/default", "{\"candidate\": \"springboot\", \"version\": \"1.2.3\"}",
|
|
|
|
|
HttpMethod.PUT);
|
|
|
|
|
setupExpectation("https://vendors.sdkman.io/announce/struct",
|
|
|
|
@ -67,7 +67,7 @@ class SdkmanServiceTests {
|
|
|
|
|
@Test
|
|
|
|
|
void publishWhenMakeDefaultFalse() {
|
|
|
|
|
setupExpectation("https://vendors.sdkman.io/release",
|
|
|
|
|
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"url\": \"https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-cli/1.2.3/spring-boot-cli-1.2.3-bin.zip\"}");
|
|
|
|
|
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"url\": \"https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/1.2.3/spring-boot-cli-1.2.3-bin.zip\"}");
|
|
|
|
|
setupExpectation("https://vendors.sdkman.io/announce/struct",
|
|
|
|
|
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"hashtag\": \"springboot\", \"url\": \"https://github.com/spring-projects/spring-boot/releases/tag/v1.2.3\"}");
|
|
|
|
|
this.service.publish("1.2.3", false);
|
|
|
|
|