diff options
author | Silvan Mosberger <github@infinisil.com> | 2020-12-18 16:42:42 +0100 |
---|---|---|
committer | Silvan Mosberger <github@infinisil.com> | 2020-12-18 16:44:37 +0100 |
commit | 9e6737710c4fb2613850e699178b23d54f1a3261 (patch) | |
tree | 9ba4d7163707bbc92e8a5917680426b0a01836f4 /lib/tests/modules | |
parent | fd1cc29974de2255d407a706f23aacdfb76f543b (diff) |
Revert "Module-builtin assertions, disabling assertions and submodule assertions"
Diffstat (limited to 'lib/tests/modules')
-rw-r--r-- | lib/tests/modules/assertions/condition-true.nix | 8 | ||||
-rw-r--r-- | lib/tests/modules/assertions/enable-false.nix | 9 | ||||
-rw-r--r-- | lib/tests/modules/assertions/multi.nix | 23 | ||||
-rw-r--r-- | lib/tests/modules/assertions/simple.nix | 6 | ||||
-rw-r--r-- | lib/tests/modules/assertions/submodule-attrsOf-attrsOf.nix | 13 | ||||
-rw-r--r-- | lib/tests/modules/assertions/submodule-attrsOf.nix | 13 | ||||
-rw-r--r-- | lib/tests/modules/assertions/submodule.nix | 13 | ||||
-rw-r--r-- | lib/tests/modules/assertions/underscore-attributes.nix | 8 | ||||
-rw-r--r-- | lib/tests/modules/assertions/warning.nix | 9 |
9 files changed, 0 insertions, 102 deletions
diff --git a/lib/tests/modules/assertions/condition-true.nix b/lib/tests/modules/assertions/condition-true.nix deleted file mode 100644 index 7ca0817a23971..0000000000000 --- a/lib/tests/modules/assertions/condition-true.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - - _module.checks.test = { - check = true; - message = "Assertion failed"; - }; - -} diff --git a/lib/tests/modules/assertions/enable-false.nix b/lib/tests/modules/assertions/enable-false.nix deleted file mode 100644 index 11f753bb32e81..0000000000000 --- a/lib/tests/modules/assertions/enable-false.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ - - _module.checks.test = { - enable = false; - check = false; - message = "Assertion failed"; - }; - -} diff --git a/lib/tests/modules/assertions/multi.nix b/lib/tests/modules/assertions/multi.nix deleted file mode 100644 index 1e2e14b8643a4..0000000000000 --- a/lib/tests/modules/assertions/multi.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - - _module.checks = { - test1 = { - check = false; - message = "Assertion 1 failed"; - }; - test2 = { - check = false; - message = "Assertion 2 failed"; - }; - test3 = { - check = false; - message = "Warning 3 failed"; - type = "warning"; - }; - test4 = { - check = false; - message = "Warning 4 failed"; - type = "warning"; - }; - }; -} diff --git a/lib/tests/modules/assertions/simple.nix b/lib/tests/modules/assertions/simple.nix deleted file mode 100644 index 115d89a303622..0000000000000 --- a/lib/tests/modules/assertions/simple.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - _module.checks.test = { - check = false; - message = "Assertion failed"; - }; -} diff --git a/lib/tests/modules/assertions/submodule-attrsOf-attrsOf.nix b/lib/tests/modules/assertions/submodule-attrsOf-attrsOf.nix deleted file mode 100644 index 27a63d1e4329c..0000000000000 --- a/lib/tests/modules/assertions/submodule-attrsOf-attrsOf.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ lib, ... }: { - - options.foo = lib.mkOption { - default = { bar.baz = {}; }; - type = lib.types.attrsOf (lib.types.attrsOf (lib.types.submodule { - _module.checks.test = { - check = false; - message = "Assertion failed"; - }; - })); - }; - -} diff --git a/lib/tests/modules/assertions/submodule-attrsOf.nix b/lib/tests/modules/assertions/submodule-attrsOf.nix deleted file mode 100644 index aac5937cf7e59..0000000000000 --- a/lib/tests/modules/assertions/submodule-attrsOf.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ lib, ... }: { - - options.foo = lib.mkOption { - default = { bar = {}; }; - type = lib.types.attrsOf (lib.types.submodule { - _module.checks.test = { - check = false; - message = "Assertion failed"; - }; - }); - }; - -} diff --git a/lib/tests/modules/assertions/submodule.nix b/lib/tests/modules/assertions/submodule.nix deleted file mode 100644 index 4e7e0b1bd61e9..0000000000000 --- a/lib/tests/modules/assertions/submodule.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ lib, ... }: { - - options.foo = lib.mkOption { - default = {}; - type = lib.types.submodule { - _module.checks.test = { - check = false; - message = "Assertion failed"; - }; - }; - }; - -} diff --git a/lib/tests/modules/assertions/underscore-attributes.nix b/lib/tests/modules/assertions/underscore-attributes.nix deleted file mode 100644 index f9ee5c5787b08..0000000000000 --- a/lib/tests/modules/assertions/underscore-attributes.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - - _module.checks._test = { - check = false; - message = "Assertion failed"; - }; - -} diff --git a/lib/tests/modules/assertions/warning.nix b/lib/tests/modules/assertions/warning.nix deleted file mode 100644 index 72598ba3fdd55..0000000000000 --- a/lib/tests/modules/assertions/warning.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ - - _module.checks.test = { - check = false; - type = "warning"; - message = "Warning message"; - }; - -} |