-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ingest-idp): emit empty GroupMembership when there are no groups
- Loading branch information
aditya-radhakrishnan
committed
Jan 31, 2023
1 parent
efaf092
commit 83c5fec
Showing
5 changed files
with
388 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,5 +66,39 @@ | |
"theme": null, | ||
"visibility": null, | ||
"onPremisesProvisioningErrors": [] | ||
}, | ||
{ | ||
"id": "00000000-0000-0000-0000-0000000000002", | ||
"deletedDateTime": null, | ||
"classification": null, | ||
"createdDateTime": "2021-08-20 11: 00: 00", | ||
"creationOptions": [], | ||
"description": "This is an interesting description", | ||
"displayName": "groupDisplayName3", | ||
"expirationDateTime": null, | ||
"groupTypes": [], | ||
"isAssignableToRole": null, | ||
"mail": "[email protected]", | ||
"mailEnabled": false, | ||
"mailNickname": "groupDisplayName3", | ||
"membershipRule": null, | ||
"membershipRuleProcessingState": null, | ||
"onPremisesDomainName": null, | ||
"onPremisesLastSyncDateTime": null, | ||
"onPremisesNetBiosName": null, | ||
"onPremisesSamAccountName": null, | ||
"onPremisesSecurityIdentifier": null, | ||
"onPremisesSyncEnabled": null, | ||
"preferredDataLocation": null, | ||
"preferredLanguage": null, | ||
"proxyAddresses": [], | ||
"renewedDateTime": "2021-08-20 11:00:00", | ||
"resourceBehaviorOptions": [], | ||
"resourceProvisioningOptions": [], | ||
"securityEnabled": true, | ||
"securityIdentifier": "xxxxx", | ||
"theme": null, | ||
"visibility": null, | ||
"onPremisesProvisioningErrors": [] | ||
} | ||
] |
292 changes: 292 additions & 0 deletions
292
...ata-ingestion/tests/integration/azure_ad/azure_ad_mces_golden_empty_group_membership.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
[ | ||
{ | ||
"auditHeader": null, | ||
"proposedSnapshot": { | ||
"com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot": { | ||
"urn": "urn:li:corpGroup:groupDisplayName1", | ||
"aspects": [ | ||
{ | ||
"com.linkedin.pegasus2avro.identity.CorpGroupInfo": { | ||
"displayName": "groupDisplayName1", | ||
"email": null, | ||
"admins": [], | ||
"members": [], | ||
"groups": [], | ||
"description": null, | ||
"slack": null | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"proposedDelta": null, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpGroup", | ||
"entityUrn": "urn:li:corpGroup:groupDisplayName1", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "origin", | ||
"aspect": { | ||
"value": "{\"type\": \"EXTERNAL\", \"externalType\": \"AZURE_AD\"}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpGroup", | ||
"entityUrn": "urn:li:corpGroup:groupDisplayName1", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "status", | ||
"aspect": { | ||
"value": "{\"removed\": false}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"proposedSnapshot": { | ||
"com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot": { | ||
"urn": "urn:li:corpGroup:groupDisplayName2", | ||
"aspects": [ | ||
{ | ||
"com.linkedin.pegasus2avro.identity.CorpGroupInfo": { | ||
"displayName": "groupDisplayName2", | ||
"email": "[email protected]", | ||
"admins": [], | ||
"members": [], | ||
"groups": [], | ||
"description": "This is an interesting description", | ||
"slack": null | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"proposedDelta": null, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpGroup", | ||
"entityUrn": "urn:li:corpGroup:groupDisplayName2", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "origin", | ||
"aspect": { | ||
"value": "{\"type\": \"EXTERNAL\", \"externalType\": \"AZURE_AD\"}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpGroup", | ||
"entityUrn": "urn:li:corpGroup:groupDisplayName2", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "status", | ||
"aspect": { | ||
"value": "{\"removed\": false}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"proposedSnapshot": { | ||
"com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot": { | ||
"urn": "urn:li:corpuser:[email protected]", | ||
"aspects": [ | ||
{ | ||
"com.linkedin.pegasus2avro.identity.CorpUserInfo": { | ||
"active": true, | ||
"displayName": "John Green", | ||
"email": "[email protected]", | ||
"title": null, | ||
"managerUrn": null, | ||
"departmentId": null, | ||
"departmentName": null, | ||
"firstName": "John", | ||
"lastName": "Green", | ||
"fullName": "John Green", | ||
"countryCode": null | ||
} | ||
}, | ||
{ | ||
"com.linkedin.pegasus2avro.identity.GroupMembership": { | ||
"groups": [ | ||
"urn:li:corpGroup:groupDisplayName1", | ||
"urn:li:corpGroup:groupDisplayName2" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"proposedDelta": null, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpuser", | ||
"entityUrn": "urn:li:corpuser:[email protected]", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "origin", | ||
"aspect": { | ||
"value": "{\"type\": \"EXTERNAL\", \"externalType\": \"AZURE_AD\"}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpuser", | ||
"entityUrn": "urn:li:corpuser:[email protected]", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "status", | ||
"aspect": { | ||
"value": "{\"removed\": false}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"proposedSnapshot": { | ||
"com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot": { | ||
"urn": "urn:li:corpuser:[email protected]", | ||
"aspects": [ | ||
{ | ||
"com.linkedin.pegasus2avro.identity.CorpUserInfo": { | ||
"active": true, | ||
"displayName": "Adam Hall", | ||
"email": "[email protected]", | ||
"title": null, | ||
"managerUrn": null, | ||
"departmentId": null, | ||
"departmentName": null, | ||
"firstName": "Adam", | ||
"lastName": "Hall", | ||
"fullName": "Adam Hall", | ||
"countryCode": null | ||
} | ||
}, | ||
{ | ||
"com.linkedin.pegasus2avro.identity.GroupMembership": { | ||
"groups": [ | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"proposedDelta": null, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpuser", | ||
"entityUrn": "urn:li:corpuser:[email protected]", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "origin", | ||
"aspect": { | ||
"value": "{\"type\": \"EXTERNAL\", \"externalType\": \"AZURE_AD\"}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
}, | ||
{ | ||
"auditHeader": null, | ||
"entityType": "corpuser", | ||
"entityUrn": "urn:li:corpuser:[email protected]", | ||
"entityKeyAspect": null, | ||
"changeType": "UPSERT", | ||
"aspectName": "status", | ||
"aspect": { | ||
"value": "{\"removed\": false}", | ||
"contentType": "application/json" | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1629795600000, | ||
"runId": "test-azure-ad", | ||
"registryName": null, | ||
"registryVersion": null, | ||
"properties": null | ||
} | ||
} | ||
] |
Oops, something went wrong.