tests: allow testing assertions
By default tests are expected to produce no assertion. This also updates the existing tests to match.
This commit is contained in:
parent
bdee1be7b3
commit
ef4370bedc
22 changed files with 102 additions and 85 deletions
|
|
@ -17,13 +17,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,13 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,13 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
["Forwarded paths cannot have ports."]
|
||||
|
|
@ -21,13 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,13 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue