You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
778 B
Nix
22 lines
778 B
Nix
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
(import ./lib.nix) {
|
|
name = "Null test, should always pass";
|
|
nodes = {
|
|
# `self` here is set by using specialArgs in `lib.nix`
|
|
node1 = { self, pkgs, ... }: {
|
|
};
|
|
};
|
|
# This is the test code that will check if our service is running correctly:
|
|
testScript = ''
|
|
start_all()
|
|
# wait for our service to start
|
|
node1.wait_for_unit("hello-world-server")
|
|
output = node1.succeed("echo Hello world")
|
|
# Check if our webserver returns the expected result
|
|
assert "Hello world" in output, f"'{output}' does not contain 'Hello world'"
|
|
'';
|
|
} |