Sha256: 1b25a75439b17f5977dbd860f5cd91aa3b4d8790ddf9ad76bbce268384568282

Contents?: true

Size: 888 Bytes

Versions: 34

Compression:

Stored size: 888 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 http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-cli_amd64.deb -qO temp.deb && sudo dpkg -i temp.deb')
      expect(provider.context).to receive(:shell).with('rm temp.deb')
      expect(provider.context).to receive(:shell).with('cf api https://api.de.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

34 entries across 34 versions & 1 rubygems

Version Path
dpl-1.8.2.travis.1071.4 spec/provider/anynines_spec.rb
dpl-1.8.1 spec/provider/anynines_spec.rb
dpl-1.8.1.travis.1070.4 spec/provider/anynines_spec.rb
dpl-1.8.1.travis.1063.4 spec/provider/anynines_spec.rb
dpl-1.8.0 spec/provider/anynines_spec.rb
dpl-1.7.23.travis.1061.4 spec/provider/anynines_spec.rb
dpl-1.7.23.travis.1059.4 spec/provider/anynines_spec.rb
dpl-1.7.22 spec/provider/anynines_spec.rb
dpl-1.7.22.travis.1058.4 spec/provider/anynines_spec.rb
dpl-1.7.22.travis.1057.4 spec/provider/anynines_spec.rb
dpl-1.7.22.travis.1056.4 spec/provider/anynines_spec.rb
dpl-1.7.22.travis.1047.4 spec/provider/anynines_spec.rb
dpl-1.7.22.travis.1035.4 spec/provider/anynines_spec.rb
dpl-1.7.22.travis.981.4 spec/provider/anynines_spec.rb
dpl-1.7.21.travis.980.4 spec/provider/anynines_spec.rb
dpl-1.7.21 spec/provider/anynines_spec.rb
dpl-1.7.21.travis.979.4 spec/provider/anynines_spec.rb
dpl-1.7.21.travis.978.4 spec/provider/anynines_spec.rb
dpl-1.7.21.travis.970.4 spec/provider/anynines_spec.rb
dpl-1.7.21.travis.960.4 spec/provider/anynines_spec.rb