Skip to content

Commit

Permalink
Set server tests to pending
Browse files Browse the repository at this point in the history
It appears these tests never worked. I tried to rewrite them to correct
shindo tests but then they failed. For now marked as pending.
  • Loading branch information
ekohl authored and chris1984 committed Nov 18, 2022
1 parent 0c09249 commit a83f25b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
9 changes: 0 additions & 9 deletions tests/helpers/succeeds_helper.rb

This file was deleted.

9 changes: 5 additions & 4 deletions tests/models/compute/servers_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
servers = Fog::Compute[:vsphere].servers

tests('The servers collection') do
pending # Not mocked
test('should not be empty') { !servers.empty? }
test('should be a kind of Fog::Vsphere::Compute::Servers') { servers.is_a? Fog::Vsphere::Compute::Servers }
tests('should be able to reload itself').succeeds { servers.reload }
tests('should be a kind of Fog::Vsphere::Compute::Servers').returns(Fog::Vsphere::Compute::Servers) { servers }
test('should be able to reload itself') { servers.reload }
tests('should be able to get a model') do
tests('by managed object reference').succeeds { servers.get 'jefftest' }
tests('by instance uuid').succeeds { servers.get '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
tests('by managed object reference').returns(String) { servers.get('jefftest') }
tests('by instance uuid').returns(String) { servers.get('5032c8a5-9c5e-ba7a-3804-832a03e16381') }
end
end
end

0 comments on commit a83f25b

Please sign in to comment.