Skip to content

Commit c8ee2c1

Browse files
docs: add instructions for authenticating for system tests (#454)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/cacd5a12-e156-415f-94a2-533984f6802a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@363fe30
1 parent e82c87b commit c8ee2c1

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

packages/google-cloud-dataproc/CONTRIBUTING.md

+13-2
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 Google Cloud Dataproc 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=dataproc.googleapis.com
76+
[auth]: https://cloud.google.com/docs/authentication/getting-started

packages/google-cloud-dataproc/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ main(...args);
174174

175175
## Samples
176176

177-
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dataproc/tree/master/samples) directory. The samples' `README.md`
178-
has instructions for running the samples.
177+
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dataproc/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.
179178

180179
| Sample | Source Code | Try it |
181180
| --------------------------- | --------------------------------- | ------ |

packages/google-cloud-dataproc/synth.metadata

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-dataproc.git",
7-
"sha": "50ad66350821317417bb2859afd91cb3fb3a3ca6"
7+
"sha": "10368f25bdbc194200df61f8ee61426999cff2b0"
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)