feat: initial support for e2e tests

This commit is contained in:
Jaka Hudoklin 2019-02-20 09:34:15 +01:00
parent b1319684c7
commit 3549610e0e
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
5 changed files with 147 additions and 11 deletions

View file

@ -27,11 +27,11 @@ in rec {
loadYAML = path: importJSON (pkgs.runCommand "yaml-to-json" {
} "${pkgs.remarshal}/bin/remarshal -i ${path} -if yaml -of json > $out");
toYAML = config: builtins.readFile (pkgs.runCommand "to-yaml" {
toYAML = config: pkgs.runCommand "to-yaml" {
buildInputs = [pkgs.remarshal];
} ''
remarshal -i ${pkgs.writeText "to-json" (builtins.toJSON config)} -if json -of yaml > $out
'');
'';
toBase64 = value:
builtins.readFile