Bug #15791
closed
Intermittent DHCPServerMicrosoftTest failures on ruby 1.8.7
Added by Anonymous over 8 years ago.
Updated over 6 years ago.
Description
Due to non-deterministic order of hash key iteration when assigning values to dhcp options.
- Related to Bug #13575: Don't fail due to missing PXEClient DHCP opt on 2008R2 added
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/442 added
DHCPServerMicrosoftTest.test_should_raise_on_option_error
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: 1.2.3.4.execute('scope 192.168.166.0 set reservedoptionvalue 192.168.166.11 60 String \'\'', nil, true)
satisfied expectations:
- expected exactly once, invoked once: 1.2.3.4.execute('scope 192.168.166.0 set reservedoptionvalue 192.168.166.11 12 String \'test.example.com\'', nil, true)
- expected exactly once, invoked once: 1.2.3.4.execute('scope 192.168.166.0 add reservedip 192.168.166.11 0011bbccddee test.example.com', 'Added DHCP reservation for test.example.com (192.168.166.11 / 00:11:bb:cc:dd:ee)')
- allowed any number of times, not yet invoked: 1.2.3.4.execute(regexp_matches(/\Ascope 192.168.216.0 Show ReservedOptionValue 192.168.216.25/), regexp_matches(/\AQueried .+ options/))
- allowed any number of times, not yet invoked: 1.2.3.4.execute('scope 192.168.205.0 Show OptionValue', 'Queried 192.168.205.0 options')
- allowed any number of times, not yet invoked: 1.2.3.4.execute('scope 192.168.216.0 show client 1', 'Enumerated hosts on 192.168.216.0')
- allowed any number of times, invoked once: 1.2.3.4.execute('show scope', 'Enumerated the scopes on 1.2.3.4')
(Test::Unit::AssertionFailedError)
/var/lib/workspace/workspace/test_proxy_develop_pr_core/puppet/3.6.0/ruby/1.8.7/test/dhcp_ms_native/server_ms_test.rb:262:in `test_should_raise_on_option_error'
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 175
- Target version deleted (
1.12.2)
Also available in: Atom
PDF