IMPORTANT: The file content has been truncated. Status: Showing lines 1601-1700 of 1717 total lines. Action: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 1700. --- FILE CONTENT (truncated) --- allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production_waf) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging_waf) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production_rds) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging_rds) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production_elasticache_cluster) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging_elasticache_cluster) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production_opensearch_cluster) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging_opensearch_cluster) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production_service) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging_service) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_production_shared_loadbalancer) allow(Helper).to receive(:run!).with(cluster1_apply_cmd_staging_shared_loadbalancer) allow(Helper).to receive(:run!).with(cluster2_apply_cmd_production) allow(Helper).to receive(:run!).with(cluster2_apply_cmd_staging) allow(Helper).to receive(:run!).with(cluster3_apply_cmd_staging) allow(Helper).to receive(:run!).with(cluster4_apply_cmd_production) Infrastructure.new( ConfigurationReader.new(path: "./dalmatian.yml.example", parameter_store: fake_parameter_store).infrastructures ).deploy(auto_approve: false, plan: false) end describe 'use of "terraform apply"' do it 'passes the hosted zone config to "terraform apply"' do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_hz) end it 'passes the s3 config to "terraform apply"' do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_s3) end it 'passes the vpn customer gateway config to "terraform apply"' do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_vpn_cg) end it 'passes the base config to "terraform apply"' do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_production).twice expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_staging).twice end it 'passes the waf config to "terraform apply"' do aggregate_failures do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_production_waf) expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_staging_waf) end end it 'passes the rds config to "terraform apply"' do aggregate_failures do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_production_rds) expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_staging_rds) end end it 'passes the elasticache config to "terraform apply"' do aggregate_failures do expect(Helper).to have_received(:run!) .with(cluster1_apply_cmd_production_elasticache_cluster) expect(Helper).to have_received(:run!) .with(cluster1_apply_cmd_staging_elasticache_cluster) end end it 'passes the opensearch config to "terraform apply"' do aggregate_failures do expect(Helper).to have_received(:run!) .with(cluster1_apply_cmd_production_opensearch_cluster) expect(Helper).to have_received(:run!) .with(cluster1_apply_cmd_staging_opensearch_cluster) end end it 'passes the service config to "terraform apply"' do aggregate_failures do expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_production_service) expect(Helper).to have_received(:run!).with(cluster1_apply_cmd_staging_service) end end it 'passes the loadbalancer config to "terraform apply"' do aggregate_failures do expect(Helper).to have_received(:run!) .with(cluster1_apply_cmd_production_shared_loadbalancer) expect(Helper).to have_received(:run!) .with(cluster1_apply_cmd_staging_shared_loadbalancer) end end it 'passes the cluster 2 config to "terraform apply"' do