summaryrefslogtreecommitdiff
path: root/tests/e2e/check_tls
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-07-14 14:56:35 +0200
committerKali Kaneko <kali@leap.se>2017-07-14 14:56:35 +0200
commit84caaa4f1dff45d0f0f55da96ceb26ac2664d8a3 (patch)
tree9bc174701816d481e65daa54db5fb7eea16eb7f6 /tests/e2e/check_tls
parent581030aa3170bf0e1dfe61678348f97f42d4fe56 (diff)
[tests] add e2e test for tls verification
Diffstat (limited to 'tests/e2e/check_tls')
-rwxr-xr-xtests/e2e/check_tls14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/e2e/check_tls b/tests/e2e/check_tls
new file mode 100755
index 0000000..d7a92c0
--- /dev/null
+++ b/tests/e2e/check_tls
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+import sys
+from twisted.internet import task
+from leap.common.http import HTTPClient
+
+
+def main(reactor, host):
+ def cb(_):
+ print "OK"
+ client = HTTPClient()
+ return client.request(host).addCallback(cb)
+
+
+task.react(main, sys.argv[1:])