File: snapshot_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 (10 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
Shindo.tests("Fog::Compute[:aws] | snapshot", ['aws']) do

  @volume = Fog::Compute[:aws].volumes.create(:availability_zone => 'us-east-1a', :size => 1)
  @volume.wait_for { ready? }

  model_tests(Fog::Compute[:aws].snapshots, {:volume_id => @volume.identity}, true)

  @volume.destroy

end