Skip to content

Commit 83df016

Browse files
committed
fix: Set location to us-central1 instead of using default global
1 parent a278a52 commit 83df016

10 files changed

+8
-172
lines changed

ai-platform/snippets/predict-text-extraction.js

Lines changed: 0 additions & 124 deletions
This file was deleted.

ai-platform/snippets/test/create-custom-job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const customJobDisplayName = `temp_create_custom_job_test${uuid()}`;
2828
const containerImageUri =
2929
'gcr.io/ucaip-sample-tests/ucaip-training-test:latest';
3030
const project = process.env.CAIP_PROJECT_ID;
31-
const location = process.env.LOCATION;
31+
const location = 'us-central1';
3232

3333
function parseResponse(stdout) {
3434
let res = {};

ai-platform/snippets/test/create-dataset-image.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const cwd = path.join(__dirname, '..');
2727

2828
const datasetDisplayName = `temp_create_dataset_image_test_${uuid()}`;
2929
const project = process.env.CAIP_PROJECT_ID;
30-
const location = process.env.LOCATION;
30+
const location = 'us-central1';
3131

3232
let datasetId;
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const cwd = path.join(__dirname, '..');
2828
const datasetDisplayName = `temp_create_dataset_tables_bigquery_test_${uuid()}`;
2929
const bigquerySourceUri = 'bq://ucaip-sample-tests.table_test.all_bq_types';
3030
const project = process.env.CAIP_PROJECT_ID;
31-
const location = process.env.LOCATION;
31+
const location = 'us-central1';
3232

3333
let datasetId;
3434

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const cwd = path.join(__dirname, '..');
2828
const datasetDisplayName = `temp_create_dataset_tables_gcs_test_${uuid()}`;
2929
const gcsSourceUri = 'gs://cloud-ml-tables-data/bank-marketing.csv';
3030
const project = process.env.CAIP_PROJECT_ID;
31-
const location = process.env.LOCATION;
31+
const location = 'us-central1';
3232

3333
let datasetId;
3434

ai-platform/snippets/test/create-dataset-text.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const cwd = path.join(__dirname, '..');
2727

2828
const displayName = `temp_create_dataset_text_test_${uuid()}`;
2929
const project = process.env.CAIP_PROJECT_ID;
30-
const location = process.env.LOCATION;
30+
const location = 'us-central1';
3131

3232
let datasetId;
3333

ai-platform/snippets/test/create-dataset-video.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const cwd = path.join(__dirname, '..');
2727

2828
const datasetDisplayName = `temp_create_dataset_video_test_${uuid()}`;
2929
const project = process.env.CAIP_PROJECT_ID;
30-
const location = process.env.LOCATION;
30+
const location = 'us-central1';
3131

3232
let datasetId;
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const datasetDisplayName = `temp_create_dataset_test_${uuid()}`;
2929
const metadataSchemaUri =
3030
'gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml';
3131
const project = process.env.CAIP_PROJECT_ID;
32-
const location = process.env.LOCATION;
32+
const location = 'us-central1';
3333

3434
let datasetId;
3535

ai-platform/snippets/test/get-model-evaluation-video-action-recognition.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2525
const modelId = '3530998029718913024';
2626
const evaluationId = '305008923591573504';
2727
const project = process.env.CAIP_PROJECT_ID;
28-
const location = process.env.LOCATION;
28+
const location = 'us-central1';
2929

3030
describe('AI platform get video action recognition model evaluation', () => {
3131
it('should get the evaluation from the specified model', async () => {

ai-platform/snippets/test/predict-text-extraction.test.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)