Skip to content

Commit

Permalink
Merge pull request #2118 from nickclark2016/issues/change-https-target
Browse files Browse the repository at this point in the history
Changes target of HTTP tests to hopefully resolve test issues in CI
  • Loading branch information
samsinsane authored Aug 10, 2023
2 parents bcbe8ea + 7b59124 commit 723992c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Makefile
.cproject
.settings
.buildpath
*.vs

*.bbprojectsettings
Scratchpad.txt
Expand Down
12 changes: 6 additions & 6 deletions tests/base/test_http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if http.get ~= nil and _OPTIONS["test-all"] then
end

function suite.http_get()
local result, err = safe_http_get("http://httpbin.org/user-agent")
local result, err = safe_http_get("http://httpbingo.org/user-agent")
if result then
p.out(result)
test.capture(
Expand All @@ -45,7 +45,7 @@ if http.get ~= nil and _OPTIONS["test-all"] then
function suite.https_get()
-- sslverifypeer = 0, so we can test from within companies like here at Blizzard where all HTTPS traffic goes through
-- some strange black box that re-signs all traffic with a custom ssl certificate.
local result, err = safe_http_get("https://httpbin.org/user-agent", { sslverifypeer = 0 })
local result, err = safe_http_get("https://httpbingo.org/user-agent", { sslverifypeer = 0 })
if result then
p.out(result)
test.capture(
Expand All @@ -57,7 +57,7 @@ if http.get ~= nil and _OPTIONS["test-all"] then
end

function suite.https_get_verify_peer()
local result, err = safe_http_get("https://httpbin.org/user-agent")
local result, err = safe_http_get("https://httpbingo.org/user-agent")
if result then
p.out(result)
test.capture(
Expand All @@ -69,7 +69,7 @@ if http.get ~= nil and _OPTIONS["test-all"] then
end

function suite.http_responsecode()
local result, err, responseCode = safe_http_get("http://httpbin.org/status/418")
local result, err, responseCode = safe_http_get("http://httpbingo.org/status/418")
test.isequal(418, responseCode)
end

Expand All @@ -78,7 +78,7 @@ if http.get ~= nil and _OPTIONS["test-all"] then

--[[
function suite.http_redirect()
local result, err, responseCode = safe_http_get("http://httpbin.org/redirect/3")
local result, err, responseCode = safe_http_get("http://httpbingo.org/redirect/3")
if result then
test.isequal(200, responseCode)
else
Expand All @@ -88,7 +88,7 @@ if http.get ~= nil and _OPTIONS["test-all"] then
]]

function suite.http_headers()
local result, err, responseCode = safe_http_get("http://httpbin.org/headers", {
local result, err, responseCode = safe_http_get("http://httpbingo.org/headers", {
headers = { 'X-Premake: premake' }
})

Expand Down

0 comments on commit 723992c

Please sign in to comment.