snix/tvix/glue/src/tests/tvix_tests
Florian Klink cd48566173 fix(tvix/glue): reject unknown attrset args for fetch builtins
This now uses UnexpectedArgumentBuiltin in case builtins.fetchurl or
builtins.fetchTarball are called with the wrong arguments:

```
note: while evaluating this Nix code
 --> [code]:1:1
  |
1 | builtins.readDir (builtins.fetchTarball { url = "https://git"; hash = "sha1-NKNeU1csW5YJ4lCeWH3Z/apppNU=";})
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E040]: Unexpected agrument `"hash"` passed to builtin
 --> [code]:1:19
  |
1 | builtins.readDir (builtins.fetchTarball { url = "https://git"; hash = "sha1-NKNeU1csW5YJ4lCeWH3Z/apppNU=";})
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ while calling this builtin

```

Change-Id: I51124255a46b78d3cf4dc89a1eca9e68750858d4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11878
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: Simon Hauser <simon.hauser@helsinki-systems.de>
Tested-by: BuildkiteCI
2024-06-26 16:06:52 +00:00
..
eval-fail-fetchtarball-invalid-attrs.nix fix(tvix/glue): reject unknown attrset args for fetch builtins 2024-06-26 16:06:52 +00:00
eval-fail-fetchtarball-invalid-url.nix feat(tvix/glue): add eval-fail-* support to glue tests 2024-06-26 11:17:30 +00:00
eval-fail-fetchurl-invalid-attrs.nix fix(tvix/glue): reject unknown attrset args for fetch builtins 2024-06-26 16:06:52 +00:00
eval-fail-fetchurl-invalid-url.nix feat(tvix/glue): add eval-fail-* support to glue tests 2024-06-26 11:17:30 +00:00
eval-fail-tofile-wrongctxtype.nix feat(tvix/glue): implement builtins.toFile 2024-06-26 14:25:20 +00:00
eval-okay-context-introspection.exp feat(tvix/eval): contextful JSON operations 2024-04-13 10:11:18 +00:00
eval-okay-context-introspection.nix fix(tvix/eval): handle builtins.split matching the empty string 2024-06-11 14:59:02 +00:00
eval-okay-context-propagation.exp feat(tvix/eval): contextful JSON operations 2024-04-13 10:11:18 +00:00
eval-okay-context-propagation.nix feat(tvix/eval): contextful JSON operations 2024-04-13 10:11:18 +00:00
eval-okay-fetchtarball.exp test(tvix/glue): add tests for fetchurl and fetchTarball 2024-04-23 12:41:05 +00:00
eval-okay-fetchtarball.nix test(tvix/glue): add tests for fetchurl and fetchTarball 2024-04-23 12:41:05 +00:00
eval-okay-fetchurl.exp test(tvix/glue/fetchurl): add output path tests for fetchurl 2024-06-12 10:30:30 +00:00
eval-okay-fetchurl.nix test(tvix/glue/fetchurl): add output path tests for fetchurl 2024-06-12 10:30:30 +00:00
eval-okay-storePath.exp feat(tvix/glue): Implement builtins.storePath 2024-06-05 17:50:15 +00:00
eval-okay-storePath.nix feat(tvix/glue): Implement builtins.storePath 2024-06-05 17:50:15 +00:00
eval-okay-tofile.exp feat(tvix/glue): implement builtins.toFile 2024-06-26 14:25:20 +00:00
eval-okay-tofile.nix feat(tvix/glue): implement builtins.toFile 2024-06-26 14:25:20 +00:00
eval-okay-toxml-context.exp feat(tvix/eval): teach builtins.toXML context 2024-05-23 14:49:07 +00:00
eval-okay-toxml-context.nix feat(tvix/eval): teach builtins.toXML context 2024-05-23 14:49:07 +00:00