|
1326 | 1326 | context 'without other erl args' do |
1327 | 1327 | it 'enables inet6 distribution' do |
1328 | 1328 | is_expected.to contain_file('rabbitmq-env.config'). \ |
1329 | | - with_content(%r{^RABBITMQ_SERVER_ERL_ARGS="-proto_dist inet6_tcp"$}). \ |
| 1329 | + with_content(%r{^RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="-proto_dist inet6_tcp"$}). \ |
1330 | 1330 | with_content(%r{^RABBITMQ_CTL_ERL_ARGS="-proto_dist inet6_tcp"$}) |
1331 | 1331 | end |
1332 | 1332 | end |
1333 | 1333 |
|
1334 | 1334 | context 'with other quoted erl args' do |
1335 | 1335 | let(:params) do |
1336 | 1336 | { ipv6: true, |
1337 | | - environment_variables: { 'RABBITMQ_SERVER_ERL_ARGS' => '"some quoted args"', |
| 1337 | + environment_variables: { 'RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS' => '"some quoted args"', |
1338 | 1338 | 'RABBITMQ_CTL_ERL_ARGS' => '"other quoted args"' } } |
1339 | 1339 | end |
1340 | 1340 |
|
1341 | 1341 | it 'enables inet6 distribution and quote properly' do |
1342 | 1342 | is_expected.to contain_file('rabbitmq-env.config'). \ |
1343 | | - with_content(%r{^RABBITMQ_SERVER_ERL_ARGS="some quoted args -proto_dist inet6_tcp"$}). \ |
| 1343 | + with_content(%r{^RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="some quoted args -proto_dist inet6_tcp"$}). \ |
1344 | 1344 | with_content(%r{^RABBITMQ_CTL_ERL_ARGS="other quoted args -proto_dist inet6_tcp"$}) |
1345 | 1345 | end |
1346 | 1346 | end |
1347 | 1347 |
|
1348 | 1348 | context 'with other unquoted erl args' do |
1349 | 1349 | let(:params) do |
1350 | 1350 | { ipv6: true, |
1351 | | - environment_variables: { 'RABBITMQ_SERVER_ERL_ARGS' => 'foo', |
| 1351 | + environment_variables: { 'RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS' => 'foo', |
1352 | 1352 | 'RABBITMQ_CTL_ERL_ARGS' => 'bar' } } |
1353 | 1353 | end |
1354 | 1354 |
|
1355 | 1355 | it 'enables inet6 distribution and quote properly' do |
1356 | 1356 | is_expected.to contain_file('rabbitmq-env.config'). \ |
1357 | | - with_content(%r{^RABBITMQ_SERVER_ERL_ARGS="foo -proto_dist inet6_tcp"$}). \ |
| 1357 | + with_content(%r{^RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="foo -proto_dist inet6_tcp"$}). \ |
1358 | 1358 | with_content(%r{^RABBITMQ_CTL_ERL_ARGS="bar -proto_dist inet6_tcp"$}) |
1359 | 1359 | end |
1360 | 1360 | end |
|
1367 | 1367 |
|
1368 | 1368 | it 'enables inet6 distribution' do |
1369 | 1369 | is_expected.to contain_file('rabbitmq-env.config'). \ |
1370 | | - with_content(%r{^RABBITMQ_SERVER_ERL_ARGS=" -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}). \ |
| 1370 | + with_content(%r{^RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=" -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}). \ |
1371 | 1371 | with_content(%r{^RABBITMQ_CTL_ERL_ARGS=" -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}) |
1372 | 1372 | end |
1373 | 1373 | end |
|
1376 | 1376 | let(:params) do |
1377 | 1377 | { ipv6: true, |
1378 | 1378 | ssl_erl_dist: true, |
1379 | | - environment_variables: { 'RABBITMQ_SERVER_ERL_ARGS' => '"some quoted args"', |
| 1379 | + environment_variables: { 'RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS' => '"some quoted args"', |
1380 | 1380 | 'RABBITMQ_CTL_ERL_ARGS' => '"other quoted args"' } } |
1381 | 1381 | end |
1382 | 1382 |
|
1383 | 1383 | it 'enables inet6 distribution and quote properly' do |
1384 | 1384 | is_expected.to contain_file('rabbitmq-env.config'). \ |
1385 | | - with_content(%r{^RABBITMQ_SERVER_ERL_ARGS="some quoted args -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}). \ |
| 1385 | + with_content(%r{^RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="some quoted args -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}). \ |
1386 | 1386 | with_content(%r{^RABBITMQ_CTL_ERL_ARGS="other quoted args -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}) |
1387 | 1387 | end |
1388 | 1388 | end |
|
1391 | 1391 | let(:params) do |
1392 | 1392 | { ipv6: true, |
1393 | 1393 | ssl_erl_dist: true, |
1394 | | - environment_variables: { 'RABBITMQ_SERVER_ERL_ARGS' => 'foo', |
| 1394 | + environment_variables: { 'RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS' => 'foo', |
1395 | 1395 | 'RABBITMQ_CTL_ERL_ARGS' => 'bar' } } |
1396 | 1396 | end |
1397 | 1397 |
|
1398 | 1398 | it 'enables inet6 distribution and quote properly' do |
1399 | 1399 | is_expected.to contain_file('rabbitmq-env.config'). \ |
1400 | | - with_content(%r{^RABBITMQ_SERVER_ERL_ARGS="foo -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}). \ |
| 1400 | + with_content(%r{^RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="foo -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}). \ |
1401 | 1401 | with_content(%r{^RABBITMQ_CTL_ERL_ARGS="bar -pa /usr/lib64/erlang/lib/ssl-7.3.3.1/ebin -proto_dist inet6_tls"$}) |
1402 | 1402 | end |
1403 | 1403 | end |
|
0 commit comments