win_get_url - refactor tests to use httptester (#53765)

* win_get_url - refactor tests to use httptester

* Use the file lookup instead of slurp
This commit is contained in:
Jordan Borean 2019-03-14 08:04:49 +10:00 committed by GitHub
commit d3792145d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 215 additions and 272 deletions

View file

@ -381,13 +381,13 @@ $request_params = @{
}
if ($checksum) {
$checksum = $checksum.Trim().toLower()
$checksum = $checksum.Trim().ToLower()
}
if ($checksum_algorithm) {
$checksum_algorithm = $checksum_algorithm.Trim().toLower()
$checksum_algorithm = $checksum_algorithm.Trim().ToLower()
}
if ($checksum_url) {
$checksum_url = $checksum_url.Trim().toLower()
$checksum_url = $checksum_url.Trim()
}
# Check for case $checksum variable contain url. If yes, get file data from url and replace original value in $checksum