--Task-- name: Pre-check Num Users enabled: True class_name: ValidationNumUsers source_name: controller 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 ________________________________________________________________________________ [24/Aug/2023 04:09:26] Pre-check Num Users pre : N/A ________________________________________________________________________________ [24/Aug/2023 04:09:26] - INFO: Timeout for this Task has changed to 16h (57600 seconds) [24/Aug/2023 04:09:26] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset ________________________________________________________________________________ [24/Aug/2023 04:09:26] Pre-check Num Users step1 : Get expected number of users from config (conf.yaml) ________________________________________________________________________________ ________________________________________________________________________________ [24/Aug/2023 04:09:26] Pre-check Num Users step2 : Get real number of users ________________________________________________________________________________ [24/Aug/2023 04:09:26] - INFO: Getting number of user entries through IDM API [LoginSession] Get "access_token" token for user "xiaosong.lou@forgerock.com" [LoginSession] Obtaining new "access_token" token from server because it was not obtained yet for the user [LoginSession] Get "token_id" token for user "xiaosong.lou@forgerock.com" [LoginSession] re-using "token_id" token that remains valid for 29m 20s Obtain Oauth2 authz code via REST with PKCE flow Oauth2 authorize for access token [http_cmd]: curl --header "Content-Type: application/x-www-form-urlencoded" --insecure --request POST --cookie "amlbcookie=01" --cookie "b4a27156a826c25=8lVWCcIUOBK6euLJltsGtQs9HH4.*AAJTSQACMDIAAlNLABxjUDVxRDJFRnlHN0ViUkFvaWFLWVJSL2RYYW89AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --data '{"decision": "Allow", "csrf": "8lVWCcIUOBK6euLJltsGtQs9HH4.*AAJTSQACMDIAAlNLABxjUDVxRDJFRnlHN0ViUkFvaWFLWVJSL2RYYW89AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://openam-perf-23-05-am-2.forgeblocks.com/am/oauth2/authorize?client_id=idmAdminClient&scope=openid fr:idm:*&redirect_uri=https://openam-perf-23-05-am-2.forgeblocks.com/platform/appAuthHelperRedirect.html&response_type=code&realm=/&code_challenge=H8VHP73pYVOJ0f7Y9lG3J5DU3gjTBCElj1L3LM6FgO&code_challenge_method=plain" [http_cmd]: http status code OK --- status code --- http status code is 302 (expected 302) --- http response --- {'x-frame-options': 'SAMEORIGIN', 'content-security-policy-report-only': "script-src 'self' 'unsafe-eval' 'unsafe-inline'; frame-ancestors 'self'", 'x-content-type-options': 'nosniff', 'cache-control': 'no-store', 'location': 'https://openam-perf-23-05-am-2.forgeblocks.com/platform/appAuthHelperRedirect.html?code=_eij9GuKeKx4XRdJyWRfzIWuPcs&iss=https%3A%2F%2Fopenam-perf-23-05-am-2.forgeblocks.com%3A443%2Fam%2Foauth2&client_id=idmAdminClient', 'pragma': 'no-cache', 'set-cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Domain=openam-perf-23-05-am-2.forgeblocks.com; Secure; HttpOnly; SameSite=none', 'content-length': '0', 'date': 'Thu, 24 Aug 2023 04:09:26 GMT', 'x-forgerock-transactionid': '1692850167044-54856dafdfab8e4d5d1c-3815784', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload;', 'Via': '1.1 google', 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'} Oauth2 exchange authorize code for access token [http_cmd]: curl --header "Content-Type: application/x-www-form-urlencoded" --insecure -L --request POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://openam-perf-23-05-am-2.forgeblocks.com/platform/appAuthHelperRedirect.html", "client_id": "idmAdminClient", "code": "_eij9GuKeKx4XRdJyWRfzIWuPcs", "code_verifier": "H8VHP73pYVOJ0f7Y9lG3J5DU3gjTBCElj1L3LM6FgO"}' "https://openam-perf-23-05-am-2.forgeblocks.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": "eyJ0eXAiOiJ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LvuGNpAIKPXmqGpqCUilu34GBP2vSUGBywHiAdkENvVjSb0p1wlSvnF_x6OSjg3pYfoRuoggZ6TYfrgb3B_uYUG2yOE_7lwrStwAgelpZ2KUcJkC62Nstb8fQ3k7GECM57pCkmiyKZsXO5mXC34Mk1oHE_27YZV8F-pcmWceRLdk3deQjYgf0xPqmdfc1cS3IWxRaqPRuF0YKhXzd8j2vexBbpIZZGKtj_wEKmKNdBS5ftWxh7YmQDdf1XgdEs-mqMEvr1eSoL1GvKWCB9n3KpRxjGdfSidNH4ntTqxWp1w8PQm3N1G2qpsCkedGBR8juzRQ", "token_type": "Bearer", "expires_in": 3599 } ________________________________________________________________________________ [24/Aug/2023 04:09:27] Pre-check Num Users step3 : Evaluate if the identities count is correct ________________________________________________________________________________ [24/Aug/2023 04:09:27] - INFO: Real count of identities in ID repo/userstore is 222130. That differs from expected count of 200000 identities. [24/Aug/2023 04:09:27] - INFO: Data not preloaded or at incorrect count - proceed with cleanup and fresh preload. ________________________________________________________________________________ [24/Aug/2023 04:09:27] Pre-check Num Users post : N/A ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped