Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ core Public

Commit c56fdf6

Browse files
GrahamCampbellstof
andauthored
Upgrade localstack (#1604)
* Upgrade localstack * Fix the dynamodb integration tests The new localstack version emulates AWS better, returning a consumed capacity only when the request asks for it. * Update the Sts integration test for the new localstack return values * Update the route53 expectation for the listing endpoint In the new localstack version, creating a zone automatically creates the NS and SOA records for that zone, emulating what actually happens on AWS. * Switch to 3.0.0 * Skip bad test for now --------- Co-authored-by: Christophe Coevoet <[email protected]>
1 parent c8a959d commit c56fdf6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ initialize: start-docker
44
start-docker:
55
docker start async_aws_localstack && exit 0 || \
66
docker start async_aws_localstack-sts && exit 0 || \
7-
docker pull localstack/localstack:0.14.2 && \
8-
docker run -d -p 4566:4566 -e SERVICES=sts -v /var/run/docker.sock:/var/run/docker.sock --name async_aws_localstack-sts localstack/localstack:0.14.2 && \
7+
docker pull localstack/localstack:3.0.0 && \
8+
docker run -d -p 4566:4566 -e SERVICES=sts -v /var/run/docker.sock:/var/run/docker.sock --name async_aws_localstack-sts localstack/localstack:3.0.0 && \
99
docker run --rm --link async_aws_localstack-sts:localstack martin/wait -c localstack:4566
1010

1111
test: initialize

tests/Integration/StsClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testAssumeRoleWithWebIdentity(): void
6565
self::assertNotNull($result->getCredentials());
6666
self::assertLessThanOrEqual(new \DateTime('+5min'), $result->getCredentials()->getExpiration());
6767
self::assertNotNull($result->getAssumedRoleUser());
68-
self::assertSame('arn:aws:sts::000000000000:assumed-role/FederatedWebIdentityRole/app1', $result->getAssumedRoleUser()->getArn());
68+
self::assertSame('arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1', $result->getAssumedRoleUser()->getArn());
6969
self::assertSame(6, $result->getPackedPolicySize());
7070
}
7171

@@ -78,7 +78,7 @@ public function testGetCallerIdentity(): void
7878

7979
self::assertNotNull($result->getUserId());
8080
self::assertStringContainsString('000000000000', $result->getAccount());
81-
self::assertStringContainsString('arn:aws:sts::000000000000:user/localstack', $result->getArn());
81+
self::assertStringContainsString('arn:aws:iam::000000000000:root', $result->getArn());
8282
}
8383

8484
public function testNonAwsRegionWithCustomEndpoint(): void

0 commit comments

Comments
 (0)