mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
feat: initial support for e2e tests
This commit is contained in:
parent
b1319684c7
commit
3549610e0e
5 changed files with 147 additions and 11 deletions
4
lib.nix
4
lib.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue