File tree Expand file tree Collapse file tree
appengine/standard/migration/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ api_version: 1
33threadsafe : yes
44
55env_variables :
6- BUCKET_NAME : " REPLACE THIS WITH YOUR EXISTING BUCKET NAME"
6+ CLOUD_STORAGE_BUCKET : " REPLACE THIS WITH YOUR EXISTING BUCKET NAME"
77 BLOB_NAME : " my-demo-blob"
88
99libraries :
Original file line number Diff line number Diff line change 11runtime : python37
22
33env_variables :
4- BUCKET_NAME : " REPLACE THIS WITH YOUR EXISTING BUCKET NAME"
4+ CLOUD_STORAGE_BUCKET : " REPLACE THIS WITH YOUR EXISTING BUCKET NAME"
55 BLOB_NAME : " my-demo-blob"
Original file line number Diff line number Diff line change 2323
2424@app .route ('/' , methods = ['GET' ])
2525def get ():
26- bucket_name = os .environ ['BUCKET_NAME ' ]
26+ bucket_name = os .environ ['CLOUD_STORAGE_BUCKET ' ]
2727 blob_name = os .environ ['BLOB_NAME' ]
2828
2929 client = storage .Client ()
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ def test_index():
2424 assert r .status_code == 200
2525 assert 'Downloaded text matches uploaded text' in r .data .decode ('utf-8' )
2626
27- bucket_name = os .environ ['BUCKET_NAME ' ]
27+ bucket_name = os .environ ['CLOUD_STORAGE_BUCKET ' ]
2828 blob_name = os .environ ['BLOB_NAME' ]
2929 assert ' {}/{}' .format (bucket_name , blob_name ) in r .data .decode ('utf-8' )
3030 assert 'Blob {} deleted.' .format (blob_name ) in r .data .decode ('utf-8' )
31-
You can’t perform that action at this time.
0 commit comments