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

Version Path
bosh-stemcell-1.5.0.pre.1226 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1215 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1211 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1210 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1209 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1193 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1190 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1181 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1179 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1178 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1177 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1176 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1173 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1172 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1168 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1166 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1165 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1164 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1154 spec/bosh/stemcell/aws/region_spec.rb
bosh-stemcell-1.5.0.pre.1153 spec/bosh/stemcell/aws/region_spec.rb