--Task--
name: Validation_user_idm
enabled: True
class_name: CheckUserTask
source_name: idm
source_namespace: >default<
target_name: idm
target_namespace: >default<
start: 0
stop: None
timeout: not yet initialized for this Task as timeout was not explicitly defined, see updates bellow
loop: False
interval: None
dependencies: []
wait_for: []
options: {}
group_name: None
Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock
________________________________________________________________________________
[20/Sep/2022 02:11:24] Validation_user_idm pre : N/A
________________________________________________________________________________
[20/Sep/2022 02:11:24] - INFO: setting default timeout for task - 2x global_duration or 300 seconds (whatever is higher):
[20/Sep/2022 02:11:24] - INFO: Timeout for this Task has changed to 10h (36000 seconds)
________________________________________________________________________________
[20/Sep/2022 02:11:24] Validation_user_idm step1 : Make sure we can create a user
________________________________________________________________________________
Authenticate user amadmin via REST
[http_cmd]: curl -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: GSp9sEs5clmJ0PvxeOBUxhWU" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "A9lqwlH4XY-pPsVV7eLikzvpsKs.*AAJTSQACMDIAAlNLABxoc0dXTHRIOGJrT3NIZXlxWHplR3hYSVdCZ009AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
Obtain Oauth2 authz code via REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=A9lqwlH4XY-pPsVV7eLikzvpsKs.*AAJTSQACMDIAAlNLABxoc0dXTHRIOGJrT3NIZXlxWHplR3hYSVdCZ009AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1663639885.492.10149.170393|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "A9lqwlH4XY-pPsVV7eLikzvpsKs.*AAJTSQACMDIAAlNLABxoc0dXTHRIOGJrT3NIZXlxWHplR3hYSVdCZ009AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/authorize?client_id=smokeclient&scope=fr:idm:*&redirect_uri=https://fake.com&response_type=code&realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 302 (expected 302)
--- http response ---
{'Date': 'Tue, 20 Sep 2022 02:11:25 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Cache-Control': 'no-store', 'Location': 'https://fake.com?code=E3lIUERhUFXmRPpCRbO1U3SyNVg&iss=https%3A%2F%2Fxlou.iam.xlou-cdm.engineeringpit.com%2Fam%2Foauth2&client_id=smokeclient', 'Pragma': 'no-cache', 'Set-Cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-ForgeRock-TransactionId': 'a655e1756b9c7aa97490667c6a01d063'}
Oauth2 get access-token REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -L -X POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://fake.com", "client_id": "smokeclient", "code": "E3lIUERhUFXmRPpCRbO1U3SyNVg"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/access_token?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"access_token": "UjL8NUnch-jbhiu2EgD_dCdpobA",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer UjL8NUnch-jbhiu2EgD_dCdpobA" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm@forgerock.com"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user?_action=create"
[http_cmd]: http status code OK
--- status code ---
http status code is 201 (expected 201)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "0903e92f-84c3-4316-9693-0d2fdb9fac97",
"_rev": "1d058b64-422a-4325-b583-be607ce76fc8-1000409",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"assignedDashboard": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Sep/2022 02:11:26] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm" -H "X-OpenAM-Password: T35tr0ck123" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "9sKFbF2hL6KY-AEEKBnU6POW3yM.*AAJTSQACMDIAAlNLABw0Z01GdEZ2SVptS0lqR2QyZDdYRXdQUllicnM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
Obtain Oauth2 authz code via REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=9sKFbF2hL6KY-AEEKBnU6POW3yM.*AAJTSQACMDIAAlNLABw0Z01GdEZ2SVptS0lqR2QyZDdYRXdQUllicnM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1663639887.791.10434.665131|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "9sKFbF2hL6KY-AEEKBnU6POW3yM.*AAJTSQACMDIAAlNLABw0Z01GdEZ2SVptS0lqR2QyZDdYRXdQUllicnM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/authorize?client_id=smokeclient&scope=fr:idm:*&redirect_uri=https://fake.com&response_type=code&realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 302 (expected 302)
--- http response ---
{'Date': 'Tue, 20 Sep 2022 02:11:27 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Cache-Control': 'no-store', 'Location': 'https://fake.com?code=iJ-MBZcPrH0oKA4P2WqDIdI4MtY&iss=https%3A%2F%2Fxlou.iam.xlou-cdm.engineeringpit.com%2Fam%2Foauth2&client_id=smokeclient', 'Pragma': 'no-cache', 'Set-Cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-ForgeRock-TransactionId': '667b80271ff59ee93e348f04fa205da3'}
Oauth2 get access-token REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -L -X POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://fake.com", "client_id": "smokeclient", "code": "iJ-MBZcPrH0oKA4P2WqDIdI4MtY"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/access_token?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"access_token": "NE-DMxUon2_m01FYrpXYoGAzSiQ",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer NE-DMxUon2_m01FYrpXYoGAzSiQ" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/0903e92f-84c3-4316-9693-0d2fdb9fac97"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "0903e92f-84c3-4316-9693-0d2fdb9fac97",
"_rev": "1d058b64-422a-4325-b583-be607ce76fc8-1000409",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"assignedDashboard": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Sep/2022 02:11:27] Validation_user_idm step3 : Make sure user can authenticate himself
________________________________________________________________________________
Anonymous POST to Login service endpoint to obtain appropriate callbacks
Call to Login Tree
[http_cmd]: curl -H "Content-Type: application/json" -H "Accept-API-Version: protocol=2.0,resource=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/realms/root/authenticate?authIndexType=service&authIndexValue=Login"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (39 lines):
----- output -----
{
"authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoia202bDM1cHNtaXA5ajM2Z3FvNnF2MzJ1YW8iLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVhBaU9pSktWMVFpTENKamRIa2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VYSndaVGN4YzNCbFlUZzVSMUI1VUhsUFkzaEpiM1Z0YjFoamJVeFJhbGhHUkV3MVNVc3dVR2t3VkRocFgyVnFiMjUzVWpGZlVHWmlaVTlxYURSRFRHSkRWR3BZWVVkVFluTTRNRmgwUVhCSmNIQm9VRE5hY1VNMFYwWk9TREF5YzNsWldraG9SSHB2UzE5S1ZYSnlVRlp3YVdwNmVuSm5kM0J2TlRKQk9FVjVZVXB2Tm5odU1IRnJORUpLYms1SVRtZzVOM0ZtZUhSRmRWUlVVMFJNYjJWSldWVXRTVXBJTFd0UU5qRlJMblZ1TkhGcVZYcDRObTlhWHpGT2VWVXllV0U1ZGtFLkJKYkcwaTZwc3ZLLVJXaGk2ZjNFYTFxMEtFcU9DUlg0WGV4WkFvRFhqUGsiLCJleHAiOjE2NjM2NDAxODgsImlhdCI6MTY2MzYzOTg4OH0.8bYcxvXZRgKW-g_8fnrUi_jcC3QRIBwWt0N7gXcF9vs",
"callbacks": [
{
"type": "NameCallback",
"output": [
{
"name": "prompt",
"value": "User Name"
}
[...]
"name": "IDToken2",
"value": ""
}
],
"_id": 1
}
],
"header": "Sign In",
"description": "New here? Create an account
Forgot username? Forgot password?"
}
Set value for first two callbacks for login
Call to Login Tree with input values
[http_cmd]: curl -H "Content-Type: application/json" -H "Accept-API-Version: protocol=2.0,resource=1.0" -L -X POST --data '{"authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoia202bDM1cHNtaXA5ajM2Z3FvNnF2MzJ1YW8iLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVhBaU9pSktWMVFpTENKamRIa2lPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LlpYbEtNR1ZZUVd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bGhHUkV3MVNVc3dVR2t3VkRocFgyVnFiMjUzVWpGZlVHWmlaVTlxYURSRFRHSkRWR3BZWVVkVFluTTRNRmgwUVhCSmNIQm9VRE5hY1VNMFYwWk9TREF5YzNsWldraG9SSHB2UzE5S1ZYSnlVRlp3YVdwNmVuSm5kM0J2TlRKQk9FVjVZVXB2Tm5odU1IRnJORUpLYms1SVRtZzVOM0ZtZUhSRmRWUlVVMFJNYjJWSldWVXRTVXBJTFd0UU5qRlJMblZ1TkhGcVZYcDRObTlhWHpGT2VWVXllV0U1ZGtFLkJKYkcwaTZwc3ZLLVJXaGk2ZjNFYTFxMEtFcU9DUlg0WGV4WkFvRFhqUGsiLCJleHAiOjE2NjM2NDAxODgsImlhdCI6MTY2MzYzOTg4OH0.8bYcxvXZRgKW-g_8fnrUi_jcC3QRIBwWt0N7gXcF9vs", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm"}], "_id": 0}, {"type": "PasswordCallback", "output": [{"name": "prompt", "value": "Password"}], "input": [{"name": "IDToken2", "value": "T35tr0ck123"}], "_id": 1}], "header": "Sign In", "description": "New here? Create an account
Forgot username? Forgot password?"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/realms/root/authenticate?authIndexType=service&authIndexValue=Login"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "vsg9pFuZgM5dkiZgKJs15tc-irE.*AAJTSQACMDIAAlNLABxiTUExQithK0FNeHdQdkUwR2UxK2NBeTZQV289AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[20/Sep/2022 02:11:30] Validation_user_idm step4 : Make sure we can delete the user
________________________________________________________________________________
Authenticate user amadmin via REST
[http_cmd]: curl -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: GSp9sEs5clmJ0PvxeOBUxhWU" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "MM1HEymlbtREGs0gdsDOxNf47a4.*AAJTSQACMDIAAlNLABxWd2RnVUtvczNva0s4Y1BQQklTc05Ob3pxanc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
Obtain Oauth2 authz code via REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=MM1HEymlbtREGs0gdsDOxNf47a4.*AAJTSQACMDIAAlNLABxWd2RnVUtvczNva0s4Y1BQQklTc05Ob3pxanc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1663639891.247.10152.482683|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "MM1HEymlbtREGs0gdsDOxNf47a4.*AAJTSQACMDIAAlNLABxWd2RnVUtvczNva0s4Y1BQQklTc05Ob3pxanc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/authorize?client_id=smokeclient&scope=fr:idm:*&redirect_uri=https://fake.com&response_type=code&realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 302 (expected 302)
--- http response ---
{'Date': 'Tue, 20 Sep 2022 02:11:30 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Cache-Control': 'no-store', 'Location': 'https://fake.com?code=JHgrftGUdp3BzqMwn_57F662Fyk&iss=https%3A%2F%2Fxlou.iam.xlou-cdm.engineeringpit.com%2Fam%2Foauth2&client_id=smokeclient', 'Pragma': 'no-cache', 'Set-Cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-ForgeRock-TransactionId': 'bf497b152a02175656844a6a01c18592'}
Oauth2 get access-token REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -L -X POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://fake.com", "client_id": "smokeclient", "code": "JHgrftGUdp3BzqMwn_57F662Fyk"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/access_token?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"access_token": "d4htZlMLbvd4M9foym5mAkzqMEk",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer d4htZlMLbvd4M9foym5mAkzqMEk" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/0903e92f-84c3-4316-9693-0d2fdb9fac97"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "0903e92f-84c3-4316-9693-0d2fdb9fac97",
"_rev": "1d058b64-422a-4325-b583-be607ce76fc8-1000409",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"assignedDashboard": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Sep/2022 02:11:31] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped