Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jest): vulnerability fix #139

Merged
merged 56 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
eac8907
fix: upgrade jest
Andras-Csanyi Oct 4, 2021
9b5447f
fix case management unit tests
Andras-Csanyi Oct 4, 2021
cf5c126
fix catalog management unit tests
Andras-Csanyi Oct 4, 2021
30d7de3
fix configuration governance unit tests
Andras-Csanyi Oct 4, 2021
8751d74
fix context based restrictions unit tests
Andras-Csanyi Oct 4, 2021
3f0980c
fix enterprise billing unit tests
Andras-Csanyi Oct 4, 2021
fc76a98
fix enterprise management unit tests
Andras-Csanyi Oct 4, 2021
a61df9e
fix global catalog unit tests
Andras-Csanyi Oct 4, 2021
fec2f01
fix global tagging unit tests
Andras-Csanyi Oct 4, 2021
23e459d
fix iam access groups unit tests
Andras-Csanyi Oct 4, 2021
1721552
fix iam identity unit tests
Andras-Csanyi Oct 4, 2021
f1a479f
fix iam policy management unit tests
Andras-Csanyi Oct 4, 2021
d60bd56
fix ibm cloud shell unit tests
Andras-Csanyi Oct 4, 2021
33e68b8
fix open service broker unit tests
Andras-Csanyi Oct 4, 2021
d4cb5f5
fix posture management unit tests
Andras-Csanyi Oct 4, 2021
84c981c
fix resource controller unit tests
Andras-Csanyi Oct 4, 2021
677d0ff
fix resource manager unit tests
Andras-Csanyi Oct 4, 2021
4971e6b
fix usage metering unit tests
Andras-Csanyi Oct 4, 2021
8a9db09
fix usage reports unit tests
Andras-Csanyi Oct 4, 2021
7c16a10
fix user management unit tests
Andras-Csanyi Oct 4, 2021
172fd95
fix resource controller ITs
Andras-Csanyi Oct 5, 2021
1536a49
fix CBR ITs
Andras-Csanyi Oct 5, 2021
965371a
fix enterprise-management ITs
Andras-Csanyi Oct 5, 2021
05e9c56
fix global-search ITs
Andras-Csanyi Oct 5, 2021
6e4a288
fix enterprise-usage-reports ITs
Andras-Csanyi Oct 5, 2021
4f6e091
fix cloud-shell ITs
Andras-Csanyi Oct 5, 2021
c532d7d
fix posture-management ITs
Andras-Csanyi Oct 5, 2021
5529d67
fix usage-metering ITs
Andras-Csanyi Oct 5, 2021
1d2213c
fix ibm-cloud-shell examples
Andras-Csanyi Oct 5, 2021
d461ed1
fix resource-controller IT
Andras-Csanyi Oct 6, 2021
3ce655c
remove done() from posture-management examples
Andras-Csanyi Oct 6, 2021
a0d0e12
fix case management examples
Andras-Csanyi Oct 6, 2021
f35fdc4
fix catalog-management examples
Andras-Csanyi Oct 6, 2021
dfdbf00
fix configuration-governance examples
Andras-Csanyi Oct 7, 2021
e8a5e0e
fix context-based-restrictions examples
Andras-Csanyi Oct 7, 2021
10f32b4
fix enterprise-billing-units examples
Andras-Csanyi Oct 7, 2021
760988a
fix enterprise-management examples
Andras-Csanyi Oct 7, 2021
5de73e0
fix enterprise-usage-reports examples
Andras-Csanyi Oct 7, 2021
10a818d
fix global-catalog examples
Andras-Csanyi Oct 7, 2021
d2e4628
fix global-search examples
Andras-Csanyi Oct 7, 2021
84dbaec
fix global-tagging examples
Andras-Csanyi Oct 7, 2021
144186f
fix iam-access-groups examples
Andras-Csanyi Oct 7, 2021
e64c5ae
fix iam-identity examples
Andras-Csanyi Oct 7, 2021
0ff6e7f
fix iam-policy-management examples
Andras-Csanyi Oct 7, 2021
bdc230e
fix cloud-shell examples
Andras-Csanyi Oct 7, 2021
01d6d54
fix open-service-broker examples
Andras-Csanyi Oct 7, 2021
c4b9542
fix resource-controller examples
Andras-Csanyi Oct 7, 2021
9724266
fix resource-controller examples
Andras-Csanyi Oct 7, 2021
229500e
fix resource-manager examples
Andras-Csanyi Oct 7, 2021
c06f9e6
fix usage-metering examples
Andras-Csanyi Oct 7, 2021
4fba2a7
fix usage-reports examples
Andras-Csanyi Oct 7, 2021
950f0e5
fix usage-reports examples
Andras-Csanyi Oct 11, 2021
77cae8a
Merge branch 'main' into 2917_setvalue_vuln_issue
Andras-Csanyi Oct 11, 2021
b9f7db6
fix package-lock.json
Andras-Csanyi Oct 11, 2021
df6a58f
fix: address review comment
Andras-Csanyi Oct 12, 2021
cc17646
fix: bump jest
Andras-Csanyi Oct 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
258 changes: 129 additions & 129 deletions examples/case-management.v1.test.js

Large diffs are not rendered by default.

1,301 changes: 669 additions & 632 deletions examples/catalog-management.v1.test.js

Large diffs are not rendered by default.

286 changes: 150 additions & 136 deletions examples/configuration-governance.v1.test.js

Large diffs are not rendered by default.

270 changes: 127 additions & 143 deletions examples/context-based-restrictions.v1.test.js

Large diffs are not rendered by default.

93 changes: 46 additions & 47 deletions examples/enterprise-billing-units.v1.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @jest-environment node
*/
* @jest-environment node
*/
/**
* (C) Copyright IBM Corp. 2020.
*
Expand Down Expand Up @@ -64,110 +64,109 @@ describe('EnterpriseBillingUnitsV1', () => {
let enterpriseId = config.enterpriseId;
let billingUnitId = config.billingUnitId;

test('getBillingUnit request example', done => {
test('getBillingUnit request example', async () => {

consoleLogMock.mockImplementation(output => {
originalLog(output);
done();
});
consoleWarnMock.mockImplementation(output => {
done(output);
originalWarn(output);
// when the test fails we need to print out the error message and stop execution right after it
expect(true).toBeFalsy();
Andras-Csanyi marked this conversation as resolved.
Show resolved Hide resolved
});

originalLog('getBillingUnit() result:');
// begin-get_billing_unit
true
const params = {
billingUnitId: billingUnitId,
};

enterpriseBillingUnitsService.getBillingUnit(params)
.then(res => {
console.log(JSON.stringify(res.result, null, 2));
})
.catch(err => {
console.warn(err)
});
try {
const res = await enterpriseBillingUnitsService.getBillingUnit(params);
console.log(JSON.stringify(res.result, null, 2));
} catch (err) {
console.warn(err);
}

// end-get_billing_unit
});
test('listBillingUnits request example', done => {
test('listBillingUnits request example', async () => {

consoleLogMock.mockImplementation(output => {
originalLog(output);
done();
});
consoleWarnMock.mockImplementation(output => {
done(output);
originalWarn(output);
// when the test fails we need to print out the error message and stop execution right after it
expect(true).toBeFalsy();
});

originalLog('listBillingUnits() result:');
// begin-list_billing_units

const params = {
enterpriseId: enterpriseId,
};
enterpriseBillingUnitsService.listBillingUnits(params)
.then(res => {
console.log(JSON.stringify(res.result, null, 2));
})
.catch(err => {
console.warn(err)
});
try {
const res = await enterpriseBillingUnitsService.listBillingUnits(params);
console.log(JSON.stringify(res.result, null, 2));
} catch (err) {
console.warn(err);
}

// end-list_billing_units
});
test('listBillingOptions request example', done => {
test('listBillingOptions request example', async () => {

consoleLogMock.mockImplementation(output => {
originalLog(output);
done();
});
consoleWarnMock.mockImplementation(output => {
done(output);
originalWarn(output);
// when the test fails we need to print out the error message and stop execution right after it
expect(true).toBeFalsy();
});

originalLog('listBillingOptions() result:');
// begin-list_billing_options

const params = {
billingUnitId: billingUnitId,
};

enterpriseBillingUnitsService.listBillingOptions(params)
.then(res => {
console.log(JSON.stringify(res.result, null, 2));
})
.catch(err => {
console.warn(err)
});
try {
const res = await enterpriseBillingUnitsService.listBillingOptions(params);
console.log(JSON.stringify(res.result, null, 2));
} catch (err) {
console.warn(err);
}

// end-list_billing_options
});
test('getCreditPools request example', done => {
test('getCreditPools request example', async () => {

consoleLogMock.mockImplementation(output => {
originalLog(output);
done();
});
consoleWarnMock.mockImplementation(output => {
done(output);
originalWarn(output);
// when the test fails we need to print out the error message and stop execution right after it
expect(true).toBeFalsy();
});

originalLog('getCreditPools() result:');
// begin-get_credit_pools

const params = {
billingUnitId: billingUnitId,
};

enterpriseBillingUnitsService.getCreditPools(params)
.then(res => {
console.log(JSON.stringify(res.result, null, 2));
})
.catch(err => {
console.warn(err)
});
try {
const res = await enterpriseBillingUnitsService.getCreditPools(params);
console.log(JSON.stringify(res.result, null, 2));
} catch (err) {
console.warn(err);
}

// end-get_credit_pools
});
Expand Down
Loading