Test cURL - Universal
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the task here>

Property Details

ID26636
StatusProduction - Fully Tested and Ready for Production
TitleTest cURL - Universal
DomainBESC
SourceInternal
Source Release Date8/1/2019 12:00:00 AM
Is TaskTrue
Added by on 7/31/2019 11:13:31 PM
Last Modified by on 7/31/2019 11:13:31 PM
Counters 57 Views / 16 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 2 fixlets   * Results in a true/false
Show indented relevance
/* cURL exists */ (mac of operating system) OR ( /* if cURL is missing, it will be downloaded */ windows of operating system) OR ( exists files whose(name of it as lowercase = "curl" OR name of it as lowercase = "curl.exe") of (folders it) of unique values of (it as trimmed string) of substrings separated by (";";":") of values of (variables "PATH" of it; (if (windows of operating system) then (x64 variables "PATH" of it) else NOTHINGS) ) of environments )

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// if Windows, then download prereqs.
begin prefetch block
if { (windows of operating system) AND ( not exists files whose(name of it as lowercase = "curl" OR name of it as lowercase = "curl.exe") of (folders it) of unique values of (it as trimmed string) of substrings separated by (";";":") of values of (variables "PATH" of it; (if (windows of operating system) then (x64 variables "PATH" of it) else NOTHINGS) ) of environments ) }
add prefetch item name=unzip.exe sha1=e1652b058195db3f5f754b7ab430652ae04a50b8 sha256=8d9b5190aace52a1db1ac73a65ee9999c329157c8e88f61a772433323d6b7a4a size=167936 url=http://software.bigfix.com/download/redist/unzip-5.52.exe
add prefetch item name=curl.zip sha1=96897edb567daae0e03afa848692fd6541f9a663 sha256=9f3eb94bd1576b0fa2b1628da7d41d5d1599fd7598d1245ee4a858a999c7bbca size=2436504 url=https://raw.githubusercontent.com/jgstew/bigfix-content/726443262c034436e88a77bc3c693eedd5233e84/downloads/curl.zip
endif
end prefetch block

if { (windows of operating system) AND ( not exists files whose(name of it as lowercase = "curl" OR name of it as lowercase = "curl.exe") of (folders it) of unique values of (it as trimmed string) of substrings separated by (";";":") of values of (variables "PATH" of it; (if (windows of operating system) then (x64 variables "PATH" of it) else NOTHINGS) ) of environments ) }
// set up use of `cURL`

// ADD TO UTILITY CACHE: unzip,curl
utility __Download\unzip.exe
utility __Download\curl.zip

// EXTRACT using unzip: curl
waithidden __Download\unzip.exe -o "{ download path "curl.zip" }" -d "{ pathname of client folder of current site }"

endif

action parameter query "cURLcommand" with description "Enter cURL Command" with default "google.com"

wait curl {parameter "cURLcommand"} -o "{pathname of folders "Logs" of folders "__Global" of data folders of client}{if windows of operating system then "\" else "/"}results_Test_cURL.txt"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!