Sha256: 82d4911dc31922645d0ea9aa93b020d31bc0942d6e63e587bfa1eb7a6d45ae15
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Bosh::Blobstore::Client do it "should have a local provider" do Dir.mktmpdir do |tmp| bs = Bosh::Blobstore::Client.create('local', {:blobstore_path => tmp}) bs.should be_instance_of Bosh::Blobstore::LocalClient end end it "should have an simple provider" do bs = Bosh::Blobstore::Client.create('simple', {}) bs.should be_instance_of Bosh::Blobstore::SimpleBlobstoreClient end it "should have an atmos provider" do bs = Bosh::Blobstore::Client.create('atmos', {}) bs.should be_instance_of Bosh::Blobstore::AtmosBlobstoreClient end it "should have an s3 provider" do options = {:access_key_id => "foo", :secret_access_key => "bar"} bs = Bosh::Blobstore::Client.create('s3', options) bs.should be_instance_of Bosh::Blobstore::S3BlobstoreClient end it "should raise an exception on an unknown client" do lambda { bs = Bosh::Blobstore::Client.create('foobar', {}) }.should raise_error /^Invalid client provider/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blobstore_client-0.3.13 | spec/unit/blobstore_client_spec.rb |