Sha256: 0643dc9536ba2598a561a9214be26af217ce0d10f8b6dadb6a7c89a7644e684f
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
require 'pp' Shindo.tests('Fog::Database[oraclecloud] | database requests', 'database') do #tests("#java-create", "create") do # sshkey = Fog::Compute[:oracle].ssh_keys.first.name # new_instance = Fog::Compute[:oracle].instances.create( # :name=>'Test123', # :shape=>'oc3', # :imagelist=>'/oracle/public/oel_6.4_2GB_v1', # :label=>'dev-vm', # :sshkeys=>[sshkey] # ) # test "can create an instance" do # new_instance.is_a? Fog::Compute::Oracle::Instance # end # test "is being built" do # new_instance.state != "running" # end # new_instance.wait_for { ready? } # # test "is built" do # new_instance.state == 'running' # end # # new_instance.destroy() # test "can delete instance" do # check = Fog::Compute[:oracle].instances.get(new_instance.name) # check.state == 'stopping' # end #end tests('#database-read') do instances = Fog::OracleCloud[:database].instances test "returns an Array" do instances.is_a? Array end test "should return records" do instances.size >= 1 end test "should return a valid name" do instances.first.service_name.is_a? String end instance = Fog::OracleCloud[:database].instances.get(instances.first.service_name) test "should return an instance" do instance.service_name.is_a? String end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-oraclecloud-0.1.1 | tests/requests/database_tests.rb |