--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/Feb/2023 17:51:58] Validation_user_idm pre : N/A
________________________________________________________________________________
[05/Feb/2023 17:51:58] - INFO: Timeout for this Task has changed to 16h (57600 seconds)
[05/Feb/2023 17:51:58] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[05/Feb/2023 17:51:58] 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: odbgOJOAqlRNDDzRHeXZYVVz" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-bsln.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "7L-HC3hSMlGI-pJqK2U-cQklJ2k.*AAJTSQACMDIAAlNLABxNUHdVQkw5ckE3VXNaTHBOU3BYeGwwWUsvRDQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=7L-HC3hSMlGI-pJqK2U-cQklJ2k.*AAJTSQACMDIAAlNLABxNUHdVQkw5ckE3VXNaTHBOU3BYeGwwWUsvRDQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1675619519.318.33754.420730|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "7L-HC3hSMlGI-pJqK2U-cQklJ2k.*AAJTSQACMDIAAlNLABxNUHdVQkw5ckE3VXNaTHBOU3BYeGwwWUsvRDQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-bsln.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': 'Sun, 05 Feb 2023 17:51:58 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=qtrONfVVsnQW8YHWTo2G6ypfdYc&iss=https%3A%2F%2Fxlou.iam.xlou-bsln.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': '9c9e511d47bc9395dc05475e8e54abeb'}
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": "qtrONfVVsnQW8YHWTo2G6ypfdYc"}' "https://xlou.iam.xlou-bsln.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": "9LK9WboAtK37LFCEyENhgUEKK3Y",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 9LK9WboAtK37LFCEyENhgUEKK3Y" --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-bsln.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": "0a9e0592-0c56-4a1c-bc6a-fd7693b1e80a",
"_rev": "f77635de-93c7-4557-94c4-0a385dabb17d-4000995",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[05/Feb/2023 17:51:59] 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-bsln.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "vGaADhSQ_43USnajPrgffTERImI.*AAJTSQACMDIAAlNLABxwNkJlR0YrVW9ySDdKUG9FNndnakN5QnZpMDg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=vGaADhSQ_43USnajPrgffTERImI.*AAJTSQACMDIAAlNLABxwNkJlR0YrVW9ySDdKUG9FNndnakN5QnZpMDg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1675619520.287.33760.269478|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "vGaADhSQ_43USnajPrgffTERImI.*AAJTSQACMDIAAlNLABxwNkJlR0YrVW9ySDdKUG9FNndnakN5QnZpMDg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-bsln.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': 'Sun, 05 Feb 2023 17:51:59 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=ngOKbw3kX6xqn1FdgyFUrwnN7B4&iss=https%3A%2F%2Fxlou.iam.xlou-bsln.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': '4d4375d34bd9d2e49fb26b6882a0d6cd'}
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": "ngOKbw3kX6xqn1FdgyFUrwnN7B4"}' "https://xlou.iam.xlou-bsln.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": "nmwOOXoG_bGpR8g0e_H2OnDVKNw",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer nmwOOXoG_bGpR8g0e_H2OnDVKNw" --insecure -L -X GET "https://xlou.iam.xlou-bsln.engineeringpit.com/openidm/managed/user/0a9e0592-0c56-4a1c-bc6a-fd7693b1e80a"
[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": "0a9e0592-0c56-4a1c-bc6a-fd7693b1e80a",
"_rev": "f77635de-93c7-4557-94c4-0a385dabb17d-4000995",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[05/Feb/2023 17:52:00] 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-bsln.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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiNjN1MWRvNHB0cnFoa2tpM3ZsNGFzZDc0YTUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFD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0c1WlVsSm9jbGhxTVdKeFpsSTFSREIxUVdsd2JFVnBWMDFpYm5SSlFsOXhlSEEyYzFVNVZtaFhSM1pXVkVwMmRIQlRVRVJ3WVVOVllYbExUVkIwVFRsNVptaElkWEJWVHpOTFZHOVFhMXBOWnpOQmNpMVRhSFpWTkV0MU1sVjRTM1J5V1UxV2NtTndRak5OU2pOUlJ6WkxXVFJ3TVVWb2EzVjNZVmxUYUdscE4wSjJjMkZ1TkY5ek1HZGFhVVpUVm1GU2RXTm1hbkp0WVVObE1tTlphM0JzYkVseFpYZFBja3BDY1d4V01tODVTbEUzWDNWd1IyaENhbGxwTVZGMmVXVnBRbnBYVFZORmVWOUNaa1UyV0UweVMycHFVbkZ0Ykc1a1NXSk1UMnRaTGsweVlXSTRZVVp4V0ZkSFMxVTBWMXB3VkhSRWRXYy5MUWFUQlBEYTdzOEo1UExvMVBuUUpSdUtoVHVXTERWVkh0N2hpVUxJSWo0IiwiZXhwIjoxNjc1NjE5ODIxLCJpYXQiOjE2NzU2MTk1MjF9.VYU53WKk1kSplO8iPJ6uwiWRY-Kz6foCI2JCxF8KZf0",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiNjN1MWRvNHB0cnFoa2tpM3ZsNGFzZDc0YTUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNU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lHV0c1WlVsSm9jbGhxTVdKeFpsSTFSREIxUVdsd2JFVnBWMDFpYm5SSlFsOXhlSEEyYzFVNVZtaFhSM1pXVkVwMmRIQlRVRVJ3WVVOVllYbExUVkIwVFRsNVptaElkWEJWVHpOTFZHOVFhMXBOWnpOQmNpMVRhSFpWTkV0MU1sVjRTM1J5V1UxV2NtTndRak5OU2pOUlJ6WkxXVFJ3TVVWb2EzVjNZVmxUYUdscE4wSjJjMkZ1TkY5ek1HZGFhVVpUVm1GU2RXTm1hbkp0WVVObE1tTlphM0JzYkVseFpYZFBja3BDY1d4V01tODVTbEUzWDNWd1IyaENhbGxwTVZGMmVXVnBRbnBYVFZORmVWOUNaa1UyV0UweVMycHFVbkZ0Ykc1a1NXSk1UMnRaTGsweVlXSTRZVVp4V0ZkSFMxVTBWMXB3VkhSRWRXYy5MUWFUQlBEYTdzOEo1UExvMVBuUUpSdUtoVHVXTERWVkh0N2hpVUxJSWo0IiwiZXhwIjoxNjc1NjE5ODIxLCJpYXQiOjE2NzU2MTk1MjF9.VYU53WKk1kSplO8iPJ6uwiWRY-Kz6foCI2JCxF8KZf0", "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-bsln.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": "Pzc96k_8esuVqfvzoFZlLa3xStk.*AAJTSQACMDIAAlNLABxyTnduYWJJM25NVDlUT2JRVVdIRUE2bDZCL2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[05/Feb/2023 17:52:01] 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: odbgOJOAqlRNDDzRHeXZYVVz" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-bsln.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "t_OTAYNkR7qVkFHUB9KM4rXxIa8.*AAJTSQACMDIAAlNLABxMR0szb0M3c252U0hENWlNb2dTMy9sU2xIZEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=t_OTAYNkR7qVkFHUB9KM4rXxIa8.*AAJTSQACMDIAAlNLABxMR0szb0M3c252U0hENWlNb2dTMy9sU2xIZEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1675619522.626.33896.211902|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "t_OTAYNkR7qVkFHUB9KM4rXxIa8.*AAJTSQACMDIAAlNLABxMR0szb0M3c252U0hENWlNb2dTMy9sU2xIZEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-bsln.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': 'Sun, 05 Feb 2023 17:52:01 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=ixkCBkyrdgEnWpfUAQO1S3zNYlI&iss=https%3A%2F%2Fxlou.iam.xlou-bsln.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': 'b0d44838679452f2a078fe2709743a5d'}
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": "ixkCBkyrdgEnWpfUAQO1S3zNYlI"}' "https://xlou.iam.xlou-bsln.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": "gHkzLgkxn6bAbwIw3Eo6xUrV50s",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer gHkzLgkxn6bAbwIw3Eo6xUrV50s" --insecure -L -X DELETE "https://xlou.iam.xlou-bsln.engineeringpit.com/openidm/managed/user/0a9e0592-0c56-4a1c-bc6a-fd7693b1e80a"
[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": "0a9e0592-0c56-4a1c-bc6a-fd7693b1e80a",
"_rev": "f77635de-93c7-4557-94c4-0a385dabb17d-4000995",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[05/Feb/2023 17:52:02] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped