Sha256: dfb870239dbf4455806b4e0bf7b3420a9260bebd8db06e5a92207fd00455ef96
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
require 'pp' Shindo.tests('Fog::Java[oraclecloud] | java requests', 'java') 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('#java-read') do instances = Fog::OracleCloud[:java].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[:java].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/java_tests.rb |