test/support/integration_test.rb in knife-solo-0.3.0.pre2 vs test/support/integration_test.rb in knife-solo-0.3.0.pre3
- old
+ new
@@ -83,12 +83,17 @@
# The ssh-style connection string used to connect to the current node
def connection_string
"-i #{key_file} #{user}@#{server.public_ip_address}"
end
- # Asserts that a prepare or cook command is successful
- def assert_subcommand(subcommand)
- system "knife solo #{subcommand} #{connection_string} -VV >> #{log_file}"
+ # Asserts that a knife command is successful
+ def assert_knife_command(subcommand)
+ system "knife #{subcommand} #{connection_string} -VV >> #{log_file}"
assert $?.success?
+ end
+
+ # Asserts that a knife solo subcommand is successful
+ def assert_subcommand(subcommand)
+ assert_knife_command "solo #{subcommand}"
end
end