Skip to content

Commit 1f3dfc2

Browse files
committed
update substitutions
1 parent 4007dba commit 1f3dfc2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

run/markdown-preview/editor/test/e2e_test_cleanup.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ substitutions:
2222
_SERVICE: editor
2323
_VERSION: manual
2424
_REGION: us-central1
25-
_PLATFORM: managed
2625
_SERVICE_ACCOUNT: ${PROJECT_NUMBER}@cloudbuild.gserviceaccount.com
2726

2827
serviceAccount: 'projects/${PROJECT_ID}/serviceAccounts/${_SERVICE_ACCOUNT}'

run/markdown-preview/editor/test/e2e_test_setup.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ substitutions:
3232
_SERVICE: editor
3333
_VERSION: manual
3434
_REGION: us-central1
35-
_PLATFORM: managed
3635
_SERVICE_ACCOUNT: ${PROJECT_NUMBER}@cloudbuild.gserviceaccount.com
3736

3837
serviceAccount: 'projects/${PROJECT_ID}/serviceAccounts/${_SERVICE_ACCOUNT}'

run/markdown-preview/editor/test/system.test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ describe('End-to-End Tests', () => {
3232
const {ID_TOKEN} = process.env;
3333
if (!ID_TOKEN) throw Error('ID token not in envvar');
3434
const {SAMPLE_VERSION} = process.env;
35-
const PLATFORM = 'managed';
3635
const REGION = 'us-central1';
3736

3837
let BASE_URL;
@@ -41,7 +40,7 @@ describe('End-to-End Tests', () => {
4140
let buildRendererCmd =
4241
`gcloud builds submit --project ${GOOGLE_CLOUD_PROJECT} ` +
4342
'--config ../renderer/test/e2e_test_setup.yaml ' +
44-
`--substitutions _SERVICE=renderer-${SERVICE_NAME},_PLATFORM=${PLATFORM},_REGION=${REGION}`;
43+
`--substitutions _SERVICE=renderer-${SERVICE_NAME},_REGION=${REGION}`;
4544
if (SAMPLE_VERSION) buildRendererCmd += `,_VERSION=${SAMPLE_VERSION}`;
4645

4746
console.log('Starting Cloud Build for Renderer service...');
@@ -52,8 +51,9 @@ describe('End-to-End Tests', () => {
5251
let buildCmd =
5352
`gcloud builds submit --project ${GOOGLE_CLOUD_PROJECT} ` +
5453
'--config ./test/e2e_test_setup.yaml ' +
55-
`--substitutions _SERVICE=${SERVICE_NAME},_PLATFORM=${PLATFORM},_REGION=${REGION}`;
54+
`--substitutions _SERVICE=${SERVICE_NAME},_REGION=${REGION}`;
5655
if (SAMPLE_VERSION) buildCmd += `,_VERSION=${SAMPLE_VERSION}`;
56+
if (SERVICE_ACCOUNT) buildCmd += `,_SERVICE_ACCOUNT=${SERVICE_ACCOUNT}`;
5757

5858
console.log('Starting Cloud Build for Editor service...');
5959
execSync(buildCmd, {timeout: 240000}); // timeout at 4 mins
@@ -72,8 +72,9 @@ describe('End-to-End Tests', () => {
7272
let cleanUpCmd =
7373
`gcloud builds submit --project ${GOOGLE_CLOUD_PROJECT} ` +
7474
'--config ./test/e2e_test_cleanup.yaml ' +
75-
`--substitutions _SERVICE=${SERVICE_NAME},_PLATFORM=${PLATFORM},_REGION=${REGION}`;
75+
`--substitutions _SERVICE=${SERVICE_NAME},_REGION=${REGION}`;
7676
if (SAMPLE_VERSION) cleanUpCmd += `,_VERSION=${SAMPLE_VERSION}`;
77+
if (SERVICE_ACCOUNT) cleanUpCmd += `,_SERVICE_ACCOUNT=${SERVICE_ACCOUNT}`;
7778

7879
execSync(cleanUpCmd);
7980
});

run/markdown-preview/renderer/test/e2e_test_cleanup.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ substitutions:
1616
_SERVICE: renderer
1717
_VERSION: manual
1818
_REGION: us-central1
19-
_PLATFORM: managed
2019
_SERVICE_ACCOUNT: ${PROJECT_NUMBER}@cloudbuild.gserviceaccount.com
2120

2221
serviceAccount: 'projects/${PROJECT_ID}/serviceAccounts/${_SERVICE_ACCOUNT}'

run/markdown-preview/renderer/test/system.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ describe('End-to-End Tests', () => {
4141
let buildCmd =
4242
`gcloud builds submit --project ${GOOGLE_CLOUD_PROJECT} ` +
4343
'--config ./test/e2e_test_setup.yaml ' +
44-
`--substitutions _SERVICE=${SERVICE_NAME},_PLATFORM=${PLATFORM},_REGION=${REGION}`;
44+
`--substitutions _SERVICE=${SERVICE_NAME},_REGION=${REGION}`;
4545
if (SAMPLE_VERSION) buildCmd += `,_VERSION=${SAMPLE_VERSION}`;
46+
if (SERVICE_ACCOUNT) buildCmd += `,_SERVICE_ACCOUNT=${SERVICE_ACCOUNT}`;
4647

4748
console.log('Starting Cloud Build...');
4849
execSync(buildCmd, {timeout: 240000}); // timeout at 4 mins
@@ -62,8 +63,9 @@ describe('End-to-End Tests', () => {
6263
let cleanUpCmd =
6364
`gcloud builds submit --project ${GOOGLE_CLOUD_PROJECT} ` +
6465
'--config ./test/e2e_test_cleanup.yaml ' +
65-
`--substitutions _SERVICE=${SERVICE_NAME},_PLATFORM=${PLATFORM},_REGION=${REGION}`;
66+
`--substitutions _SERVICE=${SERVICE_NAME},_REGION=${REGION}`;
6667
if (SAMPLE_VERSION) cleanUpCmd += `,_VERSION=${SAMPLE_VERSION}`;
68+
if (SERVICE_ACCOUNT) cleanUpCmd += `,_SERVICE_ACCOUNT=${SERVICE_ACCOUNT}`;
6769

6870
execSync(cleanUpCmd);
6971
});

0 commit comments

Comments
 (0)