|
23 | 23 | 'e1-x-vip.earth.net.local' => '3.1.4.13',
|
24 | 24 | 'e1-nonk8sapp-001.space.net.local' => '3.1.4.14',
|
25 | 25 | 'e1-sharedproxy-001.space.net.local' => '3.1.4.15',
|
26 |
| - 'e1-sharedproxy-002.space.net.local' => '3.1.4.16' |
| 26 | + 'e1-sharedproxy-002.space.net.local' => '3.1.4.16', |
| 27 | + 'e1-myrabbit-001.space.net.local' => '3.1.4.17', |
| 28 | + 'e1-myrabbit-002.space.net.local' => '3.1.4.18' |
27 | 29 | )
|
28 | 30 | end
|
29 | 31 | let(:hiera_provider) do
|
@@ -1420,6 +1422,36 @@ def k8s_resource(set, kind)
|
1420 | 1422 | /mx)
|
1421 | 1423 | end
|
1422 | 1424 |
|
| 1425 | + it 'has config for it\'s rabbitmq dependencies' do |
| 1426 | + factory = eval_stacks do |
| 1427 | + stack "mystack" do |
| 1428 | + app_service "x", :kubernetes => true do |
| 1429 | + self.maintainers = [person('Testers')] |
| 1430 | + self.description = 'Testing' |
| 1431 | + |
| 1432 | + self.application = 'MyApplication' |
| 1433 | + self.short_name = 'myappl' |
| 1434 | + self.startup_alert_threshold = '1h' |
| 1435 | + depend_on 'myrabbit', 'e1', 'test' |
| 1436 | + end |
| 1437 | + end |
| 1438 | + stack "my_rabbit" do |
| 1439 | + rabbitmq_cluster "myrabbit" |
| 1440 | + end |
| 1441 | + env "e1", :primary_site => 'space', :short_name => 'spc' do |
| 1442 | + instantiate_stack "mystack" |
| 1443 | + instantiate_stack "my_rabbit" |
| 1444 | + end |
| 1445 | + end |
| 1446 | + set = factory.inventory.find_environment('e1').definitions['mystack'].k8s_machinesets['x'] |
| 1447 | + expect(k8s_resource(set, 'ConfigMap')['data']['config.properties']). |
| 1448 | + to match(/test.messaging.enabled=true.* |
| 1449 | + test.messaging.broker_fqdns=e1-myrabbit-001.space.net.local,e1-myrabbit-002.space.net.local.* |
| 1450 | + test.messaging.username=MyApplication.* |
| 1451 | + test.messaging.password=\{SECRET:e1_MyApplication_messaging_password\}.* |
| 1452 | + /mx) |
| 1453 | + end |
| 1454 | + |
1423 | 1455 | it 'fails when the app version cannot be found' do
|
1424 | 1456 | factory = eval_stacks do
|
1425 | 1457 | stack "mystack" do
|
|
0 commit comments