Sha256: fb00d867c73082383bb32e529e1919118b0145ac8d829a6e132f914b2f494c60
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
group "Metadata" library :rudy, 'lib' tryouts "include Rudy::Metadata" do set :test_domain, 'test_' #<< Rudy::Utils.strand setup do Rudy::Huxtable.global.offline = true Rudy::Huxtable.update_config # Read config files end clean do Rudy::Huxtable.global.offline = false end drill "has default domain", Rudy::DOMAIN do Rudy::Metadata.domain end drill "can set domain", test_domain do Rudy::Metadata.domain = test_domain end drill "can open simpledb connection", true do global = Rudy::Huxtable.global akey, skey, region = global.accesskey, global.secretkey, global.region Rudy::Metadata.connect akey, skey, region end dream test_domain drill "can create test domain (automatically sets new internal domain)" do Rudy::Metadata.domain = Rudy::DOMAIN Rudy::Metadata.create_domain test_domain end dream [:environment, :region, :role, :zone] drill "can build a default criteria" do Rudy::Metadata.build_criteria(Rudy::Machines::RTYPE).keys.sort end dream true drill "can destroy domain (automatically returns to default)" do Rudy::Metadata.destroy_domain test_domain end end
Version data entries
4 entries across 4 versions & 2 rubygems