Skip to content

Commit 6f430c1

Browse files
docs: add instructions for authenticating for system tests (#443)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/9943226b-8e9b-44fd-b025-446fc572242a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@363fe30
1 parent 2221522 commit 6f430c1

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

packages/google-cloud-asset/CONTRIBUTING.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ 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 billing for your project][billing].
44+
1. [Enable the Cloud Asset Inventory API][enable_api].
45+
1. [Set up authentication with a service account][auth] so you can access the
46+
API from your local workstation.
47+
48+
4049
## Running the tests
4150

4251
1. [Prepare your environment for Node.js setup][setup].
@@ -51,15 +60,17 @@ accept your pull requests.
5160
npm test
5261

5362
# Run sample integration tests.
54-
gcloud auth application-default login
5563
npm run samples-test
5664

5765
# Run all system tests.
58-
gcloud auth application-default login
5966
npm run system-test
6067

6168
1. Lint (and maybe fix) any changes:
6269

6370
npm run fix
6471

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

packages/google-cloud-asset/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ async function quickstart() {
9191
9292
## Samples
9393
94-
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-asset/tree/master/samples) directory. The samples' `README.md`
95-
has instructions for running the samples.
94+
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-asset/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.
9695
9796
| Sample | Source Code | Try it |
9897
| --------------------------- | --------------------------------- | ------ |

packages/google-cloud-asset/synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "git@github.com:googleapis/nodejs-asset.git",
7-
"sha": "d6c5141ea9b1f1194dc203829a972ccbeac389fe"
6+
"remote": "https://github.com/googleapis/nodejs-asset.git",
7+
"sha": "f8fca67f82eef7612b62b4ffe30129ca60ea1e1d"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "41e998d5afdc2c2143a23c9b044b9931936f7318"
22+
"sha": "363fe305e9ce34a6cd53951c6ee5f997094b54ee"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)