File tree Expand file tree Collapse file tree
powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111import java .time .Year ;
1212import java .util .Collections ;
13+ import java .util .UUID ;
1314import java .util .concurrent .TimeUnit ;
1415
1516import static software .amazon .lambda .powertools .testutils .lambda .LambdaInvoker .invokeFunction ;
@@ -21,11 +22,12 @@ public class IdempotencyE2ET {
2122 @ BeforeAll
2223 @ Timeout (value = 5 , unit = TimeUnit .MINUTES )
2324 public static void setup () {
25+ String random = UUID .randomUUID ().toString ().substring (0 , 6 );
2426 infrastructure = Infrastructure .builder ()
2527 .testName (IdempotencyE2ET .class .getSimpleName ())
2628 .pathToFunction ("idempotency" )
27- .idempotencyTable ("idempo" )
28- .environmentVariables (Collections .singletonMap ("IDEMPOTENCY_TABLE" , "idempo" ))
29+ .idempotencyTable ("idempo" + random )
30+ .environmentVariables (Collections .singletonMap ("IDEMPOTENCY_TABLE" , "idempo" + random ))
2931 .build ();
3032 functionName = infrastructure .deploy ();
3133 }
You can’t perform that action at this time.
0 commit comments