Sha256: c8e7ff396ca7d0558acf101f290f1a59cc4a0514b4fffc912543380f8d37e3e3

Contents?: true

Size: 612 Bytes

Versions: 118

Compression:

Stored size: 612 Bytes

Contents

for provider, config in storage_providers

  Shindo.tests("Storage[:#{provider}] | files", [provider.to_s]) do

    if !Fog.mocking? || config[:mocked]

      file_attributes = {
        :key => 'fog_files_tests',
        :body => lorem_file
      }.merge!(config[:file_attributes] || {})

      directory_attributes = {
        :key => 'fogfilestests'
      }.merge!(config[:directory_attributes] || {})

      @directory = Fog::Storage[provider].directories.create(directory_attributes)

      collection_tests(@directory.files, file_attributes, config[:mocked])

      @directory.destroy

    end

  end

end

Version data entries

118 entries across 116 versions & 15 rubygems

Version Path
fog-1.18.0 tests/storage/models/files_tests.rb
fog-1.17.0 tests/storage/models/files_tests.rb
fog-1.16.0 tests/storage/models/files_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/storage/models/files_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/storage/models/files_tests.rb
fog-1.15.0 tests/storage/models/files_tests.rb
gapinc-fog-1.14.0 tests/storage/models/files_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/storage/models/files_tests.rb
fog-1.14.0 tests/storage/models/files_tests.rb
fog-1.13.0 tests/storage/models/files_tests.rb
gapinc-fog-1.12.1.2 tests/storage/models/files_tests.rb
gapinc-fog-1.12.1.1 tests/storage/models/files_tests.rb
gapinc-fog-1.12.1a tests/storage/models/files_tests.rb
gapinc-fog-1.12.1 tests/storage/models/files_tests.rb
fog-1.12.1 tests/storage/models/files_tests.rb
fog-1.12.0 tests/storage/models/files_tests.rb
hpfog-0.0.20 tests/storage/models/files_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/storage/models/files_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/storage/models/files_tests.rb
fog-nirvanix-1.8.2 tests/storage/models/files_tests.rb