Skip to content

Commit d3ec0f2

Browse files
committed
chore(PubSub): Adding GCPServiceAccount and AWSRoleArn class variables to pubsubTest
1 parent 4a9b7a7 commit d3ec0f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pubsub/api/test/pubsubTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ class PubSubTest extends TestCase
3232
use EventuallyConsistentTestTrait;
3333

3434
private static $eodSubscriptionId;
35+
private static $awsRoleArn = 'arn:aws:iam::111111111111:role/fake-role-name';
36+
private static $gcpServiceAccount;
3537

3638
public static function setUpBeforeClass(): void
3739
{
3840
self::$eodSubscriptionId = 'test-eod-subscription-' . rand();
41+
$json = file_get_contents(self::requireEnv('GOOGLE_APPLICATION_CREDENTIALS'));
42+
self::$gcpServiceAccount = json_decode($json, true)['client_email'];
3943
}
4044

4145
public function testSubscriptionPolicy()

0 commit comments

Comments
 (0)