Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 664 Bytes
{ ... }:
name = "golden-book-test";
nodes.server = ./server.nix;
testScript = ''
# Wait for all services to finish starting
# Server should start out with no posts in the database and return an empty but successful response at first
$server->succeed('[ -z "$(curl --fail localhost)" ]');
# Making a post should succeed and the server should respond politely
$server->succeed("curl --fail -F text=testpost localhost | grep Thanks");
# And after that, the post should be displayed on the main page.
$server->succeed("curl --fail localhost | grep testpost");
You can’t perform that action at this time.