This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SERVER_URL=$1 | |
API_KEY=$2 | |
DATE_STR=$(date "+%Y%m%d%H%M%S") | |
DATE_HEADER="Date: $(date "+%a, %d %b %Y %T %Z")" | |
RESULTS_URL=$(curl "https://$SERVER_URL.applitools.com/api/sessions/renderinfo?apiKey=$API_KEY" | jq -r ".resultsUrl") | |
PUT_URL=$(echo $RESULTS_URL | sed "s/\_\_random\_\_/$DATE_STR/g") | |
echo "Testing PUT to:" $PUT_URL | |
PUT_RESULTS=$(curl -i --verbose --request PUT --url "$PUT_URL" --header "$DATE_HEADER" --header 'x-ms-blob-type: BlockBlob' --header 'x-ms-version: 2015-02-21' --form 'image=""') | |
echo $PUT_RESULTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions for Mac OS / Unix systems
e.g. ./unix.sh mycompanyeyes APPLITOOLS_API_KEY
e.g. Testing PUT to: https://mycompanyeyes.blob.core.windows.net/temp/blabla?sv=xxxxxxx&sr=xxx&sig=xxxxxxxx&se=xxxxx&sp=xx&accessKey=xxxxxx
means you need to whitelist mycompanyeyes.blob.core.windows.net