Skip to content

Commit e7ca74b

Browse files
committed
ci(iam): migrate to new CI
1 parent 0ef037a commit e7ca74b

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/config/nodejs-dev.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
"healthcare/datasets",
185185
"healthcare/dicom",
186186
"healthcare/hl7v2",
187+
"iam/deny",
187188
"kms",
188189
"media/livestream",
189190
"media/transcoder",

.github/config/nodejs-prod.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
"functions/slack", // TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type ... Received undefined
9595
"functions/v2/imagemagick", // (untested) Error: A bucket name is needed to use Cloud Storage.
9696
"healthcare/fhir", // Error: Cannot find module 'whatwg-url'
97-
"iam/deny", // PERMISSION_DENIED: Permission iam.googleapis.com/denypolicies.create denied on resource cloudresourcemanager.googleapis.com/projects/long-door-651
9897
"recaptcha_enterprise/snippets", // Cannot use import statement outside a module
9998
"run/idp-sql", // (untested) Error: Invalid contents in the credentials file
10099
"scheduler", // SyntaxError: Cannot use import statement outside a module

iam/deny/test/deny.test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ const iamClient = new PoliciesClient();
2424
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2525

2626
describe('IAM deny samples', () => {
27-
let projectId;
27+
const {projectId} = process.env;
2828
const policyId = `gcloud-test-policy-${uuid.v4().split('-')[0]}`;
2929
const policyName = `policies/cloudresourcemanager.googleapis.com%2Fprojects%2F949737848314/denypolicies/${policyId}`;
3030

31-
before(async () => {
32-
projectId = await iamClient.getProjectId();
33-
});
34-
3531
it('should create IAM policy', async () => {
3632
const output = execSync(`node createDenyPolicy ${projectId} ${policyId}`);
3733

0 commit comments

Comments
 (0)