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-2.3.0 tests/storage/models/files_tests.rb
fog-ifeel-2.2.0 tests/storage/models/files_tests.rb
fog-2.2.0 tests/storage/models/files_tests.rb
fog-2.1.0 tests/storage/models/files_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/storage/models/files_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/storage/models/files_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/storage/models/files_tests.rb
fog-1.42.1 tests/storage/models/files_tests.rb
fog-2.0.0 tests/storage/models/files_tests.rb
fog-1.42.0 tests/storage/models/files_tests.rb
fog-1.41.0 tests/storage/models/files_tests.rb
fog-1.40.0 tests/storage/models/files_tests.rb
fog-1.39.0 tests/storage/models/files_tests.rb
fog-1.38.0 tests/storage/models/files_tests.rb
fog-1.37.0 tests/storage/models/files_tests.rb
fog-1.36.0 tests/storage/models/files_tests.rb
fog-1.35.0 tests/storage/models/files_tests.rb
fog-2.0.0.pre.0 tests/storage/models/files_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/storage/models/files_tests.rb
fog-1.34.0 tests/storage/models/files_tests.rb