Hi, I''m getting the following error when trying to run a feature in puppet: ==========================================cucumber-puppet modules/smtp-external/smtp-external.feature Feature: smtp-external In order to allow our customers to send email As a user I want to send email to people outside of namesco Scenario: Build the server # modules/smtp-external/smtp-external.feature:6 testing external-stmp Given that I need to test a "external-stmp" server # steps/vhost.rb:2 When I build a "external-smtp" server # steps/vhost.rb:6 Then the "external-smtp" server should be provisioned # steps/vhost.rb:11 undefined method `resource'' for nil:NilClass (NoMethodError) ./steps/puppet.rb:58:in `/^there should be a resource "([^ \"]*)"$/'' modules/smtp-external/smtp-external.feature:9:in `Then the "external-smtp" server should be provisioned'' And I should be able to connect to port "25" # steps/vhost.rb:21 Failing Scenarios: cucumber modules/smtp-external/smtp-external.feature:6 # Scenario: Build the server 1 scenario (1 failed) 4 steps (1 failed, 1 skipped, 2 passed) 0m0.344s =========================================== The feature is as follows: ==========================================Feature: smtp-external In order to allow our customers to send email As a user I want to send email to people outside of namesco Scenario: Build the server Given that I need to test a "external-stmp" server When I build a "external-smtp" server Then the "external-smtp" server should be provisioned And I should be able to connect to port "25" ========================================== and the (not quite complete yet!) steps for vhosts are as follows: ==========================================conn = Libvirt::open("qemu:///system") Given /^that I need to test a "([^\"]*)" server$/ do |servertype| puts "testing #{servertype}" end When /^I build a "([^\"]*)" server$/ do | serverVMType | conn.create_domain_linux(File.read("/etc/libvirt/qemu/" + serverVMType + ".xml")) dom = conn.lookup_domain_by_name(serverVMType) end Then /^the "([^\"]*)" server should be provisioned$/ do |serverVMType| dom = conn.lookup_domain_by_name(serverVMType) if dom.info.state == 1 steps %Q{ Then package "exim" should be "present" } end end Then /^I should be able to connect to port "([^\"]*)"$/ do |portNum| end ============================================= Can anyone help with this please? I promise a blog post on Cobbler/Puppet/Cucumber integration once it''s all fixed and running! :) Matt -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.