the upcoming 2.0 version
https://redmine.lighttpd.net/projects/lighttpd2
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
613 B
29 lines
613 B
# -*- coding: utf-8 -*- |
|
|
|
from base import * |
|
from requests import * |
|
|
|
class TestSimpleRequest(CurlRequest): |
|
PORT = 1 |
|
SCHEME = "https" |
|
URL = "/test.txt" |
|
EXPECT_RESPONSE_BODY = TEST_TXT |
|
EXPECT_RESPONSE_CODE = 200 |
|
EXPECT_RESPONSE_HEADERS = [("Content-Type", "text/plain; charset=utf-8")] |
|
vhost = "test1.ssl" |
|
|
|
class TestSNI(CurlRequest): |
|
PORT = 1 |
|
SCHEME = "https" |
|
URL = "/test.txt" |
|
EXPECT_RESPONSE_BODY = TEST_TXT |
|
EXPECT_RESPONSE_CODE = 200 |
|
EXPECT_RESPONSE_HEADERS = [("Content-Type", "text/plain; charset=utf-8")] |
|
vhost = "test2.ssl" |
|
|
|
|
|
class Test(GroupTest): |
|
group = [ |
|
TestSimpleRequest, |
|
TestSNI |
|
]
|
|
|