From b2a2342f954cd9fb3906239ba11dc837e9bfc54f Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 8 Jan 2016 11:59:04 -0500 Subject: [PATCH] Switch the api-test script to use https and wss for the connections. --- tests/api-test.sh | 2 +- tests/sendwebsocket.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api-test.sh b/tests/api-test.sh index 13175ca..83cc61d 100755 --- a/tests/api-test.sh +++ b/tests/api-test.sh @@ -60,7 +60,7 @@ fi echo "" # Source our resty functions -. ./utils/resty -W "http://127.0.0.1:12151" -H "Accept: application/json" -H "Content-Type: application/json" -u ${fuser}:${fpass} +. ./utils/resty -W "https://127.0.0.1:12151" -H "Accept: application/json" -H "Content-Type: application/json" -u ${fuser}:${fpass} # Check the reply of this REST query echo "" diff --git a/tests/sendwebsocket.js b/tests/sendwebsocket.js index 6907e75..127618c 100644 --- a/tests/sendwebsocket.js +++ b/tests/sendwebsocket.js @@ -1,5 +1,5 @@ var WebSocket = require('ws'); -var wsserver = "ws://127.0.0.1:12150"; +var wsserver = "wss://127.0.0.1:12150"; var wstoken = "foome"; var stdargs = ""; var ignorefirst = "true";