Sha256: ad91c5d844d08fad1c62071bc53a0c3fcf75c3c354d3d38ff94fc3bc1c6b1b24

Contents?: true

Size: 931 Bytes

Versions: 30

Compression:

Stored size: 931 Bytes

Contents

Shindo.tests("Fog::Storage[:hp] | files", ['hp', 'storage']) do

  file_attributes = {
    :key => 'fog_files_tests',
    :body => lorem_file
  }

  directory_attributes = {
    :key => 'fogfilestests'
  }

  collection_tests(Fog::Storage[:hp].directories.create(directory_attributes).files, file_attributes, true)

  @directory = Fog::Storage[:hp].directories.create(directory_attributes)
  @file = @directory.files.create(file_attributes)

  tests('success') do

    tests("#get_url('#{@directory.key}')").succeeds do
      @directory.files.get_url(@directory.key)
    end

    tests("#get_cdn_url('#{@directory.key}')").succeeds do
      pending if Fog.mocking?
      @directory.files.get_cdn_url(@directory.key)
    end

    tests("#get_cdn_ssl_url('#{@directory.key}')").succeeds do
      pending if Fog.mocking?
      @directory.files.get_cdn_ssl_url(@directory.key)
    end

  end

  @file.destroy
  @directory.destroy

end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
fog-1.38.0 tests/hp/models/storage/files_tests.rb
fog-1.37.0 tests/hp/models/storage/files_tests.rb
fog-1.36.0 tests/hp/models/storage/files_tests.rb
fog-1.35.0 tests/hp/models/storage/files_tests.rb
fog-2.0.0.pre.0 tests/hp/models/storage/files_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/storage/files_tests.rb
fog-1.34.0 tests/hp/models/storage/files_tests.rb
fog-1.33.0 tests/hp/models/storage/files_tests.rb
fog-1.32.0 tests/hp/models/storage/files_tests.rb
fog-1.31.0 tests/hp/models/storage/files_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/storage/files_tests.rb
fog-1.30.0 tests/hp/models/storage/files_tests.rb
fog-1.29.0 tests/hp/models/storage/files_tests.rb
fog-1.28.0 tests/hp/models/storage/files_tests.rb
fog-1.27.0 tests/hp/models/storage/files_tests.rb
fog-1.26.0 tests/hp/models/storage/files_tests.rb
fog-1.25.0 tests/hp/models/storage/files_tests.rb
nsidc-fog-1.24.1 tests/hp/models/storage/files_tests.rb
fog-1.24.0 tests/hp/models/storage/files_tests.rb
ns-fog-1.22.11 tests/hp/models/storage/files_tests.rb