test/yao/resources/test_aggregates.rb in yao-0.3.6 vs test/yao/resources/test_aggregates.rb in yao-0.3.7

- old
+ new

@@ -1,5 +1,6 @@ +require "time" require "date" class TestRole < Test::Unit::TestCase def test_server_aggregates params = { @@ -17,10 +18,10 @@ assert_equal(aggregates.availability_zone, "nova") assert_equal(aggregates.deleted, false) assert_equal(aggregates.hosts, ["host1", "host2"]) assert_equal(aggregates.metadata, {"foo" => "bar"}) assert_equal(aggregates.name, "nova") - assert_equal(aggregates.created_at, Date.parse("2015-08-27T09:49:58-05:00")) - assert_equal(aggregates.created_at, Date.parse("2015-08-27T09:49:58-05:00")) - assert_equal(aggregates.created_at, Date.parse("2015-08-27T09:49:58-05:00")) + assert_equal(aggregates.created, Time.parse("2015-08-27T09:49:58-05:00")) + assert_equal(aggregates.updated, Time.parse("2015-08-27T09:49:58-05:00")) + assert_equal(aggregates.deleted_at, Date.parse("2015-08-27T09:49:58-05:00")) end end