Sha256: 4d124bbbcb49a48116fd153dcf2a797e6c000b575996e5b08c77f55f0b2d3781

Contents?: true

Size: 607 Bytes

Versions: 35

Compression:

Stored size: 607 Bytes

Contents

for provider, config in storage_providers

  Shindo.tests("Storage[:#{provider}] | files", [provider]) 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

35 entries across 35 versions & 9 rubygems

Version Path
fog-1.5.0 tests/storage/models/files_tests.rb
rackspace-fog-1.4.2 tests/storage/models/files_tests.rb
fog-1.4.0 tests/storage/models/files_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
michiels-fog-1.3.1 tests/storage/models/files_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/storage/models/files_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
fog-1.3.1 tests/storage/models/files_tests.rb
fog-1.3.0 tests/storage/models/files_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
fog-1.2.0 tests/storage/models/files_tests.rb
ktheory-fog-1.1.2 tests/storage/models/files_tests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/tests/storage/models/files_tests.rb
fog-1.1.2 tests/storage/models/files_tests.rb
fog_tractical-1.1.4 tests/storage/models/files_tests.rb
fog_tractical-1.1.3 tests/storage/models/files_tests.rb