Sha256: a5bde7be1d858a128a49b5273e786b35dff9e335a6ce182a7d33202b6efca4c0
Contents?: true
Size: 694 Bytes
Versions: 17
Compression:
Stored size: 694 Bytes
Contents
# coding: utf-8 Shindo.tests('Fog::Compute[:sakuracloud] | list_ssh_keys request', ['sakuracloud', 'compute']) do @sshkey_format = { 'Index' => Integer, 'ID' => String, 'Name' => String, 'PublicKey' => String } tests('success') do tests('#list_ssh_keys') do sshkeys = compute_service.list_ssh_keys test 'returns a Hash' do sshkeys.body.is_a? Hash end if Fog.mock? tests('SSHKeys').formats(@sshkey_format, false) do sshkeys.body['SSHKeys'].first end else returns(200) { sshkeys.status } returns(false) { sshkeys.body.empty? } end end end end
Version data entries
17 entries across 17 versions & 4 rubygems