Sha256: b704eabc99993977c3f6e1241a4761a58de31f5cc259b8681b509e74f751875d
Contents?: true
Size: 949 Bytes
Versions: 3
Compression:
Stored size: 949 Bytes
Contents
class TestAggregates < TestYaoResource 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("nova", aggregates.availability_zone) assert_equal(false, aggregates.deleted) assert_equal(["host1", "host2"], aggregates.hosts) assert_equal({"foo" => "bar"}, aggregates.metadata) assert_equal("nova", aggregates.name) assert_equal(Time.parse("2015-08-27T09:49:58-05:00"), aggregates.created) assert_equal(Time.parse("2015-08-27T09:49:58-05:00"), aggregates.updated) assert_equal(Time.parse("2015-08-27T09:49:58-05:00"), aggregates.deleted_at) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yao-0.21.0 | test/yao/resources/test_aggregates.rb |
yao-0.20.0 | test/yao/resources/test_aggregates.rb |
yao-0.19.0 | test/yao/resources/test_aggregates.rb |