Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 0012708

Browse files
docs: add instructions for authenticating for system tests (#67)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/305b4f12-f9c7-4cda-8a25-0d5dc36b634b/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@363fe30
1 parent a4baba5 commit 0012708

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ accept your pull requests.
3737
1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
3838
1. Submit a pull request.
3939

40+
### Before you begin
41+
42+
1. [Select or create a Cloud Platform project][projects].
43+
1. [Enable the Google Analytics Admin API][enable_api].
44+
1. [Set up authentication with a service account][auth] so you can access the
45+
API from your local workstation.
46+
47+
4048
## Running the tests
4149

4250
1. [Prepare your environment for Node.js setup][setup].
@@ -51,15 +59,17 @@ accept your pull requests.
5159
npm test
5260

5361
# Run sample integration tests.
54-
gcloud auth application-default login
5562
npm run samples-test
5663

5764
# Run all system tests.
58-
gcloud auth application-default login
5965
npm run system-test
6066

6167
1. Lint (and maybe fix) any changes:
6268

6369
npm run fix
6470

6571
[setup]: https://cloud.google.com/nodejs/docs/setup
72+
[projects]: https://console.cloud.google.com/project
73+
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
74+
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=analyticsadmin.googleapis.com
75+
[auth]: https://cloud.google.com/docs/authentication/getting-started

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ process.on('unhandledRejection', err => {
9696

9797
## Samples
9898

99-
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/master/samples) directory. The samples' `README.md`
100-
has instructions for running the samples.
99+
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-admin/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.
101100

102101
| Sample | Source Code | Try it |
103102
| --------------------------- | --------------------------------- | ------ |

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-analytics-admin.git",
7-
"sha": "ac31ff0c0086b0b9ff2c21ddeb832c03299477a7"
7+
"sha": "a4baba570e07b637ec5d8be0a9d98ebec5969559"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "15013eff642a7e7e855aed5a29e6e83c39beba2a"
22+
"sha": "363fe305e9ce34a6cd53951c6ee5f997094b54ee"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)