Skip to content

Commit

Permalink
test: add snapshot for new nixostests block type
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Feb 17, 2024
1 parent d54ba55 commit edbcecd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/_snapshots/bt-blocktypes
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,42 @@
name = "nixago";
type = "nixago";
};
nixostests = {
actions = [
{
command = <derivation run>;
description = "run tests in headless vm";
name = "run";
}
{
command = <derivation audit-script>;
description = "audit the test script";
name = "audit-script";
}
{
command = <derivation run-vm>;
description = "run tests interactively in vm";
name = "run-vm";
}
{
command = <derivation run-vm+>;
description = "run tests with state from last run";
name = "run-vm+";
}
{
command = <derivation iptables+>;
description = "setup nat redirect 80->8080 & 443->4433";
name = "iptables+";
}
{
command = <derivation iptables->;
description = "remove nat redirect 80->8080 & 443->4433";
name = "iptables-";
}
];
name = "nixostests";
type = "nixostests";
};
nomad = {
actions = [
{
Expand Down
4 changes: 4 additions & 0 deletions tests/bt-blocktypes/expr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ in
install = "install";
configFile = "path/to/configFile";
};
nixostests = {
driver = "driver";
driverInteractive = "driverInteractive";
};
microvms = {
config.microvm.runner.foo = "42";
config.microvm.hypervisor = "foo";
Expand Down

0 comments on commit edbcecd

Please sign in to comment.