Skip to content
Snippets Groups Projects
Commit 984254e7 authored by Thomas Hahn's avatar Thomas Hahn
Browse files

Test for ext-str-file

parent 37f97b05
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ func TestShow(t *testing.T) {
"string": "bar",
"notAVal": "aVal",
"notAnotherVal": "aVal2",
"filevar": "foo",
"array": ["one", 2, [3]],
"object": {"foo": "bar"}
}
......@@ -68,6 +69,7 @@ func TestShow(t *testing.T) {
filepath.FromSlash("../testdata/test.jsonnet"),
"-V", "aVar=aVal",
"-V", "anVar",
"--ext-str-file", "filevar=../testdata/extvar.file",
})
t.Log("output is", output)
......
foo
\ No newline at end of file
local test = import "test.libsonnet";
local aVar = std.extVar("aVar");
local anVar = std.extVar("anVar");
local filevar = std.extVar("filevar");
{
apiVersion: "v1",
......@@ -10,6 +11,7 @@ local anVar = std.extVar("anVar");
string: "bar",
notAVal : aVar,
notAnotherVal : anVar,
filevar : filevar,
}
],
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment