Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Surround URL replacements option with quotes" #33

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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