Skip to content

Commit

Permalink
test: added back BQ tabular dataset sample test (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
kweinmeister authored Oct 21, 2021
1 parent f0951c6 commit ef40b25
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
const cwd = path.join(__dirname, '..');

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

let datasetId;

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

0 comments on commit ef40b25

Please sign in to comment.