summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/ssl_test
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2012-02-29 16:10:06 +0000
committerGordon Sim <gsim@apache.org>2012-02-29 16:10:06 +0000
commitae7e857ae13bf1acb7901ecf20f35b1c1cb5e868 (patch)
treece014d86cbe10f810c9aeb4743531441ae7d46db /qpid/cpp/src/tests/ssl_test
parentdac9286ab2f28df8d637fcc143262b5129fb1142 (diff)
downloadqpid-python-ae7e857ae13bf1acb7901ecf20f35b1c1cb5e868.tar.gz
QPID-3832: Restore transport option for connection (as default for urls that don't specify one explicitly)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ssl_test')
-rwxr-xr-xqpid/cpp/src/tests/ssl_test6
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/ssl_test b/qpid/cpp/src/tests/ssl_test
index 4dbb7df392..fc634ba242 100755
--- a/qpid/cpp/src/tests/ssl_test
+++ b/qpid/cpp/src/tests/ssl_test
@@ -140,6 +140,12 @@ URL=amqp:ssl:$TEST_HOSTNAME:$PORT
MSG=`./qpid-receive -b $URL -a "foo;{create:always}" --messages 1`
test "$MSG" = "hello" || { echo "receive failed '$MSG' != 'hello'"; exit 1; }
+## Test connection with a combination of URL and connection options (in messaging API)
+URL=$TEST_HOSTNAME:$PORT
+./qpid-send -b $URL --connection-options '{transport:ssl,heartbeat:2}' --content-string='hello again' -a "foo;{create:always}"
+MSG=`./qpid-receive -b $URL --connection-options '{transport:ssl,heartbeat:2}' -a "foo;{create:always}" --messages 1`
+test "$MSG" = "hello again" || { echo "receive failed '$MSG' != 'hello again'"; exit 1; }
+
#### Client Authentication tests
start_authenticating_broker