-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
entityanalytics_okta: map group fields and add test infrastructure
- Loading branch information
Showing
8 changed files
with
258 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,202 @@ rules: | |
responses: | ||
- status_code: 200 | ||
body: | | ||
[{"id":"00ub0oNGTSWTBKOLGLNR","status":"ACTIVE","created":"2013-06-24T16:39:18.000Z","activated":"2013-06-24T16:39:19.000Z","statusChanged":"2013-06-24T16:39:19.000Z","lastLogin":"2013-06-24T17:39:19.000Z","lastUpdated":"2013-07-02T21:36:25.344Z","passwordChanged":"2013-07-02T21:36:25.344Z","profile":{"firstName":"Isaac","lastName":"Brock","email":"[email protected]","login":"[email protected]","mobilePhone":"555-415-1337"},"credentials":{"password":{"value":"tlpWENT2m"},"recovery_question":{"question":"Who's a major player in the cowboy scene?","answer":"Annie Oakley"},"provider":{"type":"OKTA","name":"OKTA"}}}] | ||
{{ minify_json ` | ||
[ | ||
{ | ||
"id": "00ub0oNGTSWTBKOLGLNR", | ||
"status": "ACTIVE", | ||
"created": "2013-06-24T16:39:18.000Z", | ||
"activated": "2013-06-24T16:39:19.000Z", | ||
"statusChanged": "2013-06-24T16:39:19.000Z", | ||
"lastLogin": "2013-06-24T17:39:19.000Z", | ||
"lastUpdated": "2013-07-02T21:36:25.344Z", | ||
"passwordChanged": "2013-07-02T21:36:25.344Z", | ||
"profile": { | ||
"firstName": "Isaac", | ||
"lastName": "Brock", | ||
"email": "[email protected]", | ||
"login": "[email protected]", | ||
"mobilePhone": "555-415-1337" | ||
}, | ||
"credentials": { | ||
"password": { | ||
"value": "tlpWENT2m" | ||
}, | ||
"recovery_question": { | ||
"question": "Who's a major player in the cowboy scene?", | ||
"answer": "Annie Oakley" | ||
}, | ||
"provider": { | ||
"type": "OKTA", | ||
"name": "OKTA" | ||
} | ||
} | ||
} | ||
] | ||
`}} | ||
- path: /api/v1/users/00ub0oNGTSWTBKOLGLNR/groups | ||
methods: ["GET"] | ||
responses: | ||
- status_code: 200 | ||
body: | | ||
{{ minify_json ` | ||
[ | ||
{ | ||
"id": "ODc3ZTBjNGZjY2Y4YmRi", | ||
"profile": { | ||
"description": "All users in your organization", | ||
"name": "Everyone" | ||
} | ||
} | ||
] | ||
`}} | ||
- path: /api/v1/devices | ||
methods: ["GET"] | ||
responses: | ||
- status_code: 200 | ||
body: | | ||
[{"id":"guo4a5u7YAHhjXrMK0g5","status":"CREATED","created":"2019-10-02T18:03:07.000Z","lastUpdated":"2019-10-02T18:03:07.000Z","profile":{"displayName":"Example Device name 1","platform":"WINDOWS","serialNumber":"XXDDRFCFRGF3M8MD6D","sid":"S-1-11-111","registered":true,"secureHardwarePresent":false,"diskEncryptionType":"ALL_INTERNAL_VOLUMES"},"resourceType":"UDDevice","resourceDisplayName":{"value":"Example Device name 1","sensitive":false},"resourceAlternateId":null,"resourceId":"guo4a5u7YAHhjXrMK0g4","_links":{"activate":{"href":"https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g4/lifecycle/activate","hints":{"allow":["POST"]}},"self":{"href":"https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g4","hints":{"allow":["GET","PATCH","PUT"]}},"users":{"href":"https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g4/users","hints":{"allow":["GET"]}}}},{"id":"guo4a5u7YAHhjXrMK0g5","status":"ACTIVE","created":"2023-06-21T23:24:02.000Z","lastUpdated":"2023-06-21T23:24:02.000Z","profile":{"displayName":"Example Device name 2","platform":"ANDROID","manufacturer":"Google","model":"Pixel 6","osVersion":"13:2023-05-05","registered":true,"secureHardwarePresent":true,"diskEncryptionType":"USER"},"resourceType":"UDDevice","resourceDisplayName":{"value":"Example Device name 2","sensitive":false},"resourceAlternateId":null,"resourceId":"guo4a5u7YAHhjXrMK0g5","_links":{"activate":{"href":"https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g5/lifecycle/activate","hints":{"allow":["POST"]}},"self":{"href":"https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g5","hints":{"allow":["GET","PATCH","PUT"]}},"users":{"href":"https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g5/users","hints":{"allow":["GET"]}}}}] | ||
{{ minify_json ` | ||
[ | ||
{ | ||
"id": "guo4a5u7YAHhjXrMK0g5", | ||
"status": "CREATED", | ||
"created": "2019-10-02T18:03:07.000Z", | ||
"lastUpdated": "2019-10-02T18:03:07.000Z", | ||
"profile": { | ||
"displayName": "Example Device name 1", | ||
"platform": "WINDOWS", | ||
"serialNumber": "XXDDRFCFRGF3M8MD6D", | ||
"sid": "S-1-11-111", | ||
"registered": true, | ||
"secureHardwarePresent": false, | ||
"diskEncryptionType": "ALL_INTERNAL_VOLUMES" | ||
}, | ||
"resourceType": "UDDevice", | ||
"resourceDisplayName": { | ||
"value": "Example Device name 1", | ||
"sensitive": false | ||
}, | ||
"resourceAlternateId": null, | ||
"resourceId": "guo4a5u7YAHhjXrMK0g4", | ||
"_links": { | ||
"activate": { | ||
"href": "https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g4/lifecycle/activate", | ||
"hints": { | ||
"allow": [ | ||
"POST" | ||
] | ||
} | ||
}, | ||
"self": { | ||
"href": "https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g4", | ||
"hints": { | ||
"allow": [ | ||
"GET", | ||
"PATCH", | ||
"PUT" | ||
] | ||
} | ||
}, | ||
"users": { | ||
"href": "https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g4/users", | ||
"hints": { | ||
"allow": [ | ||
"GET" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "guo4a5u7YAHhjXrMK0g5", | ||
"status": "ACTIVE", | ||
"created": "2023-06-21T23:24:02.000Z", | ||
"lastUpdated": "2023-06-21T23:24:02.000Z", | ||
"profile": { | ||
"displayName": "Example Device name 2", | ||
"platform": "ANDROID", | ||
"manufacturer": "Google", | ||
"model": "Pixel 6", | ||
"osVersion": "13:2023-05-05", | ||
"registered": true, | ||
"secureHardwarePresent": true, | ||
"diskEncryptionType": "USER" | ||
}, | ||
"resourceType": "UDDevice", | ||
"resourceDisplayName": { | ||
"value": "Example Device name 2", | ||
"sensitive": false | ||
}, | ||
"resourceAlternateId": null, | ||
"resourceId": "guo4a5u7YAHhjXrMK0g5", | ||
"_links": { | ||
"activate": { | ||
"href": "https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g5/lifecycle/activate", | ||
"hints": { | ||
"allow": [ | ||
"POST" | ||
] | ||
} | ||
}, | ||
"self": { | ||
"href": "https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g5", | ||
"hints": { | ||
"allow": [ | ||
"GET", | ||
"PATCH", | ||
"PUT" | ||
] | ||
} | ||
}, | ||
"users": { | ||
"href": "https://{yourOktaDomain}/api/v1/devices/guo4a5u7YAHhjXrMK0g5/users", | ||
"hints": { | ||
"allow": [ | ||
"GET" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
`}} | ||
- path: /api/v1/devices/guo4a5u7YAHhjXrMK0g5/users | ||
methods: ["GET"] | ||
responses: | ||
- status_code: 200 | ||
body: |- | ||
[{"id":"00ub0oNGTSWTBKOLGLNR","status":"ACTIVE","created":"2013-06-24T16:39:18.000Z","activated":"2013-06-24T16:39:19.000Z","statusChanged":"2013-06-24T16:39:19.000Z","lastLogin":"2013-06-24T17:39:19.000Z","lastUpdated":"2013-07-02T21:36:25.344Z","passwordChanged":"2013-07-02T21:36:25.344Z","profile":{"firstName":"Isaac","lastName":"Brock","email":"[email protected]","login":"[email protected]","mobilePhone":"555-415-1337"},"credentials":{"password":{"value":"tlpWENT2m"},"recovery_question":{"question":"Who's a major player in the cowboy scene?","answer":"Annie Oakley"},"provider":{"type":"OKTA","name":"OKTA"}}}] | ||
{{ minify_json ` | ||
[ | ||
{ | ||
"id": "00ub0oNGTSWTBKOLGLNR", | ||
"status": "ACTIVE", | ||
"created": "2013-06-24T16:39:18.000Z", | ||
"activated": "2013-06-24T16:39:19.000Z", | ||
"statusChanged": "2013-06-24T16:39:19.000Z", | ||
"lastLogin": "2013-06-24T17:39:19.000Z", | ||
"lastUpdated": "2013-07-02T21:36:25.344Z", | ||
"passwordChanged": "2013-07-02T21:36:25.344Z", | ||
"profile": { | ||
"firstName": "Isaac", | ||
"lastName": "Brock", | ||
"email": "[email protected]", | ||
"login": "[email protected]", | ||
"mobilePhone": "555-415-1337" | ||
}, | ||
"credentials": { | ||
"password": { | ||
"value": "tlpWENT2m" | ||
}, | ||
"recovery_question": { | ||
"question": "Who's a major player in the cowboy scene?", | ||
"answer": "Annie Oakley" | ||
}, | ||
"provider": { | ||
"type": "OKTA", | ||
"name": "OKTA" | ||
} | ||
} | ||
} | ||
] | ||
`}} |
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 |
---|---|---|
|
@@ -19,6 +19,15 @@ | |
"version": "8.11.0" | ||
}, | ||
"entityanalytics_okta": { | ||
"groups": [ | ||
{ | ||
"id": "OGYzMDMwYjFmODBiNjli", | ||
"profile": { | ||
"description": "All users in your organization", | ||
"name": "Everyone" | ||
} | ||
} | ||
], | ||
"user": { | ||
"activated": "2013-06-24T16:39:19.000Z", | ||
"created": "2013-06-24T16:39:18.000Z", | ||
|
@@ -117,6 +126,14 @@ | |
"postal_code": "94107", | ||
"region_name": "CA" | ||
}, | ||
"group": { | ||
"id": [ | ||
"OGYzMDMwYjFmODBiNjli" | ||
], | ||
"name": [ | ||
"Everyone" | ||
] | ||
}, | ||
"id": "00u5tvodynDjUCNKn697", | ||
"name": "[email protected]", | ||
"organization": { | ||
|
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
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