From 29a5bff02022cd9f99be2d3cf7c179a8e78ff6b7 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 4 Jun 2017 11:32:40 -0400 Subject: Add include function Signed-off-by: Dave Henderson --- test/integration/datasources_file.bats | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/integration/datasources_file.bats b/test/integration/datasources_file.bats index 621931c9..cfabcb65 100644 --- a/test/integration/datasources_file.bats +++ b/test/integration/datasources_file.bats @@ -40,3 +40,10 @@ function teardown () { [[ "${output}" == "foo\" bar" ]] } + +@test "'include' doesn't parse file" { + echo 'foo: bar' > $tmpdir/config.yml + gomplate -d config=$tmpdir/config.yml -i '{{include "config"}}' + [ "$status" -eq 0 ] + [[ "${output}" == "foo: bar" ]] +} -- cgit v1.2.3