about summary refs log tree commit diff stats
path: root/tests/functionaltests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-18 03:06:23 +0100
committerJames Booth <boothj5@gmail.com>2015-10-18 03:06:23 +0100
commit6640a0891fb51b74c8377745ee1e5585f741a0be (patch)
tree208f6b12c8abd0f43b7900e6d3c288043a13d45c /tests/functionaltests
parent9d2745e462eabafcab51e04ec9ad225a13cf9a6f (diff)
downloadprofani-tty-6640a0891fb51b74c8377745ee1e5585f741a0be.tar.gz
Force tls on all connections, add tls policy account property
Diffstat (limited to 'tests/functionaltests')
-rw-r--r--tests/functionaltests/proftest.c2
-rw-r--r--tests/functionaltests/test_connect.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/functionaltests/proftest.c b/tests/functionaltests/proftest.c
index 54837c9f..e3c80501 100644
--- a/tests/functionaltests/proftest.c
+++ b/tests/functionaltests/proftest.c
@@ -244,7 +244,7 @@ prof_connect_with_roster(char *roster)
         "</presence>"
     );
 
-    prof_input("/connect stabber@localhost server 127.0.0.1 port 5230");
+    prof_input("/connect stabber@localhost server 127.0.0.1 port 5230 tls allow");
     prof_input("password");
 
     // Allow time for profanity to connect
diff --git a/tests/functionaltests/test_connect.c b/tests/functionaltests/test_connect.c
index 9abd1eff..b14d7e85 100644
--- a/tests/functionaltests/test_connect.c
+++ b/tests/functionaltests/test_connect.c
@@ -50,7 +50,7 @@ connect_jid_requests_bookmarks(void **state)
 void
 connect_bad_password(void **state)
 {
-    prof_input("/connect stabber@localhost server 127.0.0.1 port 5230");
+    prof_input("/connect stabber@localhost server 127.0.0.1 port 5230 tls allow");
     prof_input("badpassword");
 
     assert_true(prof_output_exact("Login failed."));