Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eventarc/audit-storage/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def index():
# Example: "storage.googleapis.com/projects/_/buckets/my-bucket"
bucket = request.headers.get('ce-subject')

print(f"Detected change in GCS bucket: {bucket}")
return (f"Detected change in GCS bucket: {bucket}", 200)
print(f"Detected change in Cloud Storage bucket: {bucket}")
return (f"Detected change in Cloud Storage bucket: {bucket}", 200)
# [END eventarc_gcs_handler]


Expand Down
2 changes: 1 addition & 1 deletion eventarc/audit-storage/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def test_endpoint(client, capsys):
assert r.status_code == 200

out, _ = capsys.readouterr()
assert f"Detected change in GCS bucket: {test_headers['Ce-Subject']}" in out
assert f"Detected change in Cloud Storage bucket: {test_headers['Ce-Subject']}" in out