.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@12132 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-01 07:51:10 +00:00
parent 02bae3849c
commit ea4a247d95

View file

@ -45,7 +45,7 @@ CONSOLE_APP_MAIN
ASSERT(h.IsError());
LDUMP(h.GetError());
}
{
if(GetSysDate() > Date(2018, 9, 1)) { // Because "Resource temporarily unavailable", but let us recheck later
HttpRequest h("http://dev.alt.cloudappsportal.com/_api/web/lists");
h.KeepAlive();
h.Execute();
@ -59,14 +59,14 @@ CONSOLE_APP_MAIN
r.User("user", "passw0rd");
String h = r.Execute();
DUMP(h);
ASSERT(h.Find("\"authenticated\":true") >= 0);
ASSERT(h.Find("\"authenticated\": true") >= 0);
}
{
HttpRequest r("http://httpbin.org/digest-auth/auth/usr/pwd");
r.Digest("usr", "pwd");
String h = r.Execute();
DUMP(r.GetContent());
ASSERT(h.Find("\"authenticated\":true") >= 0);
ASSERT(h.Find("\"authenticated\": true") >= 0);
}
{
HttpRequest r("https://httpbin.org/bytes/0");