From f82a24861755ca3bb839e08aa1a7b320d244518c Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 16 Jun 2020 18:26:41 -0700 Subject: [PATCH] Add test with backfill. --- templates/templates_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/templates_test.go b/templates/templates_test.go index f8707a69..2f169dac 100644 --- a/templates/templates_test.go +++ b/templates/templates_test.go @@ -197,6 +197,7 @@ func TestTemplate_Load(t *testing.T) { wantErr bool }{ {"ok", fields{"include.tpl", Snippet, "../authority/testdata/templates/include.tpl", "~/.ssh/config", "#"}, false}, + {"ok backfill", fields{"sshd_config.tpl", Snippet, "../authority/testdata/templates/sshd_config.tpl", "/etc/ssh/sshd_config", "#"}, false}, {"error", fields{"error.tpl", Snippet, "../authority/testdata/templates/error.tpl", "/tmp/error", "#"}, true}, {"missing", fields{"include.tpl", Snippet, "./testdata/include.tpl", "~/.ssh/config", "#"}, true}, }