php-docs-samples icon indicating copy to clipboard operation
php-docs-samples copied to clipboard

Add e2e test for endpoint sample

Open tmatsuo opened this issue 8 years ago • 3 comments

tmatsuo avatar Oct 12 '16 17:10 tmatsuo

Some tricky parts;

  • you need to use gcloud beta app deploy, maybe we should tweak our deploytrait to make the command configurable
  • you need to create an API key like curl -vv -d '{"message":"foo"}' -H 'Content-Type: application/json' "${ENDPOINTS_HOST}/echo?key=${ENDPOINTS_KEY}"
  • ideally you should test it without the API key and check if it's correctly 404

tmatsuo avatar Oct 12 '16 20:10 tmatsuo

This was added here for App Engine Flex, but we now need e2e for GCE and GKE as well.

bshaffer avatar Nov 22 '16 19:11 bshaffer

Awesome, I'm working on a doc for GKE testing.

jeffmendoza avatar Nov 22 '16 19:11 jeffmendoza