diff --git a/examples/case-management.v1.test.js b/examples/case-management.v1.test.js index bca3b569..b95eab36 100644 --- a/examples/case-management.v1.test.js +++ b/examples/case-management.v1.test.js @@ -97,7 +97,7 @@ describe('CaseManagementV1', () => { caseManagementService.createCase(params) .then(res => { caseNumber = res.result.number - console.log(JSON.stringify(res.result, null, 2)); + console.log('createCase() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -133,7 +133,7 @@ describe('CaseManagementV1', () => { caseManagementService.getCase(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getCase() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -162,7 +162,7 @@ describe('CaseManagementV1', () => { caseManagementService.getCases({}) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getCases() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -192,7 +192,7 @@ describe('CaseManagementV1', () => { caseManagementService.addComment(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('addComment() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -225,7 +225,7 @@ describe('CaseManagementV1', () => { caseManagementService.addWatchlist(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('addWatchlist() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -258,7 +258,7 @@ describe('CaseManagementV1', () => { caseManagementService.removeWatchlist(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('removeWatchlist() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -289,7 +289,7 @@ describe('CaseManagementV1', () => { caseManagementService.addResource(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('addResource() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -329,7 +329,7 @@ describe('CaseManagementV1', () => { caseManagementService.uploadFile(params) .then(res => { attachmentId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('uploadFile() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -365,6 +365,7 @@ describe('CaseManagementV1', () => { return streamToPromise(res.result); }) .then(contents => { + console.log('downloadFile() result:\n'); console.log(`Attachment content-type: ${responseContentType}\nAttachment contents: ${contents}`); }) .catch(err => { @@ -395,7 +396,7 @@ describe('CaseManagementV1', () => { caseManagementService.deleteFile(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteFile() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -430,7 +431,7 @@ describe('CaseManagementV1', () => { caseManagementService.updateCaseStatus(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateCaseStatus() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/configuration-governance.v1.test.js b/examples/configuration-governance.v1.test.js index 3e13b8e6..66028589 100644 --- a/examples/configuration-governance.v1.test.js +++ b/examples/configuration-governance.v1.test.js @@ -102,7 +102,7 @@ describe('ConfigurationGovernanceV1', () => { .then(res => { const { result, status } = res; if (status === 201) { - console.log(JSON.stringify(result, null, 2)); + console.log('createRules() result:\n' + JSON.stringify(result, null, 2)); } else { // some rules may have failed for (rule of result.rules) { @@ -138,7 +138,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.createAttachments(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('createAttachments() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -174,7 +174,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.getAttachment(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAttachment() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -208,7 +208,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.getRule(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getRule() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -233,7 +233,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.listRules(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listRules() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -267,7 +267,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.updateRule(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateRule() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -292,7 +292,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.listAttachments(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listAttachments() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -322,7 +322,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.updateAttachment(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateAttachment() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -348,7 +348,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.deleteAttachment(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteAttachment() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -373,7 +373,7 @@ describe('ConfigurationGovernanceV1', () => { configurationGovernanceService.deleteRule(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteRule() response status code: ' + res.status); }) .catch(err => { console.warn(err) diff --git a/examples/enterprise-billing-units.v1.test.js b/examples/enterprise-billing-units.v1.test.js index b83eaef5..a4226943 100644 --- a/examples/enterprise-billing-units.v1.test.js +++ b/examples/enterprise-billing-units.v1.test.js @@ -82,7 +82,7 @@ describe('EnterpriseBillingUnitsV1', () => { enterpriseBillingUnitsService.getBillingUnit(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getBillingUnit() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -107,7 +107,7 @@ describe('EnterpriseBillingUnitsV1', () => { }; enterpriseBillingUnitsService.listBillingUnits(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listBillingUnits() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -133,7 +133,7 @@ describe('EnterpriseBillingUnitsV1', () => { enterpriseBillingUnitsService.listBillingOptions(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listBillingOptions() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -159,7 +159,7 @@ describe('EnterpriseBillingUnitsV1', () => { enterpriseBillingUnitsService.getCreditPools(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getCreditPools() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/enterprise-usage-reports.v1.test.js b/examples/enterprise-usage-reports.v1.test.js index 0e6b110c..334feeb0 100644 --- a/examples/enterprise-usage-reports.v1.test.js +++ b/examples/enterprise-usage-reports.v1.test.js @@ -83,7 +83,7 @@ describe('EnterpriseUsageReportsV1', () => { enterpriseUsageReportsService.getResourceUsageReport(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getResourceUsageReport() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/global-catalog.v1.test.js b/examples/global-catalog.v1.test.js index 5d8f652d..d77d0f00 100644 --- a/examples/global-catalog.v1.test.js +++ b/examples/global-catalog.v1.test.js @@ -119,7 +119,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.createCatalogEntry(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('createCatalogEntry() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -148,7 +148,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.getCatalogEntry(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getCatalogEntry() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -209,7 +209,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.updateCatalogEntry(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateCatalogEntry() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -236,7 +236,7 @@ describe('GlobalCatalogV1', () => { }; globalCatalogService.listCatalogEntries(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listCatalogEntries() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -268,7 +268,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.getChildObjects(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getChildObjects() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -296,7 +296,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.restoreCatalogEntry(params) .then(res => { - console.log(JSON.stringify(res, null, 2)); + console.log('restoreCatalogEntry() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -324,7 +324,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.getVisibility(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getVisibility() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -353,7 +353,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.updateVisibility(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateVisibility() response status code: ' + res.status); }) .catch(err => { console.log('updateVisibility() returned the following error: ' + err); @@ -381,7 +381,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.getPricing(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getPricing() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -411,7 +411,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.getAuditLogs(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAuditLogs() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -441,7 +441,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.uploadArtifact(params) .then(res => { - console.log(JSON.stringify(res, null, 2)); + console.log('uploadArtifact() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -476,6 +476,7 @@ describe('GlobalCatalogV1', () => { return streamToPromise(res.result); }) .then(contents => { + console.log('getArtifact() result:\n'); console.log(`Artifact content type: ${responseContentType}\nArtifact contents: ${contents}`); }) .catch(err => { @@ -504,7 +505,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.listArtifacts(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listArtifacts() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -533,7 +534,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.deleteArtifact(params) .then(res => { - console.log(JSON.stringify(res, null, 2)); + console.log('deleteArtifact() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -561,7 +562,7 @@ describe('GlobalCatalogV1', () => { globalCatalogService.deleteCatalogEntry(params) .then(res => { - console.log(JSON.stringify(res, null, 2)); + console.log('deleteCatalogEntry() response status code: ' + res.status); }) .catch(err => { console.warn(err) diff --git a/examples/global-search.v2.test.js b/examples/global-search.v2.test.js index 3fdd271b..3cc278d7 100644 --- a/examples/global-search.v2.test.js +++ b/examples/global-search.v2.test.js @@ -82,7 +82,7 @@ describe('GlobalSearchV2', () => { globalSearchService.search(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('search() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -104,7 +104,7 @@ describe('GlobalSearchV2', () => { globalSearchService.getSupportedTypes({}) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getSupportedTypes() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/global-tagging.v1.test.js b/examples/global-tagging.v1.test.js index 6424efa7..1b28897b 100644 --- a/examples/global-tagging.v1.test.js +++ b/examples/global-tagging.v1.test.js @@ -84,7 +84,7 @@ describe('GlobalTaggingV1', () => { globalTaggingService.createTag(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('createTag() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -114,7 +114,7 @@ describe('GlobalTaggingV1', () => { globalTaggingService.listTags(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listTags() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -145,7 +145,7 @@ describe('GlobalTaggingV1', () => { globalTaggingService.attachTag(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('attachTag() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -176,7 +176,7 @@ describe('GlobalTaggingV1', () => { globalTaggingService.detachTag(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('detachTag() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -202,7 +202,7 @@ describe('GlobalTaggingV1', () => { globalTaggingService.deleteTag(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteTag() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -227,7 +227,7 @@ describe('GlobalTaggingV1', () => { globalTaggingService.deleteTagAll(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteTagAll() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/iam-access-groups.v2.test.js b/examples/iam-access-groups.v2.test.js index 9d2f8132..61ffab95 100644 --- a/examples/iam-access-groups.v2.test.js +++ b/examples/iam-access-groups.v2.test.js @@ -86,7 +86,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.createAccessGroup(params) .then(res => { testGroupId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('createAccessGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -112,7 +112,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.getAccessGroup(params) .then(res => { testGroupETag = res.headers['etag']; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAccessGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -140,7 +140,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.updateAccessGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateAccessGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -165,7 +165,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.listAccessGroups(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listAccessGroups() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -199,7 +199,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.addMembersToAccessGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('addMembersToAccessGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -225,7 +225,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.isMemberOfAccessGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('isMemberOfAccessGroup() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -250,7 +250,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.listAccessGroupMembers(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listAccessGroupMembers() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -276,7 +276,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.removeMemberFromAccessGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('removeMemberFromAccessGroup() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -302,7 +302,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.removeMembersFromAccessGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('removeMembersFromAccessGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -330,7 +330,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.addMemberToMultipleAccessGroups(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('addMemberToMultipleAccessGroups() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -356,7 +356,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.removeMemberFromAllAccessGroups(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('removeMemberFromAllAccessGroups() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -392,7 +392,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.addAccessGroupRule(params) .then(res => { testClaimRuleId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('addAccessGroupRule() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -419,7 +419,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.getAccessGroupRule(params) .then(res => { testClaimRuleETag = res.headers['etag']; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAccessGroupRule() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -456,7 +456,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.replaceAccessGroupRule(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('replaceAccessGroupRule() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -481,7 +481,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.listAccessGroupRules(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listAccessGroupRules() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -507,7 +507,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.removeAccessGroupRule(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('removeAccessGroupRule() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -532,7 +532,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.getAccountSettings(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAccountSettings() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -558,7 +558,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.updateAccountSettings(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateAccountSettings() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -583,7 +583,7 @@ describe('IamAccessGroupsV2', () => { iamAccessGroupsService.deleteAccessGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteAccessGroup() response status code: ' + res.status); }) .catch(err => { console.warn(err) diff --git a/examples/iam-identity.v1.test.js b/examples/iam-identity.v1.test.js index 518e1001..3f0991ce 100644 --- a/examples/iam-identity.v1.test.js +++ b/examples/iam-identity.v1.test.js @@ -96,7 +96,7 @@ describe('IamIdentityV1', () => { iamIdentityService.createApiKey(params) .then(res => { apikeyId = res.result.id - console.log(JSON.stringify(res.result, null, 2)); + console.log('createApiKey() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -123,7 +123,7 @@ describe('IamIdentityV1', () => { iamIdentityService.listApiKeys(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listApiKeys() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -149,7 +149,7 @@ describe('IamIdentityV1', () => { iamIdentityService.getApiKeysDetails(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getApiKeysDetails() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -177,7 +177,7 @@ describe('IamIdentityV1', () => { iamIdentityService.getApiKey(params) .then(res => { apikeyEtag = res.headers['etag']; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getApiKey() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -207,7 +207,7 @@ describe('IamIdentityV1', () => { iamIdentityService.updateApiKey(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateApiKey() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -234,7 +234,7 @@ describe('IamIdentityV1', () => { iamIdentityService.lockApiKey(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('lockApiKey() response status code: ' + res.status); }) .catch(err => { console.warn(err); @@ -261,7 +261,7 @@ describe('IamIdentityV1', () => { iamIdentityService.unlockApiKey(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('unlockApiKey() response status code: ' + res.status); }) .catch(err => { console.warn(err); @@ -288,7 +288,7 @@ describe('IamIdentityV1', () => { iamIdentityService.deleteApiKey(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteApiKey() response status code: ' + res.status); }) .catch(err => { console.warn(err); @@ -316,7 +316,7 @@ describe('IamIdentityV1', () => { iamIdentityService.createServiceId(params) .then(res => { svcId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('createServiceId() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -344,7 +344,7 @@ describe('IamIdentityV1', () => { iamIdentityService.getServiceId(params) .then(res => { svcIdEtag = res.headers['etag']; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getServiceId() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -370,7 +370,7 @@ describe('IamIdentityV1', () => { iamIdentityService.listServiceIds(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listServiceIds() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -400,7 +400,7 @@ describe('IamIdentityV1', () => { iamIdentityService.updateServiceId(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateServiceId() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err); @@ -427,7 +427,7 @@ describe('IamIdentityV1', () => { iamIdentityService.lockServiceId(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('lockServiceId() response status code: ' + res.status); }) .catch(err => { console.warn(err); @@ -454,7 +454,7 @@ describe('IamIdentityV1', () => { iamIdentityService.unlockServiceId(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('unlockServiceId() response status code: ' + res.status); }) .catch(err => { console.warn(err); @@ -482,7 +482,7 @@ describe('IamIdentityV1', () => { iamIdentityService.deleteServiceId(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteServiceId() response status code: ' + res.status); }) .catch(err => { console.warn(err); @@ -511,7 +511,7 @@ describe('IamIdentityV1', () => { iamIdentityService.getAccountSettings(params) .then(res => { accountSettingsEtag = res.headers['etag']; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAccountSettings() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -545,7 +545,7 @@ describe('IamIdentityV1', () => { iamIdentityService.updateAccountSettings(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateAccountSettings() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/iam-policy-management.v1.test.js b/examples/iam-policy-management.v1.test.js index e18e566e..c61528d3 100644 --- a/examples/iam-policy-management.v1.test.js +++ b/examples/iam-policy-management.v1.test.js @@ -132,7 +132,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.createPolicy(params) .then(res => { examplePolicyId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('createPolicy() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -160,7 +160,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.getPolicy(params) .then(res => { examplePolicyETag = res.headers.etag; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getPolicy() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -230,7 +230,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.updatePolicy(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updatePolicy() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -259,7 +259,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.listPolicies(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listPolicies() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -285,7 +285,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.deletePolicy(params) .then(res => { - console.log(JSON.stringify(res, null, 2)); + console.log('deletePolicy() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -317,7 +317,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.createRole(params) .then(res => { exampleCustomRoleId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('createRole() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -345,7 +345,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.getRole(params) .then(res => { exampleCustomRoleEtag = res.headers.etag; - console.log(JSON.stringify(res.result, null, 2)); + console.log('getRole() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -376,7 +376,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.updateRole(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateRole() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -402,7 +402,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.listRoles(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listRoles() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -429,7 +429,7 @@ describe('IamPolicyManagementV1', () => { iamPolicyManagementService.deleteRole(params) .then(res => { - console.log(JSON.stringify(res, null, 2)); + console.log('deleteRole() response status code: ' + res.status); }) .catch(err => { console.warn(err) diff --git a/examples/open-service-broker.v1.test.js b/examples/open-service-broker.v1.test.js index e57384c6..69506002 100644 --- a/examples/open-service-broker.v1.test.js +++ b/examples/open-service-broker.v1.test.js @@ -95,7 +95,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.getServiceInstanceState(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getServiceInstanceState() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -123,7 +123,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.replaceServiceInstanceState(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('replaceServiceInstanceState() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -163,7 +163,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.replaceServiceInstance(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('replaceServiceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -203,7 +203,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.updateServiceInstance(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateServiceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -224,7 +224,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.listCatalog({}) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listCatalog() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -252,7 +252,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.getLastOperation(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getLastOperation() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -289,7 +289,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.replaceServiceBinding(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('replaceServiceBinding() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -316,7 +316,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.deleteServiceInstance(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteServiceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -344,7 +344,7 @@ describe('OpenServiceBrokerV1', () => { openServiceBrokerService.deleteServiceBinding(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteServiceBinding() response status: ' + res.status); }) .catch(err => { console.warn(err) diff --git a/examples/resource-controller.v2.test.js b/examples/resource-controller.v2.test.js index 98ab6cb5..e46d7d4d 100644 --- a/examples/resource-controller.v2.test.js +++ b/examples/resource-controller.v2.test.js @@ -107,7 +107,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.createResourceInstance(params) .then(res => { instanceGuid = res.result.guid; - console.log('createResourceInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('createResourceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -133,7 +133,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.getResourceInstance(params) .then(res => { - console.log('getResourceInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('getResourceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -159,7 +159,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceInstances(params) .then(res => { - console.log('listResourceInstances() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceInstances() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -191,7 +191,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.updateResourceInstance(params) .then(res => { - console.log('updateResourceInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('updateResourceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -220,7 +220,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.createResourceAlias(params) .then(res => { aliasGuid = res.result.guid; - console.log('createResourceAlias() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('createResourceAlias() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -246,7 +246,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.getResourceAlias(params) .then(res => { - console.log('getResourceAlias() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('getResourceAlias() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -272,7 +272,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceAliases(params) .then(res => { - console.log('listResourceAliases() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceAliases() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -300,7 +300,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.updateResourceAlias(params) .then(res => { - console.log('updateResourceAlias() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('updateResourceAlias() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -328,7 +328,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceAliasesForInstance(params) .then(res => { - console.log('listResourceAliasesForInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceAliasesForInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -361,7 +361,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.createResourceBinding(params) .then(res => { bindingGuid = res.result.guid; - console.log('createResourceBinding() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('createResourceBinding() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -387,7 +387,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.getResourceBinding(params) .then(res => { - console.log('getResourceBinding() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('getResourceBinding() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -413,7 +413,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceBindings(params) .then(res => { - console.log('listResourceBindings() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceBindings() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -440,7 +440,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.updateResourceBinding(params) .then(res => { - console.log('updateResourceBinding() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('updateResourceBinding() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -468,7 +468,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceBindingsForAlias(params) .then(res => { - console.log('listResourceBindingsForAlias() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceBindingsForAlias() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -501,7 +501,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.createResourceKey(params) .then(res => { instanceKeyGuid = res.result.guid; - console.log('createResourceKey() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('createResourceKey() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -527,7 +527,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.getResourceKey(params) .then(res => { - console.log('getResourceKey() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('getResourceKey() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -553,7 +553,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceKeys(params) .then(res => { - console.log('listResourceKeys() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceKeys() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -580,7 +580,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.updateResourceKey(params) .then(res => { - console.log('updateResourceKey() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('updateResourceKey() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -608,7 +608,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.listResourceKeysForInstance(params) .then(res => { - console.log('listResourceKeysForInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listResourceKeysForInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -712,7 +712,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.lockResourceInstance(params) .then(res => { - console.log('lockResourceInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('lockResourceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -738,7 +738,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.unlockResourceInstance(params) .then(res => { - console.log('unlockResourceInstance() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('unlockResourceInstance() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -799,7 +799,7 @@ describe('ResourceControllerV2', () => { reclamationId = reclaim.id; } }); - console.log('listReclamations() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('listReclamations() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -826,7 +826,7 @@ describe('ResourceControllerV2', () => { resourceControllerService.runReclamationAction(params) .then(res => { - console.log('runReclamationAction() response:\n' + JSON.stringify(res.result, null, 2)); + console.log('runReclamationAction() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/resource-manager.v2.test.js b/examples/resource-manager.v2.test.js index a3d74d84..20a10408 100644 --- a/examples/resource-manager.v2.test.js +++ b/examples/resource-manager.v2.test.js @@ -90,7 +90,7 @@ describe('ResourceManagerV2', () => { resourceManagerService.createResourceGroup(params) .then(res => { resourceGroupId = res.result.id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('createResourceGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -116,7 +116,7 @@ describe('ResourceManagerV2', () => { resourceManagerService.getResourceGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getResourceGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -144,7 +144,7 @@ describe('ResourceManagerV2', () => { resourceManagerService.updateResourceGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateResourceGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -171,7 +171,7 @@ describe('ResourceManagerV2', () => { resourceManagerService.listResourceGroups(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listResourceGroups() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -197,7 +197,7 @@ describe('ResourceManagerV2', () => { deleteResourceManagerService.deleteResourceGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('deleteResourceGroup() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -220,7 +220,7 @@ describe('ResourceManagerV2', () => { resourceManagerService.listQuotaDefinitions({}) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listQuotaDefinitions() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -246,7 +246,7 @@ describe('ResourceManagerV2', () => { resourceManagerService.getQuotaDefinition(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getQuotaDefinition() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/usage-metering.v4.test.js b/examples/usage-metering.v4.test.js index 63d44d16..87801fde 100644 --- a/examples/usage-metering.v4.test.js +++ b/examples/usage-metering.v4.test.js @@ -110,7 +110,7 @@ describe('UsageMeteringV4', () => { usageMeteringService.reportResourceUsage(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('reportResourceUsage() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/usage-reports.v4.test.js b/examples/usage-reports.v4.test.js index 1aeb8d81..fd023922 100644 --- a/examples/usage-reports.v4.test.js +++ b/examples/usage-reports.v4.test.js @@ -85,7 +85,7 @@ describe('UsageReportsV4', () => { usageReportsService.getAccountSummary(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAccountSummary() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -111,7 +111,7 @@ describe('UsageReportsV4', () => { usageReportsService.getAccountUsage(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getAccountUsage() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -138,7 +138,7 @@ describe('UsageReportsV4', () => { usageReportsService.getResourceGroupUsage(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getResourceGroupUsage() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -165,7 +165,7 @@ describe('UsageReportsV4', () => { usageReportsService.getOrgUsage(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getOrgUsage() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -191,7 +191,7 @@ describe('UsageReportsV4', () => { usageReportsService.getResourceUsageAccount(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getResourceUsageAccount() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -218,7 +218,7 @@ describe('UsageReportsV4', () => { usageReportsService.getResourceUsageResourceGroup(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getResourceUsageResourceGroup() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -245,7 +245,7 @@ describe('UsageReportsV4', () => { usageReportsService.getResourceUsageOrg(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getResourceUsageOrg() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) diff --git a/examples/user-management.v1.test.js b/examples/user-management.v1.test.js index ece2e757..641336f6 100644 --- a/examples/user-management.v1.test.js +++ b/examples/user-management.v1.test.js @@ -138,7 +138,7 @@ describe('UserManagementV1', () => { userManagementAdminService.inviteUsers(params) .then(res => { deleteUserId = res.result.resources[0].id; - console.log(JSON.stringify(res.result, null, 2)); + console.log('inviteUsers() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -168,7 +168,7 @@ describe('UserManagementV1', () => { userManagementService.listUsers(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('listUsers() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -198,7 +198,7 @@ describe('UserManagementV1', () => { userManagementAdminService.removeUser(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('removeUser() response status code: ' + res.status); }) .catch(err => { console.warn(err) @@ -228,7 +228,7 @@ describe('UserManagementV1', () => { userManagementService.getUserProfile(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getUserProfile() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -259,7 +259,7 @@ describe('UserManagementV1', () => { userManagementService.updateUserProfile(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateUserProfile() response status code:' + res.status); }) .catch(err => { console.warn(err) @@ -289,7 +289,7 @@ describe('UserManagementV1', () => { userManagementService.getUserSettings(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('getUserSettings() result:\n' + JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) @@ -321,7 +321,7 @@ describe('UserManagementV1', () => { userManagementService.updateUserSettings(params) .then(res => { - console.log(JSON.stringify(res.result, null, 2)); + console.log('updateUserSettings() response status code: ' + res.status); }) .catch(err => { console.warn(err)