Sha256: 0cfa3161bbd12032a4f2d068daeaa39ccdf193bd0cfb445921dad1c609904fa7
Contents?: true
Size: 360 Bytes
Versions: 32
Compression:
Stored size: 360 Bytes
Contents
require 'spec_helper' require 'bosh/stemcell/aws/region' module Bosh::Stemcell::Aws describe Region do it 'queries AWS for its region' do az_query = '/latest/meta-data/placement/availability-zone' Net::HTTP.stub(:get).with('169.254.169.254', az_query).and_return("us-east-1\n") expect(subject.name).to eq 'us-east-1' end end end
Version data entries
32 entries across 32 versions & 1 rubygems