Hi,
I have the following challenge;
I want to check the clusters nodes separately.
I can control this by sending a COOKIE header.
Now I want to verify that the response contains a specific SET-COOKIE header containing a specific node name.
But we also set other cookies same time< Set-Cookie: JSESSIONID=ECA9EDAA096EBCB0427E08B4913C9F6E.node-0; Path=/; Secure; HttpOnly
< Set-Cookie: COOKIE_SUPPORT=true; Max-Age=31536000; Expires=Thu, 29-Sep-2022 15:05:30 GMT; Path=/; Secure; HttpOnly
< Set-Cookie: GUEST_LANGUAGE_ID=nl_NL; Max-Age=31536000; Expires=Thu, 29-Sep-2022 15:05:30 GMT; Path=/; Secure; HttpOnly
I set Should contain HTTP Response Header(s) to "node-0"
Apparently the order of SET-COOKIES is not fixed because at times 50% it fails validating;
I also tried regular expressions;
www.site24x7.com/help/admin/adding-a-monitor/rest-api-monitor.html#http-response-header
"node-1" "COOKIE_SUPPORT" "GUEST_LANGUAGE_ID"
^.*(liferay-|COOKIE_SUPPORT|GUEST_LANGUAGE_ID).*$
${^.*(node-0).*$}
${^.*(node-0).*$}" "${^.*(COOKIE_SUPPORT).*$}" "${^.*(GUEST_LANGUAGE_ID).*$}
Unfortunately i can't see the real response headers site24x7 receives so its a bit hard to debug, just lots of trial and error.
Any suggestion how i can achieve this ?
Regards,
Corné