Project

General

Profile

Actions

Bug #6588

closed

Tests for default settings are taking local config files into account

Added by Dominic Cleal over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have some settings which appear to interfere with unit tests for default settings:

[ 77/218] DnsConfigTest#test_omitted_settings_have_default_values = 0.00 s                                      
  1) Failure:
test_omitted_settings_have_default_values(DnsConfigTest) [/home/dcleal/code/foreman/smart-proxy/test/dns/dns_config_test.rb:7]:
<"nsupdate"> expected but was
<"virsh">.

[158/218] PuppetCAConfigTest#test_omitted_settings_have_default_values = 0.00 s                                                      
  2) Failure:
test_omitted_settings_have_default_values(PuppetCAConfigTest) [/home/dcleal/code/foreman/smart-proxy/test/puppetca/puppetca_config_test.rb:6]:
<"/var/lib/puppet/ssl"> expected but was
<"/home/dcleal/.puppet/ssl">.

As you can see, I have these overridden locally:

[dcleal@cobalt smart-proxy]$ grep ssldir config/settings.d/puppetca.yml
:ssldir: /home/dcleal/.puppet/ssl
[dcleal@cobalt smart-proxy]$ grep virsh config/settings.yml
:virsh_network: default
Actions

Also available in: Atom PDF