From 48b481b68d29238c6120bed893d96e6bc980fb96 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 20 Mar 2023 09:16:20 +1100 Subject: [PATCH] Unknown file type should default to yaml, Fixes #1609 --- acceptance_tests/inputs-format-auto.sh | 17 +++++++++++++++++ cmd/utils.go | 23 +++++++++++++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/acceptance_tests/inputs-format-auto.sh b/acceptance_tests/inputs-format-auto.sh index 302f3025..a5e6897c 100755 --- a/acceptance_tests/inputs-format-auto.sh +++ b/acceptance_tests/inputs-format-auto.sh @@ -2,6 +2,7 @@ setUp() { rm test*.yml 2>/dev/null || true + rm test*.tfstate 2>/dev/null || true rm test*.json 2>/dev/null || true rm test*.properties 2>/dev/null || true rm test*.csv 2>/dev/null || true @@ -29,6 +30,22 @@ EOM assertEquals "$expected" "$X" } +testInputTfstate() { + cat >test.tfstate <test.json <