From db508ba4c2f49e8ed2d13d975f134985334f7994 Mon Sep 17 00:00:00 2001 From: "Giau. Tran Minh" Date: Mon, 14 Aug 2023 20:38:40 +0700 Subject: [PATCH] chore: fixed template issue --- internal/provider/config/migrate.tmpl | 10 ---------- .../provider/testdata/TestTemplate/baseline-cfg.hcl | 10 ---------- internal/provider/testdata/TestTemplate/cloud-cfg.hcl | 10 ---------- .../testdata/TestTemplate/cloud-no-token-cfg.hcl | 10 ---------- .../provider/testdata/TestTemplate/cloud-tag-cfg.hcl | 10 ---------- internal/provider/testdata/TestTemplate/local-cfg.hcl | 10 ---------- internal/provider/testdata/TestTemplate/token-cfg.hcl | 10 ---------- 7 files changed, 70 deletions(-) diff --git a/internal/provider/config/migrate.tmpl b/internal/provider/config/migrate.tmpl index 5492153..0800db7 100644 --- a/internal/provider/config/migrate.tmpl +++ b/internal/provider/config/migrate.tmpl @@ -52,14 +52,4 @@ env { revisions_schema = "{{ .RevisionsSchema }}" {{- end }} } - format { - migrate { - apply = "{{"{{ json . }}"}}" - lint = "{{"{{ json . }}"}}" - status = "{{"{{ json . }}"}}" - } - } - lint { - format = "{{"{{ json . }}"}}" - } } diff --git a/internal/provider/testdata/TestTemplate/baseline-cfg.hcl b/internal/provider/testdata/TestTemplate/baseline-cfg.hcl index 61463aa..abc2155 100644 --- a/internal/provider/testdata/TestTemplate/baseline-cfg.hcl +++ b/internal/provider/testdata/TestTemplate/baseline-cfg.hcl @@ -7,14 +7,4 @@ env { dir = "file://migrations" baseline = "100000" } - format { - migrate { - apply = "{{ json . }}" - lint = "{{ json . }}" - status = "{{ json . }}" - } - } - lint { - format = "{{ json . }}" - } } diff --git a/internal/provider/testdata/TestTemplate/cloud-cfg.hcl b/internal/provider/testdata/TestTemplate/cloud-cfg.hcl index b3142d5..8f3ee57 100644 --- a/internal/provider/testdata/TestTemplate/cloud-cfg.hcl +++ b/internal/provider/testdata/TestTemplate/cloud-cfg.hcl @@ -16,14 +16,4 @@ env { migration { dir = data.remote_dir.this.url } - format { - migrate { - apply = "{{ json . }}" - lint = "{{ json . }}" - status = "{{ json . }}" - } - } - lint { - format = "{{ json . }}" - } } diff --git a/internal/provider/testdata/TestTemplate/cloud-no-token-cfg.hcl b/internal/provider/testdata/TestTemplate/cloud-no-token-cfg.hcl index 42a1e25..f22255d 100644 --- a/internal/provider/testdata/TestTemplate/cloud-no-token-cfg.hcl +++ b/internal/provider/testdata/TestTemplate/cloud-no-token-cfg.hcl @@ -9,14 +9,4 @@ env { migration { dir = "file://dir-url" } - format { - migrate { - apply = "{{ json . }}" - lint = "{{ json . }}" - status = "{{ json . }}" - } - } - lint { - format = "{{ json . }}" - } } diff --git a/internal/provider/testdata/TestTemplate/cloud-tag-cfg.hcl b/internal/provider/testdata/TestTemplate/cloud-tag-cfg.hcl index 9eecd30..1d6c27c 100644 --- a/internal/provider/testdata/TestTemplate/cloud-tag-cfg.hcl +++ b/internal/provider/testdata/TestTemplate/cloud-tag-cfg.hcl @@ -15,14 +15,4 @@ env { migration { dir = data.remote_dir.this.url } - format { - migrate { - apply = "{{ json . }}" - lint = "{{ json . }}" - status = "{{ json . }}" - } - } - lint { - format = "{{ json . }}" - } } diff --git a/internal/provider/testdata/TestTemplate/local-cfg.hcl b/internal/provider/testdata/TestTemplate/local-cfg.hcl index 4d5f942..5be954a 100644 --- a/internal/provider/testdata/TestTemplate/local-cfg.hcl +++ b/internal/provider/testdata/TestTemplate/local-cfg.hcl @@ -6,14 +6,4 @@ env { migration { dir = "file://migrations" } - format { - migrate { - apply = "{{ json . }}" - lint = "{{ json . }}" - status = "{{ json . }}" - } - } - lint { - format = "{{ json . }}" - } } diff --git a/internal/provider/testdata/TestTemplate/token-cfg.hcl b/internal/provider/testdata/TestTemplate/token-cfg.hcl index 915d4a7..48f2881 100644 --- a/internal/provider/testdata/TestTemplate/token-cfg.hcl +++ b/internal/provider/testdata/TestTemplate/token-cfg.hcl @@ -11,14 +11,4 @@ env { migration { dir = "file://migrations" } - format { - migrate { - apply = "{{ json . }}" - lint = "{{ json . }}" - status = "{{ json . }}" - } - } - lint { - format = "{{ json . }}" - } }