File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
core/imds/src/test/java/software/amazon/awssdk/imds/internal Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 34
34
import com .github .tomakehurst .wiremock .junit5 .WireMockTest ;
35
35
import java .net .URI ;
36
36
import java .time .Duration ;
37
+ import org .junit .jupiter .api .AfterEach ;
37
38
import org .junit .jupiter .api .BeforeEach ;
38
39
import org .junit .jupiter .api .Test ;
39
40
import software .amazon .awssdk .core .exception .SdkClientException ;
@@ -51,6 +52,11 @@ void init(WireMockRuntimeInfo wmRuntimeInfo) {
51
52
.endpoint (URI .create ("http://localhost:" + wmRuntimeInfo .getHttpPort ()));
52
53
}
53
54
55
+ @ AfterEach
56
+ void tearDown (WireMockRuntimeInfo wmRuntimeInfo ) {
57
+ wmRuntimeInfo .getWireMock ().resetMappings ();
58
+ }
59
+
54
60
@ Test
55
61
void get_tokenFailsError4xx_shouldNotRetry () {
56
62
stubFor (put (urlPathEqualTo ("/latest/api/token" )).willReturn (aResponse ().withStatus (400 ).withBody ("ERROR 400" )));
You can’t perform that action at this time.
0 commit comments