Skip to content

Commit 4bea388

Browse files
kweinmeisterpattishin
authored andcommitted
test: added back BQ tabular dataset sample test (#215)
1 parent babfd5d commit 4bea388

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ai-platform/snippets/test/create-dataset-tabular-bigquery.test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2626
const cwd = path.join(__dirname, '..');
2727

2828
const datasetDisplayName = `temp_create_dataset_tables_bigquery_test_${uuid()}`;
29-
const bigquerySourceUri =
30-
'bq://prj-ucaip-tutorials.bigquery_dataset.walmart_triptrain_train';
29+
const bigquerySourceUri = 'bq://ucaip-sample-tests.table_test.all_bq_types';
3130
const project = process.env.CAIP_PROJECT_ID;
3231
const location = process.env.LOCATION;
3332

3433
let datasetId;
3534

36-
// Refs: https://github.com/googleapis/nodejs-ai-platform/issues/187
37-
describe.skip('AI platform create dataset tabular bigquery', () => {
35+
describe('AI platform create dataset tabular bigquery', () => {
3836
it('should create a new bigquery tabular dataset in the parent resource', async () => {
3937
const stdout = execSync(
4038
`node ./create-dataset-tabular-bigquery.js ${datasetDisplayName} \
@@ -46,7 +44,7 @@ describe.skip('AI platform create dataset tabular bigquery', () => {
4644
);
4745
assert.match(stdout, /Create dataset tabular bigquery response/);
4846
datasetId = stdout
49-
.split('/locations/us-central1/datasets/')[1]
47+
.split(`/locations/${location}/datasets/`)[1]
5048
.split('/')[0]
5149
.split('/')[0];
5250
});

0 commit comments

Comments
 (0)