Sha256: d34886a6c9044bb78051a39846e29b2c7fd4b504035bf52f96a7f1e11e1b9ebc

Contents?: true

Size: 887 Bytes

Versions: 119

Compression:

Stored size: 887 Bytes

Contents

require 'spec_helper'
require 'dpl/provider/anynines'

describe DPL::Provider::Anynines do
  subject :provider do
    described_class.new(DummyContext.new, username: 'mallomar',
                        password: 'myreallyawesomepassword',
                        organization: 'myorg',
                        space: 'outer')
  end

  describe "#check_auth" do
    example do
      expect(provider.context).to receive(:shell).with('test x$TRAVIS_OS_NAME = "xlinux" && rel="linux64-binary" || rel="macosx64"; wget "https://cli.run.pivotal.io/stable?release=${rel}&source=github" -qO cf.tgz && tar -zxvf cf.tgz && rm cf.tgz')
      expect(provider.context).to receive(:shell).with('./cf api https://api.aws.ie.a9s.eu')
      expect(provider.context).to receive(:shell).with('./cf login -u mallomar -p myreallyawesomepassword -o myorg -s outer')
      provider.check_auth
    end
  end
end

Version data entries

119 entries across 119 versions & 3 rubygems

Version Path
dpl-anynines-1.10.6.travis.3090.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.5.travis.3089.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.5.travis.3069.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4 spec/provider/anynines_spec.rb
dpl-anynines-1.10.5.travis.3062.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3055.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3054.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3053.5 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3047.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3040.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3032.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3031.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3030.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.3.travis.3021.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.4.travis.3022.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.3 spec/provider/anynines_spec.rb
dpl-anynines-1.10.3.travis.3020.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.3.travis.3017.6 spec/provider/anynines_spec.rb
dpl-anynines-1.10.3.travis.3014.6 spec/provider/anynines_spec.rb