server/tests/drivers/ec2/common.rb
# Setup resources we need for the tests
Setup resources we need for the tests
Setup resources we need for the tests
def create_resources
  VCR.use_cassette "create_resources" do
    driver = Deltacloud::new(:ec2, credentials)
    @@ec2 = driver.client
    @@vpc = @@ec2.create_vpc("172.16.0.0/16").first
    @@subnet = @@ec2.create_subnet(@@vpc[:vpc_id], "172.16.3.0/24", "us-east-1b").first
  end
end
def create_resources VCR . use_cassette "create_resources" do driver = Deltacloud :: new ( :ec2 , credentials ) @@ec2 = driver . client @@vpc = @@ec2 . create_vpc ( "172.16.0.0/16" ) . first @@subnet = @@ec2 . create_subnet ( @@vpc [ :vpc_id ] , "172.16.3.0/24" , "us-east-1b" ) . first end end
Setup resources we need for the tests
Setup resources we need for the tests