Skip to content

Commit

Permalink
Revert "Surround URL replacements option with quotes"
Browse files Browse the repository at this point in the history
This reverts commit b427067.
  • Loading branch information
mtsmfm committed Apr 6, 2023
1 parent b427067 commit 6e87d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion script.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fi
if [ -n "${INPUT_URL_REPLACEMENTS}" ]; then
IFS=',' read -ra URL_REPLACEMENTS <<< "${INPUT_URL_REPLACEMENTS}"
for url_replacement in "${URL_REPLACEMENTS[@]}"; do
add_args "-r=\"${url_replacement}\""
add_args "-r=${url_replacement}"
done
fi

Expand Down
6 changes: 3 additions & 3 deletions test/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function test_multiline_output() {
export INPUT_AUTIFY_TEST_URL=a
export INPUT_WAIT=true
export INPUT_TIMEOUT=300
export INPUT_URL_REPLACEMENTS="https://example.com https://example.net,https://example.net https://example.com?foo=bar"
export INPUT_URL_REPLACEMENTS=b1,b2
export INPUT_MAX_RETRY_COUNT=c
export INPUT_TEST_EXECUTION_NAME=d
export INPUT_BROWSER=e
Expand All @@ -144,11 +144,11 @@ function test_multiline_output() {
export INPUT_AUTIFY_CONNECT=j
export INPUT_AUTIFY_CONNECT_CLIENT=true
export INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS=k
test_command "autify web test run a --wait -t=300 -r=\"https://example.com https://example.net\" -r=\"https://example.net https://example.com?foo=bar\" --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k"
test_command "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k"
test_code 0
test_log
test_output exit-code "0"
test_multiline_output log "autify web test run a --wait -t=300 -r=\"https://example.com https://example.net\" -r=\"https://example.net https://example.com?foo=bar\" --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k\n$(cat "$log_file")"
test_multiline_output log "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k\n$(cat "$log_file")"
test_output result-url "https://result"
}

Expand Down

0 comments on commit 6e87d9f

Please sign in to comment.