Sha256: d5bdbb95b7636aa0e4f6075e125ba57ba89cbd8e1d9e6a3dd66f225d95450607
Contents?: true
Size: 728 Bytes
Versions: 17
Compression:
Stored size: 728 Bytes
Contents
# coding: utf-8 Shindo.tests('Fog::Volume[:sakuracloud] | list_archives request', ['sakuracloud', 'volume']) do @archive_format = { 'Index' => Integer, 'ID' => Integer, 'Name' => String, 'SizeMB' => Integer, 'Plan' => Hash } tests('success') do tests('#list_archives') do archives = volume_service.list_archives test 'returns a Hash' do archives.body.is_a? Hash end if Fog.mock? tests('Archives').formats(@archive_format, false) do archives.body['Archives'].first end else returns(200) { archives.status } returns(false) { archives.body.empty? } end end end end
Version data entries
17 entries across 17 versions & 4 rubygems