blob: 7c0e8e3d055abf01eb05c8715228db5f31f58787 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import ./make-test-python.nix ({ pkgs, ... }: {
name = "yq";
meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ nequissimus ]; };
nodes.yq = { pkgs, ... }: { environment.systemPackages = with pkgs; [ jq yq ]; };
testScript = ''
assert "hello:\n foo: bar\n" in yq.succeed(
'echo \'{"hello":{"foo":"bar"}}\' | yq -y .'
)
'';
})
|