mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix releasescripts tests
Update the tests to align them with the changes made to move from
https://repo.spring.io/release to Maven Central in b0e07314
.
See gh-33708
This commit is contained in:
parent
985094d33d
commit
809c220849
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2022 the original author or authors.
|
* Copyright 2012-2023 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -55,7 +55,7 @@ class SdkmanServiceTests {
|
|||||||
@Test
|
@Test
|
||||||
void publishWhenMakeDefaultTrue() {
|
void publishWhenMakeDefaultTrue() {
|
||||||
setupExpectation("https://vendors.sdkman.io/release",
|
setupExpectation("https://vendors.sdkman.io/release",
|
||||||
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"url\": \"https://repo.spring.io/simple/libs-release-local/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://repo1.maven.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\"}",
|
setupExpectation("https://vendors.sdkman.io/default", "{\"candidate\": \"springboot\", \"version\": \"1.2.3\"}",
|
||||||
HttpMethod.PUT);
|
HttpMethod.PUT);
|
||||||
setupExpectation("https://vendors.sdkman.io/announce/struct",
|
setupExpectation("https://vendors.sdkman.io/announce/struct",
|
||||||
@ -67,7 +67,7 @@ class SdkmanServiceTests {
|
|||||||
@Test
|
@Test
|
||||||
void publishWhenMakeDefaultFalse() {
|
void publishWhenMakeDefaultFalse() {
|
||||||
setupExpectation("https://vendors.sdkman.io/release",
|
setupExpectation("https://vendors.sdkman.io/release",
|
||||||
"{\"candidate\": \"springboot\", \"version\": \"1.2.3\", \"url\": \"https://repo.spring.io/simple/libs-release-local/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://repo1.maven.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",
|
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\"}");
|
"{\"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);
|
this.service.publish("1.2.3", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user