Sha256: 7b7eb2266102849d8c4c8a8f3d9cecbcbdc919434828e3cbfef0308d089735d0
Contents?: true
Size: 970 Bytes
Versions: 2
Compression:
Stored size: 970 Bytes
Contents
require "date" class TestRole < Test::Unit::TestCase def test_server_aggregates params = { "availability_zone" => "nova", "deleted" => false, "hosts" => ["host1", "host2"], "metadata" => {"foo" => "bar"}, "name" => "nova", "created_at" => "2015-08-27T09:49:58-05:00", "updated_at" => "2015-08-27T09:49:58-05:00", "deleted_at" => "2015-08-27T09:49:58-05:00", } aggregates = Yao::Aggregates.new(params) 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")) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yao-0.3.6 | test/yao/resources/test_aggregates.rb |
yao-0.3.5 | test/yao/resources/test_aggregates.rb |