diff options
| author | Gordon Sim <gsim@apache.org> | 2013-06-27 13:11:11 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-06-27 13:11:11 +0000 |
| commit | 27902a7bc56a5543f449d68990e9752ce9e54138 (patch) | |
| tree | d016a7982703921f13cb57cf2f480a360da7518d /cpp/src | |
| parent | 60b363ee8de86f8dbcbe5c2750a707fdbd6fcd1f (diff) | |
| download | qpid-python-27902a7bc56a5543f449d68990e9752ce9e54138.tar.gz | |
NO-JIRA: restrict broker to listen only on loopback interface (ensures they are listening on the right interface when port is 0)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1497339 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rwxr-xr-x | cpp/src/tests/dynamic_log_level_test | 2 | ||||
| -rwxr-xr-x | cpp/src/tests/run_cli_tests | 4 | ||||
| -rwxr-xr-x | cpp/src/tests/run_federation_tests | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/tests/dynamic_log_level_test b/cpp/src/tests/dynamic_log_level_test index a80510ad08..9a9d6c8724 100755 --- a/cpp/src/tests/dynamic_log_level_test +++ b/cpp/src/tests/dynamic_log_level_test @@ -76,7 +76,7 @@ cleanup # Start another broker with --log-disable settings and make sure the management string receives them rm -rf $LOG_FILE -PORT=$($QPIDD_EXEC --auth=no --no-module-dir --daemon --port=0 --log-to-file $LOG_FILE --log-enable debug:foo --log-disable debug:bar) || error "Could not start broker" +PORT=$($QPIDD_EXEC --auth=no --no-module-dir --daemon --port=0 --interface 127.0.0.1 --log-to-file $LOG_FILE --log-enable debug:foo --log-disable debug:bar) || error "Could not start broker" echo Broker for log level test started on $PORT, pid is $($QPIDD_EXEC --no-module-dir --check --port $PORT) $srcdir/qpid-ctrl -b localhost:$PORT getLogLevel > dynamic_log_level.tmp diff --git a/cpp/src/tests/run_cli_tests b/cpp/src/tests/run_cli_tests index ea44437c0d..a7f55d58b7 100755 --- a/cpp/src/tests/run_cli_tests +++ b/cpp/src/tests/run_cli_tests @@ -56,9 +56,9 @@ start_brokers() { targs="--ignore=*xml*" fi - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --mgmt-publish no --auth no $xargs > qpidd.port + ../qpidd --daemon --port 0 --interface 127.0.0.1 --no-data-dir --no-module-dir --mgmt-publish no --auth no $xargs > qpidd.port LOCAL_PORT=`cat qpidd.port` - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --mgmt-publish no --auth no $xargs > qpidd.port + ../qpidd --daemon --port 0 --interface 127.0.0.1 --no-data-dir --no-module-dir --mgmt-publish no --auth no $xargs > qpidd.port REMOTE_PORT=`cat qpidd.port` } diff --git a/cpp/src/tests/run_federation_tests b/cpp/src/tests/run_federation_tests index c2ee550226..09219141ef 100755 --- a/cpp/src/tests/run_federation_tests +++ b/cpp/src/tests/run_federation_tests @@ -33,7 +33,7 @@ else SKIPTESTS='-i *_xml' # note: single quotes prevent expansion of * fi -QPIDD_CMD="../qpidd --daemon --port 0 --no-data-dir $MODULES --auth no --log-enable=info+ --log-enable=debug+:Bridge --log-to-file" +QPIDD_CMD="../qpidd --daemon --port 0 --interface 127.0.0.1 --no-data-dir $MODULES --auth no --log-enable=info+ --log-enable=debug+:Bridge --log-to-file" start_brokers() { rm -f fed_local.log fed_remote.log fed_b1.log fed_b2.log LOCAL_PORT=$($QPIDD_CMD fed_local.log --federation-tag LOCAL) |
