Skip to content

Commit 4bb63ac

Browse files
Merge pull request #159 from watson-developer-cloud/use-iam
feat(IAM): Move to use IAM
2 parents 6b51d48 + 485d253 commit 4bb63ac

14 files changed

+750
-2836
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "10"
3+
- "12"
44
sudo: required
55
services:
66
- xvfb
@@ -32,4 +32,4 @@ deploy:
3232
skip_cleanup: true
3333
script: npx semantic-release@15
3434
on:
35-
node: 10
35+
node: 12

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,4 @@ The test suite is broken up into offline unit tests and integration tests that t
7878
- `npm run test-offline` will run the offline tests
7979
- `npm run test-integration` will run the integration tests
8080

81-
To run the integration tests, a file with service credentials is required. This file must be called `stt-auth.json` and must be located in `/test/resources/`. There are tests for usage of both CF and RC service instances. For testing CF, the required keys in this configuration file are `username` and `password`. For testing RC, a key of either `iam_acess_token` or `iam_apikey` is required. Optionally, a service URL for an RC instance can be provided under the key `rc_service_url` if the service is available under a URL other than `https://stream.watsonplatform.net/speech-to-text/api`.
82-
83-
For an example, see `test/resources/stt-auth-example.json`.
81+
To run the integration tests, service credentials are required. Make sure you have a valid `.env` file in the root directory.

examples/.env.example

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
# Replace this if you are using a region specific service
22
SPEECH_TO_TEXT_URL=https://stream.watsonplatform.net/speech-to-text/api
3-
43
# If your using IAM API keys use this and do not input credentials:
54
SPEECH_TO_TEXT_IAM_APIKEY=<Your API key>
65

7-
# If your Speech to Text credentials contain username and password use the following:
8-
SPEECH_TO_TEXT_USERNAME=
9-
SPEECH_TO_TEXT_PASSWORD=
10-
116
# Replace this if you are using a region specific service
127
TEXT_TO_SPEECH_URL=https://stream.watsonplatform.net/text-to-speech/api
13-
148
# If your using IAM API keys use this and do not input credentials:
159
TEXT_TO_SPEECH_IAM_APIKEY=<Your API key>
16-
17-
# If your Text to Speech credentials contain username and password use the following:
18-
TEXT_TO_SPEECH_USERNAME=
19-
TEXT_TO_SPEECH_PASSWORD=
20-

0 commit comments

Comments
 (0)