Sha256: 508edef2897504b9984426ec77845444f6e215d973ee6aaf8858e7dc91c4504c
Contents?: true
Size: 949 Bytes
Versions: 3
Compression:
Stored size: 949 Bytes
Contents
# This tests that account scopes can be configured correctly # Additionally, this verifies that the 'scopes' method alias is # available and gcloud GCE aliases can be used. # (see lib/fog/google/models/compute/server.rb in fog-google) shared_examples 'provider/scopes' do |provider, options| if !options[:box] raise ArgumentError, "box option must be specified for provider: #{provider}" end include_context 'acceptance' before do environment.skeleton('scopes') assert_execute('vagrant', 'box', 'add', 'basic', options[:box]) assert_execute('vagrant', 'up', "--provider=#{provider}") end after do assert_execute('vagrant', 'destroy', '--force') end it 'should bring up machine with scope definitions' do status("Test: machine is running after up") result = execute("vagrant", "ssh", "-c", "echo foo") expect(result).to exit_with(0) expect(result.stdout).to match(/foo\n$/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-google-0.2.1 | test/acceptance/provider/scopes_spec.rb |
vagrant-google-0.2.0 | test/acceptance/provider/scopes_spec.rb |
vagrant-google-0.2.0.rc1 | test/acceptance/provider/scopes_spec.rb |