--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
________________________________________________________________________________
[05/Apr/2023 16:59:23] Validation_user_idm pre : N/A
________________________________________________________________________________
[05/Apr/2023 16:59:23] - INFO: Timeout for this Task has changed to 2h 30m (9000 seconds)
[05/Apr/2023 16:59:23] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[05/Apr/2023 16:59:23] 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: EKv3BOReW18D87Slm6Fmitvr" -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": "1ARyFWf6uw7DZ8_I2sk2MzNdzfQ.*AAJTSQACMDIAAlNLABwvVHhLeFppZi9oZzMxSkpudmM3SzFKQXpWL1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=1ARyFWf6uw7DZ8_I2sk2MzNdzfQ.*AAJTSQACMDIAAlNLABwvVHhLeFppZi9oZzMxSkpudmM3SzFKQXpWL1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680713964.342.18633.333019|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "1ARyFWf6uw7DZ8_I2sk2MzNdzfQ.*AAJTSQACMDIAAlNLABwvVHhLeFppZi9oZzMxSkpudmM3SzFKQXpWL1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 05 Apr 2023 16:59:23 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=dItNV9hp3gVYCaHSC_tWUje1X3w&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': '99a48cf330325bfaf90830261241b2b5'}
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": "dItNV9hp3gVYCaHSC_tWUje1X3w"}' "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": "3ub4ONLW8biJ44bnSQ1do9x0tZY",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 3ub4ONLW8biJ44bnSQ1do9x0tZY" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230405162534", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230405162534@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 [200, 201])
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "e0475900-6c52-47ce-923f-0d519d1ed2a8",
"_rev": "5f5627b7-ff2a-4153-907c-13323e8196fa-4000684",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230405162534@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230405162534",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[05/Apr/2023 16:59:24] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230405162534 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230405162534" -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": "iuBrlMndcpUPQemqREuDBRFMHsA.*AAJTSQACMDIAAlNLABxvSEordzFiNmpNVXdocTdjazR1UzBtTjFud0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=iuBrlMndcpUPQemqREuDBRFMHsA.*AAJTSQACMDIAAlNLABxvSEordzFiNmpNVXdocTdjazR1UzBtTjFud0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680713965.345.18780.601602|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "iuBrlMndcpUPQemqREuDBRFMHsA.*AAJTSQACMDIAAlNLABxvSEordzFiNmpNVXdocTdjazR1UzBtTjFud0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 05 Apr 2023 16:59:24 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=txVvtwSR7pkahYDSc3nh5Qv2N0g&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': '98605c7e7e7a280b851d3ef42e287f4f'}
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": "txVvtwSR7pkahYDSc3nh5Qv2N0g"}' "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": "IPFBUfgXhrEzVVzOE9DaBWwR98g",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer IPFBUfgXhrEzVVzOE9DaBWwR98g" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/e0475900-6c52-47ce-923f-0d519d1ed2a8"
[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": "e0475900-6c52-47ce-923f-0d519d1ed2a8",
"_rev": "5f5627b7-ff2a-4153-907c-13323e8196fa-4000684",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230405162534@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230405162534",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[05/Apr/2023 16:59:25] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoicDBhaHZkNHBvbWg4YzRidnJ2YzlwdHJqZWsiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUN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Xbk5IUldOTmFGOVVNVTk1UVZJME5pMDVkVW94YWw5UlZXTlpkV2Q2TmxsMFpVMXlRamQwVkdsUU5FZG5iazFQU3poSFlUVXpaRlJZYzFGVFZuazNSa1V4UmpGVFJITXdXSE55ZFZsemNFNUtiVGRqWTBvNE9XeG5ZMUp3TURsM1RXazRPR2RFYW14cFNXWmpUVmhyV21KSE9VWjBkamRRZURndGEwZE1VV1pGY0VGcGVIQXpZV053VjA1NWRtNDJUV0pUTTJKVU0xcGhXVU5yY1haVFJUWnFTRk5FUmxsWWNXMVVNbVZGYzJ0WGNrdG1RMEpFWXpBeFQwOTBaVGhxTFhkTlNEQmZNRUp1Y0VwMVlUaFlOblphVVRSdlJ6ZEhVbEpYYzA5dWRFOXFWamhSTG5Od1UydHRjQzAxUVV4WVJsVm1hRXc1TlhaQmIxRS5XY0FUMk1ZaW84R2dPcmFIWllCeDZtX194WjU2NHV3SFlSVGc0R2N5X1hRIiwiZXhwIjoxNjgwNzE0MjY2LCJpYXQiOjE2ODA3MTM5NjZ9.oVVUEWnxDK758phvIz_d4CEGsVFW5t-9KscL8npZSPw",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoicDBhaHZkNHBvbWg4YzRidnJ2YzlwdHJqZWsiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTUR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MDVkVW94YWw5UlZXTlpkV2Q2TmxsMFpVMXlRamQwVkdsUU5FZG5iazFQU3poSFlUVXpaRlJZYzFGVFZuazNSa1V4UmpGVFJITXdXSE55ZFZsemNFNUtiVGRqWTBvNE9XeG5ZMUp3TURsM1RXazRPR2RFYW14cFNXWmpUVmhyV21KSE9VWjBkamRRZURndGEwZE1VV1pGY0VGcGVIQXpZV053VjA1NWRtNDJUV0pUTTJKVU0xcGhXVU5yY1haVFJUWnFTRk5FUmxsWWNXMVVNbVZGYzJ0WGNrdG1RMEpFWXpBeFQwOTBaVGhxTFhkTlNEQmZNRUp1Y0VwMVlUaFlOblphVVRSdlJ6ZEhVbEpYYzA5dWRFOXFWamhSTG5Od1UydHRjQzAxUVV4WVJsVm1hRXc1TlhaQmIxRS5XY0FUMk1ZaW84R2dPcmFIWllCeDZtX194WjU2NHV3SFlSVGc0R2N5X1hRIiwiZXhwIjoxNjgwNzE0MjY2LCJpYXQiOjE2ODA3MTM5NjZ9.oVVUEWnxDK758phvIz_d4CEGsVFW5t-9KscL8npZSPw", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230405162534"}], "_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": "nj8yQWgUktI6beIeTyNV0vsqwTs.*AAJTSQACMDIAAlNLABxYZ3V3RWxEOTgxTWdwbThPY0loQVlUOG9OVjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[05/Apr/2023 16:59:27] 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: EKv3BOReW18D87Slm6Fmitvr" -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": "P8UWQBh4JJ94XEFS0RK6LKJ5tDQ.*AAJTSQACMDIAAlNLABw1V3hvSGFXaVZRMHFMVUI3NThsWktHNkR5Skk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=P8UWQBh4JJ94XEFS0RK6LKJ5tDQ.*AAJTSQACMDIAAlNLABw1V3hvSGFXaVZRMHFMVUI3NThsWktHNkR5Skk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680713968.216.18635.989990|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "P8UWQBh4JJ94XEFS0RK6LKJ5tDQ.*AAJTSQACMDIAAlNLABw1V3hvSGFXaVZRMHFMVUI3NThsWktHNkR5Skk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 05 Apr 2023 16:59: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=H80r4ac7qfYUsHX9WPS8QsmOkIA&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': '13457010a6da0b4faced93a166d0b3ec'}
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": "H80r4ac7qfYUsHX9WPS8QsmOkIA"}' "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": "eN1r3NisySz6n2zy8DRZwHZyX5w",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer eN1r3NisySz6n2zy8DRZwHZyX5w" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/e0475900-6c52-47ce-923f-0d519d1ed2a8"
[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": "e0475900-6c52-47ce-923f-0d519d1ed2a8",
"_rev": "5f5627b7-ff2a-4153-907c-13323e8196fa-4000684",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230405162534@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230405162534",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[05/Apr/2023 16:59:28] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped