File: 0001-Add-a-network-group-for-tests-needing-it.patch

package info (click to toggle)
php-async-aws-core 1.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 988 kB
  • sloc: php: 6,837; makefile: 32
file content (40 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Thu, 4 Feb 2021 18:59:38 -0400
Subject: Add a network group for tests needing it

---
 tests/Integration/StsClientTest.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/Integration/StsClientTest.php b/tests/Integration/StsClientTest.php
index 7cbef56..f8ea2dc 100644
--- a/tests/Integration/StsClientTest.php
+++ b/tests/Integration/StsClientTest.php
@@ -11,9 +11,11 @@ use AsyncAws\Core\Sts\StsClient;
 use AsyncAws\Core\Sts\ValueObject\PolicyDescriptorType;
 use AsyncAws\Core\Sts\ValueObject\Tag;
 use AsyncAws\Core\Test\TestCase;
+use PHPUnit\Framework\Attributes\Group;
 
 class StsClientTest extends TestCase
 {
+    #[Group('network')]
     public function testAssumeRole(): void
     {
         $client = $this->getClient();
@@ -44,6 +46,7 @@ class StsClientTest extends TestCase
         self::assertSame(6, $result->getPackedPolicySize());
     }
 
+    #[Group('network')]
     public function testAssumeRoleWithWebIdentity(): void
     {
         $client = $this->getClient();
@@ -69,6 +72,7 @@ class StsClientTest extends TestCase
         self::assertSame(6, $result->getPackedPolicySize());
     }
 
+    #[Group('network')]
     public function testGetCallerIdentity(): void
     {
         $client = $this->getClient();