Sha256: 46ac3367baf7824a010af533b04a761067870b27add86d374314a49bd56405a9
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 KB
Contents
require 'pp' Shindo.tests('Fog::Compute[oraclecloud] | auto-storage', 'compute') do tests("#attach-storage", "create") do begin sshkey = Fog::Compute[:oraclecloud].ssh_keys.get('Test123Key') rescue Fog::Compute::OracleCloud::NotFound sshkey = Fog::Compute[:oraclecloud].ssh_keys.create( :name => 'TestSSHKey2', :enabled => false, :key => 'ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAkNNQ4ri2oUW46mBO/4CHMGCOALciumwGvFEMDLGNnlDbUSqU4IRrqgj+znLClfb29Oer0devdarM6DilsZVgZ2YbI5ZD5vICR/O9J0c28dArwbtFeIjcV2TCWyj5xKEXF1r+OrJMexHQa0fW1URGrU8QODpJNC/9eCVGcEXddL31xTZYpjoVOCVx66kNa6lSHEVV3T4zaCby9Oe5QI4gZe1+xyxHPNEW5wogwS3dlKSyL2CfBP0aUKOmJ5Nrl8+y0GqJQXdGjZ9FIknmwWueRW/6qPQvZocjOZ8YiPZgAP0RNy6lL+u8mnAazj/mrEdmB5QUzpDAllIr5Tn/xaddZQ==' ) end new_instance = Fog::Compute[:oraclecloud].instances.create( :name=>'Test123', :shape=>'oc3', :imagelist=>'/oracle/public/oel_6.4_2GB_v1', :label=>'dev-vm', :sshkeys=>[sshkey.name] ) test "can create an instance" do new_instance.is_a? Fog::Compute::OracleCloud::Instance end new_instance.wait_for { ready? } test "is built" do new_instance.state == 'running' end end end
Version data entries
4 entries across 4 versions & 1 rubygems