Skip to content

Commit

Permalink
fix: use credential file to get project id (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and jkwlui committed Jan 2, 2019
1 parent 870b4bc commit ebef90f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/google-cloud-automl/system-test/automl.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ const assert = require('assert');

const client = new automl.AutoMlClient();
const location = 'us-central1';
const projectId = process.env.GCLOUD_PROJECT;

describe('automl system tests', () => {
let projectId;
before(async () => {
projectId = await client.getProjectId();
});

it('should list all datasets', async () => {
const parent = client.locationPath(projectId, location);
const [datasets] = await client.listDatasets({parent});
Expand Down

0 comments on commit ebef90f

Please sign in to comment.