3838import static com .github .tomakehurst .wiremock .client .WireMock .matchingJsonPath ;
3939import static com .github .tomakehurst .wiremock .client .WireMock .post ;
4040import static com .github .tomakehurst .wiremock .client .WireMock .postRequestedFor ;
41+ import static com .github .tomakehurst .wiremock .client .WireMock .put ;
42+ import static com .github .tomakehurst .wiremock .client .WireMock .putRequestedFor ;
4143import static com .github .tomakehurst .wiremock .client .WireMock .urlPathEqualTo ;
4244import static com .github .tomakehurst .wiremock .core .WireMockConfiguration .options ;
4345import static org .assertj .core .api .Assertions .assertThat ;
@@ -154,7 +156,7 @@ class RegisterDataplane {
154156
155157 @ Test
156158 void shouldRegisterOnTheControlPlane () {
157- controlPlane .stubFor (post (anyUrl ()).willReturn (aResponse ().withStatus (200 )));
159+ controlPlane .stubFor (put (anyUrl ()).willReturn (aResponse ().withStatus (200 )));
158160
159161 var dataplane = Dataplane .newInstance ()
160162 .id ("dataplane-id" )
@@ -166,7 +168,7 @@ void shouldRegisterOnTheControlPlane() {
166168 var result = dataplane .registerOn (controlPlane .baseUrl ());
167169
168170 assertThat (result .succeeded ()).isTrue ();
169- controlPlane .verify (postRequestedFor (urlPathEqualTo ("/dataplanes/register " ))
171+ controlPlane .verify (putRequestedFor (urlPathEqualTo ("/dataplanes" ))
170172 .withRequestBody (and (
171173 matchingJsonPath ("endpoint" , equalTo ("http://localhost/dataplane" )),
172174 matchingJsonPath ("transferTypes[0]" , equalTo ("SupportedTransferType-PUSH" )),
0 commit comments