reenable auth test with other server

This commit is contained in:
Tanguy 2022-03-30 17:09:43 +02:00
parent 0bd9238409
commit 3621143c89
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
1 changed files with 2 additions and 5 deletions

View File

@ -690,11 +690,11 @@ suite "HTTP client testing suite":
proc testBasicAuthorization(): Future[bool] {.async.} =
var session = createSession(true, maxRedirections = 10)
let url = parseUri("https://guest:guest@jigsaw.w3.org/HTTP/Basic/")
let url = parseUri("https://user:passwd@httpbin.org/basic-auth/user/passwd")
let resp = await session.fetch(url)
await session.closeWait()
if (resp.status == 200) and
("Your browser made it!" in cast[string](resp.data)):
("true," in cast[string](resp.data)):
return true
else:
return false
@ -764,9 +764,6 @@ suite "HTTP client testing suite":
check waitFor(testRequestRedirectTest(address, true, 4)) == "redirect-true"
test "HTTPS basic authorization test":
skip()
return
# started to fail out of the blue
check waitFor(testBasicAuthorization()) == true
test "Leaks test":