/* form.tst - Form-based authentication tests */ const HTTP = tget('TM_HTTP') || "127.0.0.1:8080" let http: Http = new Http // Will be denied http.get(HTTP + "/auth/form/index.html") ttrue(http.status == 302) let location = http.header('location') ttrue(Uri(location).path == '/auth/form/login.html') // Will return login form http.get(location) ttrue(http.status == 200) ttrue(http.response.contains("