Reputation: 3898
With reference to Google Cloud Storage Triggers , I wrote a background function which gets triggered from GCS. Using GCP Function Framework for Java, is it possible to test it locally ?
Upvotes: 2
Views: 2794
Reputation: 1321
You can test locally your Cloud Function triggers by running integration tests.
Integration tests should trigger and respond to actual Cloud events such as HTTP requests, Pub/Sub messages, or Storage object changes.
Here you may find more information for testing background Cloud Functions.
Upvotes: -1