Skip to content

Commit 7e5891e

Browse files
committed
random name for ddb table
1 parent e368493 commit 7e5891e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/IdempotencyE2ET.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import java.time.Year;
1212
import java.util.Collections;
13+
import java.util.UUID;
1314
import java.util.concurrent.TimeUnit;
1415

1516
import 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
}

0 commit comments

Comments
 (0)