File: archive_tests.rb

package info (click to toggle)
ruby-fog-aws 3.33.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,180 kB
  • sloc: ruby: 75,405; javascript: 14; makefile: 9; sh: 4
file content (13 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
Shindo.tests('AWS::Glacier | glacier archive tests', ['aws']) do
  pending if Fog.mocking?

  Fog::AWS[:glacier].create_vault('Fog-Test-Vault-upload')

  tests('single part upload') do
    id = Fog::AWS[:glacier].create_archive('Fog-Test-Vault-upload', 'data body').headers['x-amz-archive-id']
    Fog::AWS[:glacier].delete_archive('Fog-Test-Vault-upload', id)
  end

  #amazon won't let us delete the vault because it has been written to in the past day

end