Skip to content

Commit 44608ff

Browse files
author
Danny McCormick
committed
Use https in tests
1 parent 14baad6 commit 44608ff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/tests/toolTests.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Tool Tests', function () {
3535

3636
return new Promise<void>(async (resolve, reject) => {
3737
try {
38-
let downPath: string = await toolLib.downloadTool("http://httpbin.org/bytes/100");
38+
let downPath: string = await toolLib.downloadTool("https://httpbin.org/bytes/100");
3939
toolLib.debug('downloaded path: ' + downPath);
4040

4141
assert(tl.exist(downPath), 'downloaded file exists');
@@ -55,7 +55,7 @@ describe('Tool Tests', function () {
5555
return new Promise<void>(async (resolve, reject) => {
5656
try {
5757

58-
let downPath: string = await toolLib.downloadTool("https://httpbin.org/redirect-to?url=" + encodeURI('http://httpbin.org/bytes/100') + "&status_code=302");
58+
let downPath: string = await toolLib.downloadTool("https://httpbin.org/redirect-to?url=" + encodeURI('https://httpbin.org/bytes/100') + "&status_code=302");
5959
toolLib.debug('downloaded path: ' + downPath);
6060

6161
assert(tl.exist(downPath), 'downloaded file exists');
@@ -76,7 +76,7 @@ describe('Tool Tests', function () {
7676
try {
7777
let tempDownloadFolder: string = 'temp_' + Math.floor(Math.random() * 2000000000);
7878
let absolutePath: string = path.join(tempPath, tempDownloadFolder);
79-
let downPath: string = await toolLib.downloadTool("http://httpbin.org/bytes/100", absolutePath);
79+
let downPath: string = await toolLib.downloadTool("https://httpbin.org/bytes/100", absolutePath);
8080
toolLib.debug('downloaded path: ' + downPath);
8181

8282
assert(tl.exist(downPath), 'downloaded file exists');
@@ -125,7 +125,7 @@ describe('Tool Tests', function () {
125125

126126
return new Promise<void>(async (resolve, reject) => {
127127
try {
128-
let downPath: string = await toolLib.downloadTool("http://httpbin.org/bytes/100");
128+
let downPath: string = await toolLib.downloadTool("https://httpbin.org/bytes/100");
129129
toolLib.debug('downloaded path: ' + downPath);
130130

131131
assert(tl.exist(downPath), 'downloaded file exists');
@@ -151,8 +151,8 @@ describe('Tool Tests', function () {
151151

152152
return new Promise<void>(async (resolve, reject) => {
153153
try {
154-
let downPath1_1: string = await toolLib.downloadTool("http://httpbin.org/bytes/100");
155-
let downPath1_2: string = await toolLib.downloadTool("http://httpbin.org/bytes/100");
154+
let downPath1_1: string = await toolLib.downloadTool("https://httpbin.org/bytes/100");
155+
let downPath1_2: string = await toolLib.downloadTool("https://httpbin.org/bytes/100");
156156

157157
toolLib.cacheFile(downPath1_1, 'foo', 'foo', '1.1.0');
158158
toolLib.cacheFile(downPath1_2, 'foo', 'foo', '1.2.0');
@@ -180,7 +180,7 @@ describe('Tool Tests', function () {
180180
// General parameters:
181181
let username: string = "usr";
182182
let correctPassword: string = "pass";
183-
let url: string = "http://httpbin.org/basic-auth/" + username + "/" + correctPassword;
183+
let url: string = "https://httpbin.org/basic-auth/" + username + "/" + correctPassword;
184184

185185
// First try downloading with WRONG credentials and verify receiving status code 401:
186186
try {

0 commit comments

Comments
 (0)