Sha256: a554d700db1ef13cfd5b08684f10e98b54b515c8138f749b4ee05f3f7364253c

Contents?: true

Size: 1.37 KB

Versions: 79

Compression:

Stored size: 1.37 KB

Contents

Shindo.tests('AWS::Glacier | glacier vault requests', ['aws']) do
  pending if Fog.mocking?

  topic_arn = Fog::AWS[:sns].create_topic( 'fog_test_glacier_topic').body['TopicArn']
  Fog::AWS[:glacier].create_vault('Fog-Test-Vault')

  tests('list_vaults') do
    returns(true){Fog::AWS[:glacier].list_vaults.body['VaultList'].map {|data| data['VaultName']}.include?('Fog-Test-Vault')}
  end

  tests('describe_vault') do
    returns('Fog-Test-Vault'){Fog::AWS[:glacier].describe_vault('Fog-Test-Vault').body['VaultName']}
  end

  tests('set_vault_notification_configuration') do
    Fog::AWS[:glacier].set_vault_notification_configuration 'Fog-Test-Vault', topic_arn, ['ArchiveRetrievalCompleted']
  end

  tests('get_vault_notification_configuration') do
    returns('SNSTopic' => topic_arn, 'Events' => ['ArchiveRetrievalCompleted']){ Fog::AWS[:glacier].get_vault_notification_configuration( 'Fog-Test-Vault').body}
  end

  tests('delete_vault_notification_configuration') do
    Fog::AWS[:glacier].delete_vault_notification_configuration( 'Fog-Test-Vault')
    raises(Excon::Errors::NotFound){Fog::AWS[:glacier].get_vault_notification_configuration( 'Fog-Test-Vault')}
  end

  tests('delete_vault') do
    Fog::AWS[:glacier].delete_vault( 'Fog-Test-Vault')
    raises(Excon::Errors::NotFound){Fog::AWS[:glacier].describe_vault( 'Fog-Test-Vault')}
  end

  Fog::AWS[:sns].delete_topic topic_arn

end

Version data entries

79 entries across 77 versions & 6 rubygems

Version Path
fog-aws-3.12.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.11.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.10.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.9.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.8.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.7.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.6.7 tests/requests/glacier/vault_tests.rb
fog-aws-3.6.6 tests/requests/glacier/vault_tests.rb
fog-aws-3.6.5 tests/requests/glacier/vault_tests.rb
fog-aws-3.6.4 tests/requests/glacier/vault_tests.rb
fog-aws-3.6.3 tests/requests/glacier/vault_tests.rb
fog-aws-3.6.2 tests/requests/glacier/vault_tests.rb
fog-aws-3.5.2 tests/requests/glacier/vault_tests.rb
fog-aws-3.5.1 tests/requests/glacier/vault_tests.rb
fog-aws-3.5.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.4.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.3.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.2.0 tests/requests/glacier/vault_tests.rb
fog-aws-3.1.0 tests/requests/glacier/vault_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/requests/glacier/vault_tests.rb