Sha256: bf66fd2b06bd4b40185ff3dabad49481bec3077350cd37cf2ebee972ff9176df

Contents?: true

Size: 627 Bytes

Versions: 30

Compression:

Stored size: 627 Bytes

Contents

Shindo.tests("Fog::Compute::HPV2 | key_pair model", ['hp', 'v2', 'compute']) do

  service = Fog::Compute.new(:provider => 'HP', :version => :v2)

  model_tests(service.key_pairs, {:name => 'fogkeyname'}, true)

  after do
    @keypair.destroy
  end

  tests('new keypair') do
    @keypair = service.key_pairs.create(:name => 'fogtestkey')

    test('writable?') do
      @keypair.writable? == true
    end
  end

  tests('existing keypair') do
    service.key_pairs.create(:name => 'fogtestkey')
    @keypair = service.key_pairs.get('fogtestkey')

    test('writable?') do
      @keypair.writable? == false
    end
  end

end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
fog-1.38.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.37.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.36.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.35.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-2.0.0.pre.0 tests/hp/models/compute_v2/key_pair_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.34.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.33.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.32.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.31.0 tests/hp/models/compute_v2/key_pair_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.30.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.29.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.28.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.27.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.26.0 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.25.0 tests/hp/models/compute_v2/key_pair_tests.rb
nsidc-fog-1.24.1 tests/hp/models/compute_v2/key_pair_tests.rb
fog-1.24.0 tests/hp/models/compute_v2/key_pair_tests.rb
ns-fog-1.22.11 tests/hp/models/compute_v2/key_pair_tests.rb