Sha256: c90c4f2cdca2ea5d76c77ffd80947ece5d676d26b20da82b9c7753d8fc626351

Contents?: true

Size: 1.38 KB

Versions: 62

Compression:

Stored size: 1.38 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'].collect {|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

62 entries across 62 versions & 6 rubygems

Version Path
fog-1.22.0 tests/aws/requests/glacier/vault_tests.rb
fog-1.21.0 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/aws/requests/glacier/vault_tests.rb
fog-1.20.0 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/aws/requests/glacier/vault_tests.rb
fog-1.19.0 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/aws/requests/glacier/vault_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/aws/requests/glacier/vault_tests.rb