Sha256: c1ce39e86f460ef3198f75553608069fa5fc257ff8fa6e5ffbfa8b51fe6a2595

Contents?: true

Size: 857 Bytes

Versions: 6

Compression:

Stored size: 857 Bytes

Contents

Shindo.tests('Cifrado | SwiftClient#file_available?') do

  obj1 = create_bin_payload 1
  clean_object = clean_object_name(obj1)
  tests 'success' do
    test "object #{clean_object} available in #{test_container_name}" do
      client.upload test_container_name, obj1
      client.file_available? test_container_name, clean_object
    end
    test "object #{obj1} available in #{test_container_name}" do
      client.upload test_container_name, obj1
      !client.file_available? test_container_name, obj1
    end
  end 
  tests 'failures' do
    container = SecureRandom.hex
    test "object #{obj1} not available in #{container}" do
      !(client.file_available? container, clean_object)
    end
    test "object #{container} not available in #{test_container_name}" do
      !(client.file_available? test_container_name, container)
    end
  end 

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cifrado-0.2.1 tests/swift_client/file_available.rb
cifrado-0.2.0 tests/swift_client/file_available.rb
cifrado-0.1.3 tests/swift_client/file_available.rb
cifrado-0.1.2 tests/swift_client/file_available.rb
cifrado-0.1.1 tests/swift_client/file_available.rb
cifrado-0.1 tests/swift_client/file_available.rb