File tree Expand file tree Collapse file tree 5 files changed +22
-3
lines changed
test/authnz-msg-protocols Expand file tree Collapse file tree 5 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ test/oauth/*/h2/*.lock.db
99* /target /*
1010tls-gen
1111test /oauth /* /* .pem
12- test /oauth /* /* .p12
12+ test /oauth /* /* .p12
13+ test /authnz-msg-protocols /certs
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ init_rabbitmq() {
1212 [[ -z " ${OAUTH_SERVER_CONFIG_BASEDIR} " ]] || print " > OAUTH_SERVER_CONFIG_BASEDIR: ${OAUTH_SERVER_CONFIG_BASEDIR} "
1313 [[ -z " ${OAUTH_SERVER_CONFIG_DIR} " ]] || print " > OAUTH_SERVER_CONFIG_DIR: ${OAUTH_SERVER_CONFIG_DIR} "
1414
15+ if [[ ! -d " ${RABBITMQ_CONFIG_DIR} /certs" ]]; then
16+ mkdir ${RABBITMQ_CONFIG_DIR} /certs
17+ fi
18+ generate-ca-server-client-kpi rabbitmq $RABBITMQ_CONFIG_DIR /certs
1519}
1620
1721start_rabbitmq () {
Original file line number Diff line number Diff line change 33SCRIPT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
44
55TEST_CASES_PATH=/authnz-msg-protocols
6- PROFILES=" internal-user auth_backends-internal "
6+ PROFILES=" internal-user auth_backends-internal tls "
77
88source $SCRIPT /../../bin/suite_template
99run
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ for (const element of profiles.split(" ")) {
1414describe ( 'Having MQTT protocol enbled and the following auth_backends: ' + backends , function ( ) {
1515 let mqttOptions
1616 let expectations = [ ]
17- let client_id = 'selenium-client'
1817 let rabbit = process . env . RABBITMQ_HOSTNAME || 'localhost'
1918 let username = process . env . RABBITMQ_AMQP_USERNAME
2019 let password = process . env . RABBITMQ_AMQP_PASSWORD
20+ let client_id = process . env . RABBITMQ_AMQP_CLIENT_ID || 'selenium-client'
2121
2222 before ( function ( ) {
2323 if ( backends . includes ( "http" ) && username . includes ( "http" ) ) {
Original file line number Diff line number Diff line change 1+ auth_backends.1 = rabbit_auth_backend_oauth2
2+
3+ listeners.ssl.1 = 5671
4+
5+ ssl_options.cacertfile = ${RABBITMQ_TEST_DIR}/certs/ca_rabbitmq_certificate.pem
6+ ssl_options.certfile = ${RABBITMQ_TEST_DIR}/certs/server_rabbitmq_certificate.pem
7+ ssl_options.keyfile = ${RABBITMQ_TEST_DIR}/certs/server_rabbitmq_key.pem
8+ ssl_options.verify = verify_peer
9+ ssl_options.fail_if_no_peer_cert = true
10+
11+ management.ssl.port = 15671
12+ management.ssl.cacertfile = ${RABBITMQ_TEST_DIR}/certs/ca_rabbitmq_certificate.pem
13+ management.ssl.certfile = ${RABBITMQ_TEST_DIR}/certs/server_rabbitmq_certificate.pem
14+ management.ssl.keyfile = ${RABBITMQ_TEST_DIR}/certs/server_rabbitmq_key.pem
You can’t perform that action at this time.
0 commit comments