Skip to content

Commit

Permalink
fix(IAM Policy Management): update incorrect example operation id com…
Browse files Browse the repository at this point in the history
…ments to match API definition

Signed-off-by: Shaun Colley <[email protected]>
  • Loading branch information
swcolley authored and padamstx committed Jan 26, 2023
1 parent 02ee29d commit eefdc34
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/iam-policy-management.v1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('IamPolicyManagementV1', () => {
});

originalLog('replacePolicy() result:');
// begin-update_policy
// begin-replace_policy

const policySubjects = [
{
Expand Down Expand Up @@ -240,7 +240,7 @@ describe('IamPolicyManagementV1', () => {
console.warn(err)
}

// end-update_policy
// end-replace_policy
});
test('updatePolicyState request example', async () => {
expect(examplePolicyId).toBeDefined();
Expand All @@ -256,7 +256,7 @@ describe('IamPolicyManagementV1', () => {
});

originalLog('updatePolicyState() result:');
// begin-patch_policy
// begin-update_policy_state

const params = {
policyId: examplePolicyId,
Expand All @@ -271,7 +271,7 @@ describe('IamPolicyManagementV1', () => {
console.warn(err)
}

// end-patch_policy
// end-update_policy_state
});
test('listPolicies request example', async () => {
expect(exampleAccountId).not.toBeNull();
Expand Down Expand Up @@ -540,7 +540,7 @@ describe('IamPolicyManagementV1', () => {
});

originalLog('listV2Policies() result:');
// begin-list_v2_policy
// begin-list_v2_policies

const params = {
accountId: exampleAccountId,
Expand All @@ -555,7 +555,7 @@ describe('IamPolicyManagementV1', () => {
console.warn(err);
}

// end-list_v2_policy
// end-list_v2_policies
});
test('deleteV2Policy request example', async () => {

Expand Down Expand Up @@ -658,7 +658,7 @@ describe('IamPolicyManagementV1', () => {
});

originalLog('replaceRole() result:');
// begin-update_role
// begin-replace_role

const updatedRoleActions = ['iam-groups.groups.read', 'iam-groups.groups.list'];
const params = {
Expand All @@ -675,7 +675,7 @@ describe('IamPolicyManagementV1', () => {
console.warn(err);
}

// end-update_role
// end-replace_role
});
test('listRoles request example', async () => {

Expand Down

0 comments on commit eefdc34

Please sign in to comment.