Shindo tests with exception of undefined method `succeeds'

39 views
Skip to first unread message

Cindia

unread,
May 23, 2012, 3:18:45 AM5/23/12
to ruby-fog
Ran servers-tests.rb under vsphere folder but got below error. My
installed Shindo vesion is 0.3.4.


C:\Ruby193\lib\ruby\gems\1.9.1\gems\fog-1.2.0\tests\vsphere\models
\compute>Shindo servers_tests.rb

[1mFog::Compute[:vsphere] | servers collection [22m (vsphere)
[1mThe servers collection [22m
#<RbVmomi::VIM::PropertyFilterSpec:0x1fcb228>
[32m+ should not be empty [0m
[32m+ should be a kind of Fog::Compute::Vsphere::Servers [0m
[1mshould be able to reload itself [22m [31mundefined
method `succeeds' for #<Shindo::Tests:0x1040148> (NoMethodError) [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/fog-1.2.0/tests/
vsphere/models/compute/servers_tests.rb:17:in `block (2 levels) in
<top (required)>' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:79:in `instance_eval' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:79:in `tests' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/fog-1.2.0/tests/
vsphere/models/compute/servers_tests.rb:14:in `block in <top
(required)>' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:79:in `instance_eval' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:79:in `tests' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:38:in `initialize' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:14:in `new' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo.rb:14:in `tests' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/fog-1.2.0/tests/
vsphere/models/compute/servers_tests.rb:1:in `<top (required)>' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo/bin.rb:61:in `load' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo/bin.rb:61:in `block (2 levels) in run_in_thread' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo/bin.rb:58:in `each' [0m
[31mC:/Ruby193/lib/ruby/gems/1.9.1/gems/shindo-0.3.4/lib/
shindo/bin.rb:58:in `block in run_in_thread' [0m

[32m2 succeeded [0m in [1m159.931862 [0m seconds


Please help suggest how to cope with this. Thanks a lot.

geemus (Wesley Beary)

unread,
May 23, 2012, 11:52:48 AM5/23/12
to ruby...@googlegroups.com
Have you made any changes to the file? Looking at the version on
master I don't see any obvious discrepancies that would cause this
problem, but I might also be missing something.
wes

Cindia

unread,
May 23, 2012, 8:02:53 PM5/23/12
to ruby-fog
Please access the link https://github.com/Cindia-blue/fog/commit/9fc8ac6515a0ee3fa3774b73720e967f05578dd2#diff-2
for my changes at servers_tests.rb
Can not think out how these changes affect Shindo's behavior.What
version of Shindo you are using?
Thanks, Cindia

geemus (Wesley Beary)

unread,
May 25, 2012, 1:08:27 PM5/25/12
to ruby...@googlegroups.com
I am also having a hard time figuring out why this would be the case.
I am using shindo 0.3.4. If you comment out that particular test will
the other tests still run alright? It looked like tests previous to
that one in the file worked fine.
wes
Reply all
Reply to author
Forward
0 new messages