test/integration/cases/apache2_cook.rb in knife-solo-0.1.0.pre1 vs test/integration/cases/apache2_cook.rb in knife-solo-0.1.0
- old
+ new
@@ -9,19 +9,18 @@
CHEF
end
end
def http_response
- Net::HTTP.get(URI.parse("http://"+server.public_ip_address))
+ Net::HTTP.get(URI.parse("http://#{server.public_ip_address}"))
end
def default_apache_message
- /It works!/
+ /Apache Server/
end
def test_apache2
write_cheffile
- system "librarian-chef install >> #{log_file}"
write_nodefile(run_list: ["recipe[apache2]"])
assert_subcommand "cook"
assert_match default_apache_message, http_response
end
end