File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1717
1818namespace Google \Cloud \Samples \PubSub ;
1919
20+ use Google \Cloud \Core \Exception \ServiceException ;
2021use Google \Cloud \TestUtils \TestTrait ;
2122use Google \Cloud \TestUtils \ExecuteCommandTrait ;
2223use Google \Cloud \TestUtils \EventuallyConsistentTestTrait ;
@@ -32,10 +33,14 @@ class PubSubTest extends TestCase
3233 use EventuallyConsistentTestTrait;
3334
3435 private static $ eodSubscriptionId ;
36+ private static $ awsRoleArn = 'arn:aws:iam::111111111111:role/fake-role-name ' ;
37+ private static $ gcpServiceAccount ;
3538
3639 public static function setUpBeforeClass (): void
3740 {
3841 self ::$ eodSubscriptionId = 'test-eod-subscription- ' . rand ();
42+ $ json = file_get_contents (self ::requireEnv ('GOOGLE_APPLICATION_CREDENTIALS ' ));
43+ self ::$ gcpServiceAccount = json_decode ($ json , true )['client_email ' ];
3944 }
4045
4146 public function testSubscriptionPolicy ()
You can’t perform that action at this time.
0 commit comments