zpencer | b07c70a | 2017-10-06 10:44:58 -0700 | [diff] [blame] | 1 | Google App Engine interop tests |
| 2 | ===================================== |
| 3 | |
| 4 | This directory contains interop tests that runs in Google App Engine |
| 5 | as gRPC clients. |
| 6 | |
| 7 | Prerequisites |
| 8 | ========================== |
| 9 | |
| 10 | - Install the Google Cloud SDK and ensure that `gcloud` is in the path |
Nguyen Quang Huy | 05d5e48 | 2019-02-28 08:25:42 +0700 | [diff] [blame] | 11 | - Set up an [App Engine app](https://appengine.google.com) with your |
zpencer | b07c70a | 2017-10-06 10:44:58 -0700 | [diff] [blame] | 12 | choice of a PROJECT_ID. |
| 13 | - Associate your `gcloud` environment with your app: |
| 14 | ```bash |
| 15 | # Log into Google Cloud |
| 16 | $ gcloud auth login |
| 17 | |
| 18 | # Associate this codebase with a GAE project |
| 19 | $ gcloud config set project PROJECT_ID |
| 20 | ``` |
| 21 | |
| 22 | Running the tests in GAE |
| 23 | ========================== |
| 24 | |
| 25 | You can run the gradle task to execute the interop tests. |
| 26 | ```bash |
Eric Anderson | c2f8d83 | 2019-01-24 08:54:47 -0800 | [diff] [blame] | 27 | # cd into gae-jdk8 |
Eric Anderson | c318b4e | 2018-08-17 14:18:23 -0700 | [diff] [blame] | 28 | $ ../../gradlew runInteropTestRemote |
zpencer | b07c70a | 2017-10-06 10:44:58 -0700 | [diff] [blame] | 29 | |
| 30 | # Or run one of these from the root gRPC Java directory: |
zpencer | b07c70a | 2017-10-06 10:44:58 -0700 | [diff] [blame] | 31 | $ ./gradlew :grpc-gae-interop-testing-jdk8:runInteropTestRemote |
| 32 | ``` |
| 33 | |
| 34 | Optional: |
| 35 | |
| 36 | You can also browse to `http://${PROJECT_ID}.appspot.google.com` to |
| 37 | see the result of the interop test. |
| 38 | |
| 39 | |
| 40 | Debugging |
| 41 | ========================== |
| 42 | |
| 43 | You can find the server side logs by logging into |
| 44 | `http://appengine.google.com` and scrolling down to the section titled |
| 45 | `Application Errors` and `Server Errors`. |
| 46 | |
| 47 | Click on the `/` URI to view the log entries for each test run. |
| 48 | |