Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes target of HTTP tests to hopefully resolve test issues in CI #2118

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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