From 84caaa4f1dff45d0f0f55da96ceb26ac2664d8a3 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 14 Jul 2017 14:56:35 +0200 Subject: [tests] add e2e test for tls verification --- tests/e2e/Makefile | 5 +++++ tests/e2e/check_tls | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/e2e/Makefile create mode 100755 tests/e2e/check_tls (limited to 'tests') diff --git a/tests/e2e/Makefile b/tests/e2e/Makefile new file mode 100644 index 0000000..9a85a4c --- /dev/null +++ b/tests/e2e/Makefile @@ -0,0 +1,5 @@ +check_domains: + ./check_tls https://demo.bitmask.net + ./check_tls https://leap.se + ./check_tls https://eff.org + ./check_tls https://duckduckgo.com 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:]) -- cgit v1.2.3