Sha256: 7ec0ad52fd4f5949ccb5ec99e3eab55975fd49b504bc9fec388b733c79fa68e9
Contents?: true
Size: 1.43 KB
Versions: 10
Compression:
Stored size: 1.43 KB
Contents
describe HybridPlatformsConductor::Deployer do context 'when checking deployer specific config DSL' do it 'declares a packaging timeout' do with_platforms('packaging_timeout 666') do expect(test_config.packaging_timeout_secs).to eq 666 end end it 'declares log plugins to be used' do with_platforms( <<~EO_CONFIG send_logs_to %i[log_plugin_1 log_plugin_2] for_nodes('node2') { send_logs_to :log_plugin_3 } EO_CONFIG ) do expect(test_config.deployment_logs).to eq [ { nodes_selectors_stack: [], log_plugins: %i[log_plugin_1 log_plugin_2] }, { nodes_selectors_stack: %w[node2], log_plugins: %i[log_plugin_3] } ] end end it 'declares secrets readers plugins to be used' do with_platforms( <<~EO_CONFIG read_secrets_from %i[secrets_reader_plugin_1 secrets_reader_plugin_2] for_nodes('node2') { read_secrets_from :secrets_reader_plugin_3 } EO_CONFIG ) do expect(test_config.secrets_readers).to eq [ { nodes_selectors_stack: [], secrets_readers: %i[secrets_reader_plugin_1 secrets_reader_plugin_2] }, { nodes_selectors_stack: %w[node2], secrets_readers: %i[secrets_reader_plugin_3] } ] end end end end
Version data entries
10 entries across 10 versions & 1 rubygems