Sha256: 360fef999dc4e1b82c02d5c78828a68c97ee46312956935550fdc17845e902af

Contents?: true

Size: 857 Bytes

Versions: 79

Compression:

Stored size: 857 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('wget \'https://cli.run.pivotal.io/stable?release=linux64-binary&source=github\' -qO cf-linux-amd64.tgz && tar -zxvf cf-linux-amd64.tgz && rm cf-linux-amd64.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

79 entries across 79 versions & 1 rubygems

Version Path
dpl-1.8.40.travis.2164.5 spec/provider/anynines_spec.rb
dpl-1.8.39.travis.2162.5 spec/provider/anynines_spec.rb
dpl-1.8.39 spec/provider/anynines_spec.rb
dpl-1.8.39.travis.2157.5 spec/provider/anynines_spec.rb
dpl-1.8.38 spec/provider/anynines_spec.rb
dpl-1.8.38.travis.2156.5 spec/provider/anynines_spec.rb
dpl-1.8.38.travis.2151.5 spec/provider/anynines_spec.rb
dpl-1.8.38.travis.2140.5 spec/provider/anynines_spec.rb
dpl-1.8.37 spec/provider/anynines_spec.rb
dpl-1.8.38.travis.2138.5 spec/provider/anynines_spec.rb
dpl-1.8.37.travis.2137.5 spec/provider/anynines_spec.rb
dpl-1.8.37.travis.2118.5 spec/provider/anynines_spec.rb
dpl-1.8.36 spec/provider/anynines_spec.rb
dpl-1.8.37.travis.2106.5 spec/provider/anynines_spec.rb
dpl-1.8.36.travis.2099.5 spec/provider/anynines_spec.rb
dpl-1.8.35 spec/provider/anynines_spec.rb
dpl-1.8.35.travis.2098.5 spec/provider/anynines_spec.rb
dpl-1.8.35.travis.2090.5 spec/provider/anynines_spec.rb
dpl-1.8.34.travis.2089.5 spec/provider/anynines_spec.rb
dpl-1.8.34 spec/provider/anynines_spec.rb