Project

General

Profile

Actions

Bug #7274

closed

DHCP tests failing due to date mismatch

Added by Dominic Cleal over 9 years ago. Updated almost 6 years ago.

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

Description

  1) Failure:
test_api_02_get_network(DhcpApiTest) [/var/lib/workspace/workspace/test_proxy_develop/puppet/2.7.0/ruby/1.9.2/test/dhcp/dhcp_api_test.rb:58]:
<{"reservations"=>
  [{"hostname"=>"test.example.com",
    "ip"=>"192.168.122.1",
    "mac"=>"00:11:bb:cc:dd:ee"}],
 "leases"=>
  [{"ip"=>"192.168.122.2",
    "mac"=>"00:aa:bb:cc:dd:ee",
    "starts"=>"2014-07-12 10:08:29 UTC",
    "ends"=>nil,
    "state"=>"active"}]}> expected but was
<{"reservations"=>
  [{"hostname"=>"test.example.com",
    "ip"=>"192.168.122.1",
    "mac"=>"00:11:bb:cc:dd:ee"}],
 "leases"=>
  [{"ip"=>"192.168.122.2",
    "mac"=>"00:aa:bb:cc:dd:ee",
    "starts"=>"2014-07-12 10:08:29 +0000",
    "ends"=>nil,
    "state"=>"active"}]}>.

  2) Failure:
test_api_08_create_record_new(DhcpApiTest) [/var/lib/workspace/workspace/test_proxy_develop/puppet/2.7.0/ruby/1.9.2/test/dhcp/dhcp_api_test.rb:172]:
<{"reservations"=>
  [{"hostname"=>"test.example.com",
    "ip"=>"192.168.122.1",
    "mac"=>"00:11:bb:cc:dd:ee"},
   {"hostname"=>"ten.example.com",
    "ip"=>"192.168.122.10",
    "mac"=>"10:10:10:10:10:10"}],
 "leases"=>
  [{"ip"=>"192.168.122.2",
    "mac"=>"00:aa:bb:cc:dd:ee",
    "starts"=>"2014-07-12 10:08:29 UTC",
    "ends"=>nil,
    "state"=>"active"}]}> expected but was
<{"reservations"=>
  [{"hostname"=>"test.example.com",
    "ip"=>"192.168.122.1",
    "mac"=>"00:11:bb:cc:dd:ee"},
   {"hostname"=>"ten.example.com",
    "ip"=>"192.168.122.10",
    "mac"=>"10:10:10:10:10:10"}],
 "leases"=>
  [{"ip"=>"192.168.122.2",
    "mac"=>"00:aa:bb:cc:dd:ee",
    "starts"=>"2014-07-12 10:08:29 +0000",
    "ends"=>nil,
    "state"=>"active"}]}>.

It appears the format of the dates has changed - UTC is now +0000 in some of the responses.

After a bundle update, I reproduced this locally. The following changes were made:

  • Installing ffi-yajl 1.1.0 (was 1.0.2)
  • Installing ohai 7.2.4 (was 7.2.0)
  • Installing plist 3.1.0
  • Installing chef 11.14.6 (was 11.14.2)
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #2

Updated by The Foreman Bot over 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/207 added
  • Pull request deleted ()
Actions #3

Updated by Dominic Cleal over 9 years ago

  • translation missing: en.field_release set to 10
Actions #4

Updated by Dominic Cleal over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF