Skip to content

Commit 9c04c73

Browse files
authored
Test lambda (#234)
1 parent 0bc17ce commit 9c04c73

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tests/Integration/StsClientTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class StsClientTest extends TestCase
1515
{
1616
public function testAssumeRole(): void
1717
{
18-
self::markTestSkipped('No Docker image for STS');
19-
2018
$client = $this->getClient();
2119

2220
$input = new AssumeRoleRequest([
@@ -47,10 +45,6 @@ public function testAssumeRole(): void
4745

4846
public function testAssumeRoleWithWebIdentity(): void
4947
{
50-
self::markTestSkipped('No Docker image for STS');
51-
52-
self::markTestIncomplete('Not implemented');
53-
5448
$client = $this->getClient();
5549

5650
$input = new AssumeRoleWithWebIdentityRequest([
@@ -78,8 +72,6 @@ public function testAssumeRoleWithWebIdentity(): void
7872

7973
public function testGetCallerIdentity(): void
8074
{
81-
self::markTestSkipped('No Docker image for STS');
82-
8375
$client = $this->getClient();
8476

8577
$input = new GetCallerIdentityRequest([
@@ -96,6 +88,8 @@ public function testGetCallerIdentity(): void
9688

9789
private function getClient(): StsClient
9890
{
91+
self::markTestSkipped('No Docker image for STS');
92+
9993
return new StsClient([
10094
'endpoint' => 'http://localhost',
10195
], new NullProvider());

tests/Unit/Result/AssumeRoleWithWebIdentityResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AssumeRoleWithWebIdentityResponseTest extends TestCase
1111
{
1212
public function testAssumeRoleWithWebIdentityResponse(): void
1313
{
14-
// see https://docs.aws.amazon.com/SERVICE/latest/APIReference/API_METHOD.html
14+
// see https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html
1515
$response = new SimpleMockedResponse('<AssumeRoleWithWebIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
1616
<AssumeRoleWithWebIdentityResult>
1717
<SubjectFromWebIdentityToken>amzn1.account.AF6RHO7KZU5XRVQJGXK6HB56KR2A</SubjectFromWebIdentityToken>

0 commit comments

Comments
 (0)