From 2093960f367245c4fba31ed9c7d5c7104d78f0f3 Mon Sep 17 00:00:00 2001 From: holomekc Date: Sun, 17 Sep 2023 17:31:19 +0200 Subject: [PATCH] Fix issue that scenarios are not updated properly. Prepare release note for release. --- RELEASE-NOTES.md | 3 ++- .../tomakehurst/wiremock/stubbing/AbstractScenarios.java | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 7f22477032..b99a1e776f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1 +1,2 @@ -Merge upstream wiremock version 2.35.1 +Update to wiremock 3.0.4 + diff --git a/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java b/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java index 666e894adb..be3dcd72b7 100644 --- a/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java +++ b/src/main/java/com/github/tomakehurst/wiremock/stubbing/AbstractScenarios.java @@ -19,6 +19,8 @@ import static java.util.stream.Collectors.toList; import com.github.tomakehurst.wiremock.admin.NotFoundException; +import com.github.tomakehurst.wiremock.jetty.websockets.Message; +import com.github.tomakehurst.wiremock.jetty.websockets.WebSocketEndpoint; import com.github.tomakehurst.wiremock.store.ScenariosStore; import java.util.List; @@ -106,6 +108,7 @@ public void onStubServed(StubMapping mapping) { && (mapping.getRequiredScenarioState() == null || scenario.getState().equals(mapping.getRequiredScenarioState()))) { Scenario newScenario = scenario.setState(mapping.getNewScenarioState()); + WebSocketEndpoint.broadcast(Message.SCENARIO); store.put(scenarioName, newScenario); } }