| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dce9fc6 commit b0f511d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,9 @@ You can run the system tests with ``nox``:: | |||
| 42 | 42 | To run a single session, specify it with ``nox -s``:: | |
| 43 | 43 | ||
| 44 | 44 | $ nox -f system_tests/noxfile.py -s service_account | |
| 45 | - | ||
| 45 | + | ||
| 46 | + First, set the environemnt variable ``GOOGLE_APPLICATION_CREDENTIALS`` to a valid service account. | ||
| 47 | + See `Creating and Managing Service Account Keys`_ for how to obtain a service account. | ||
| 46 | 48 | ||
| 47 | 49 | Project and Credentials Setup | |
| 48 | 50 | ------------------------------- | |
@@ -113,13 +115,24 @@ If you already have a default service associated with your project, you can skip | |||
| 113 | 115 | Edit ``app.yaml`` so ``service`` is ``default`` instead of ``google-auth-system-tests``. | |
| 114 | 116 | From ``system_tests/app_engine_test_app`` run the following commands :: | |
| 115 | 117 | ||
| 116 | - $ pip install --target-lib -r requirements.txt | ||
| 118 | + $ pip install --target lib -r requirements.txt | ||
| 117 | 119 | $ gcloud app deploy -q app.yaml | |
| 118 | 120 | ||
| 119 | 121 | After the app is deployed, change ``service`` in ``app.yaml`` back to ``google-auth-system-tests``. | |
| 120 | 122 | You can now run the App Engine tests: :: | |
| 121 | 123 | ||
| 122 | 124 | $ nox -f system_tests/noxfile.py -s app_engine | |
| 125 | + | ||
| 126 | + Compute Engine Tests | ||
| 127 | + ^^^^^^^^^^^^^^^^^^^^ | ||
| 128 | + | ||
| 129 | + These tests cannot be run locally and will be skipped if they are run outside of Google Compute Engine. | ||
| 130 | + | ||
| 131 | + grpc Tests | ||
| 132 | + ^^^^^^^^^^^^ | ||
| 133 | + | ||
| 134 | + These tests use the Pub/Sub API. Grant the service account specified by `GOOGLE_APPLICATION_CREDENTIALS` | ||
| 135 | + permissions to list topics. The service account should have at least `roles/pubsub.viewer`. | ||
| 123 | 136 | ||
| 124 | 137 | Coding Style | |
| 125 | 138 | ------------ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments