Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #225 from JupiterOne/INT-11046
Browse files Browse the repository at this point in the history
Int 11046
  • Loading branch information
zemberdotnet authored May 29, 2024
2 parents 1f05f98 + 6cdacd6 commit bb288ad
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/steps/groups/__snapshots__/converters.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Object {
"adminCreated": true,
"aliases": Array [
"[email protected]",
"[email protected]",
],
"description": "[email protected] distribution list",
"directMembersCount": "5",
Expand All @@ -29,6 +30,10 @@ Object {
],
"_type": "google_group",
"adminCreated": true,
"aliases": Array [
"[email protected]",
"[email protected]",
],
"createdOn": undefined,
"description": "[email protected] distribution list",
"directMembersCount": "5",
Expand All @@ -37,6 +42,9 @@ Object {
"id": "0184mhaj0imamcg",
"kind": "admin#directory#group",
"name": "Random",
"nonEditableAliases": Array [
"[email protected]",
],
}
`;

Expand Down
12 changes: 12 additions & 0 deletions src/steps/groups/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ Object {
],
"_type": "google_group",
"adminCreated": true,
"aliases": undefined,
"createdOn": undefined,
"description": "Developers on JupiterOne integrations team",
"directMembersCount": "3",
Expand All @@ -671,6 +672,9 @@ Object {
"id": "023ckvvd4kecvcb",
"kind": "admin#directory#group",
"name": "Integration Developers",
"nonEditableAliases": Array [
"[email protected]",
],
},
Object {
"_class": Array [
Expand All @@ -697,6 +701,7 @@ Object {
],
"_type": "google_group",
"adminCreated": true,
"aliases": undefined,
"createdOn": undefined,
"description": "",
"directMembersCount": "0",
Expand All @@ -705,6 +710,9 @@ Object {
"id": "00sqyw643dnjpsf",
"kind": "admin#directory#group",
"name": "OverlappingEmailTest1",
"nonEditableAliases": Array [
"[email protected]",
],
},
Object {
"_class": Array [
Expand All @@ -731,6 +739,7 @@ Object {
],
"_type": "google_group",
"adminCreated": true,
"aliases": undefined,
"createdOn": undefined,
"description": "Test additional group",
"directMembersCount": "1",
Expand All @@ -739,6 +748,9 @@ Object {
"id": "03cqmetx36hgkxw",
"kind": "admin#directory#group",
"name": "TestExtraGroup",
"nonEditableAliases": Array [
"[email protected]",
],
},
Object {
"_class": Array [
Expand Down
2 changes: 1 addition & 1 deletion src/steps/groups/converters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getMockGroup(
directMembersCount: '5',
description: '[email protected] distribution list',
adminCreated: true,
aliases: ['[email protected]'],
aliases: ['[email protected]', '[email protected]'],
nonEditableAliases: ['[email protected]'],
...partial,
};
Expand Down
2 changes: 2 additions & 0 deletions src/steps/groups/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export function createGroupEntity(data: admin_directory_v1.Schema$Group) {
kind: data.kind,
name: data.name,
description: data.description,
aliases: data.aliases,
nonEditableAliases: data.nonEditableAliases,
},
},
});
Expand Down

0 comments on commit bb288ad

Please sign in to comment.