Sha256: 67627fa52cadbd35efc5accc4d499f1d49ffca2995cd9dd1d4d14e6bc06dfe80

Contents?: true

Size: 1.04 KB

Versions: 79

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'
require 'dpl/provider/bluemix_cloud_foundry'

describe DPL::Provider::BluemixCloudFoundry do
  subject :provider do
    described_class.new(DummyContext.new, region: 'eu-gb', username: 'Moonpie',
                        password: 'myexceptionallyaveragepassword',
                        organization: 'myotherorg',
                        space: 'inner',
                        manifest: 'worker-manifest.yml',
                        skip_ssl_validation: true)
  end

  describe "#check_auth" do
    example do
      expect(provider.context).to receive(:shell).with('test $(uname) = "Linux" && 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 api.eu-gb.bluemix.net --skip-ssl-validation')
      expect(provider.context).to receive(:shell).with('./cf login -u Moonpie -p myexceptionallyaveragepassword -o myotherorg -s inner')
      provider.check_auth
    end
  end

end

Version data entries

79 entries across 79 versions & 2 rubygems

Version Path
dpl-bluemix_cloud_foundry-1.10.17.travis.6637.6 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.17.travis.6637.6 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.16 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.16 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.16.travis.6625.6 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.16.travis.6625.6 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.16.travis.6619.6 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.16.travis.6619.6 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.16.travis.5961.5 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.16.travis.5961.5 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.15 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.15 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.15.travis.5877.5 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.15.travis.5877.5 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.14 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.14 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.13 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.13 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-cloud_foundry-1.10.13.travis.4159.5 spec/provider/bluemix_cloud_foundry_spec.rb
dpl-bluemix_cloud_foundry-1.10.13.travis.4159.5 spec/provider/bluemix_cloud_foundry_spec.rb