File tree Expand file tree Collapse file tree 9 files changed +36
-9
lines changed
appengine/standard_python3/bundled-services Expand file tree Collapse file tree 9 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import re
1718import subprocess
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import re
1718import subprocess
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import re
1718import subprocess
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 5 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import subprocess
1718import time
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import subprocess
1718import time
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import subprocess
1718import time
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import subprocess
1718import time
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import subprocess
1718import uuid
1819
1920import backoff
2021import pytest
2122import requests
2223
24+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
25+
2326
2427@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2528def gcloud_cli (command ):
@@ -36,7 +39,7 @@ def gcloud_cli(command):
3639
3740 Raises Exception with the stderr output of the last attempt on failure.
3841 """
39- full_command = f"gcloud { command } --quiet --format=json"
42+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4043 print ("Running command:" , full_command )
4144
4245 output = subprocess .run (
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import json
16+ import os
1617import subprocess
1718import time
1819import uuid
2122import pytest
2223import requests
2324
25+ project_id = os .environ ["GOOGLE_CLOUD_PROJECT" ]
26+
2427
2528@backoff .on_exception (backoff .expo , Exception , max_tries = 3 )
2629def gcloud_cli (command ):
@@ -37,7 +40,7 @@ def gcloud_cli(command):
3740
3841 Raises Exception with the stderr output of the last attempt on failure.
3942 """
40- full_command = f"gcloud { command } --quiet --format=json"
43+ full_command = f"gcloud { command } --quiet --format=json --project { project_id } "
4144 print ("Running command:" , full_command )
4245
4346 output = subprocess .run (
You can’t perform that action at this time.
0 commit comments