Merge branch '3.0.x' into main
This commit is contained in:
@@ -18,6 +18,7 @@ package org.springframework.cloud.contract.verifier.wiremock;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
@@ -151,10 +152,12 @@ class DefaultWireMockStubPostProcessorTests {
|
||||
then(result.getRequest().getMethod().getName()).isEqualTo("GET");
|
||||
then(result.getResponse().getStatus()).isEqualTo(200);
|
||||
then(result.getResponse().getBody()).isEqualTo("pong");
|
||||
then(result.getPostServeActions()).extracting("name").contains("webhook");
|
||||
PostServeActionDefinition webhook = result.getPostServeActions().stream()
|
||||
.filter(def -> "webhook".equals(def.getName())).findFirst().get();
|
||||
then(webhook.getParameters().get("method")).isEqualTo("POST");
|
||||
then(result.getPostServeActions().stream().map(a -> a.getName()).collect(Collectors.toList()))
|
||||
.contains("webhook");
|
||||
PostServeActionDefinition definition = result.getPostServeActions().stream()
|
||||
.filter(a -> a.getName().equals("webhook")).findFirst()
|
||||
.orElseThrow(() -> new AssertionError("No webhook action found"));
|
||||
then(definition.getParameters().getString("method")).isEqualTo("POST");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
wiremockVersion=2.30.0
|
||||
wiremockVersion=2.30.1
|
||||
jsonAssertVersion=0.6.1
|
||||
verifierVersion=3.1.0-SNAPSHOT
|
||||
groovyVersion=2.4.17
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
wiremockVersion=2.30.0
|
||||
wiremockVersion=2.30.1
|
||||
jsonAssertVersion=0.6.1
|
||||
verifierVersion=3.1.0-SNAPSHOT
|
||||
bootVersion=2.6.0-M1
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
wiremockVersion=2.30.0
|
||||
wiremockVersion=2.30.1
|
||||
jsonAssertVersion=0.6.1
|
||||
verifierVersion=3.1.0-SNAPSHOT
|
||||
bootVersion=2.6.0-M1
|
||||
|
||||
Reference in New Issue
Block a user