Skip to content
Snippets Groups Projects
Commit b1ba0e9f authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

CONFORMANCE_IDP_BASE_URL

parent 41765864
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ info:
tags: saml,headless
variables:
AUTHORIZATION: "Bearer abcd...789"
CONFORMANCE_IDP_HOSTNAME: conformance-idp.maiv1.incubator.geant.org
CONFORMANCE_IDP_BASE_URL: https://conformance-idp.maiv1.incubator.geant.org/
RESULT_OUTPUT_DIR: ""
FILENAME: '{{date_time("%Y-%M-%D_%H-%m-%s")}}-{{replace_regex(BaseURL,"(\\W+)","_")}}'
TEST_CASES:
......@@ -33,11 +33,11 @@ headless:
value: "{{AUTHORIZATION}}"
- action: navigate
args:
url: "https://{{CONFORMANCE_IDP_HOSTNAME}}/module.php/conformance/test/setup?testId={{url_encode(TEST_CASE)}}&spEntityId={{url_encode(SP_ENTITY_ID)}}"
url: "{{trim_suffix(CONFORMANCE_IDP_BASE_URL, '/')}}/module.php/conformance/test/setup?testId={{url_encode(TEST_CASE)}}&spEntityId={{url_encode(SP_ENTITY_ID)}}"
- action: waitload
- action: navigate
args:
url: "https://{{CONFORMANCE_IDP_HOSTNAME}}/saml2/idp/SSOService.php?spentityid={{url_encode(SP_ENTITY_ID)}}&ConsumerURL={{url_encode(BaseURL)}}"
url: "{{trim_suffix(CONFORMANCE_IDP_BASE_URL, '/')}}/saml2/idp/SSOService.php?spentityid={{url_encode(SP_ENTITY_ID)}}&ConsumerURL={{url_encode(BaseURL)}}"
- action: waitload
- action: screenshot
args:
......
......@@ -6,7 +6,8 @@ info:
tags: saml,raw
variables:
AUTHORIZATION: "Bearer abcd...789"
CONFORMANCE_IDP_HOSTNAME: conformance-idp.maiv1.incubator.geant.org
CONFORMANCE_IDP_BASE_URL: https://conformance-idp.maiv1.incubator.geant.org/
CONFORMANCE_IDP_HOSTNAME: '{{replace_regex(CONFORMANCE_IDP_BASE_URL, "^https?://|/.*$", "")}}'
TEST_CASES:
- noSignature
- invalidSignature
......@@ -52,9 +53,9 @@ http:
# HTTP-POST binding
- raw:
- |
@Host: {{replace_regex(trim_prefix(trim(acs,"[]"), "https://"), "/.*", "")}}
@Host: {{replace_regex(trim(acs,"[]"), "^https?://|/.*$", "")}}
POST {{trim(acs,"[]")}} HTTP/1.1
Host: {{replace_regex(trim_prefix(trim(acs,"[]"), "https://"), "/.*", "")}}
Host: {{replace_regex(trim(acs,"[]"), "^https?://|/.*$", "")}}
Content-Type: application/x-www-form-urlencoded
SAMLResponse={{url_encode(trim(samlresponse,"[]"))}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment