From 7f4f0e1d7033b1cf4ecb7722db3e64380b7c33db Mon Sep 17 00:00:00 2001 From: Ilkka Poutanen Date: Mon, 11 Sep 2023 13:12:30 +0300 Subject: [PATCH] Change more features to template language --- features/check-file-origin.feature | 16 ++++++++-------- features/execute-recipes.feature | 2 +- features/recipe-tests.feature | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/features/check-file-origin.feature b/features/check-file-origin.feature index 93531975..f3247be6 100644 --- a/features/check-file-origin.feature +++ b/features/check-file-origin.feature @@ -3,7 +3,7 @@ Feature: Check origin of a file in project directory using "why" command Scenario: File generated by a recipe Given a project directory And a recipes directory - And a recipe "foo" that generates file "README.md" + And a recipe "foo" that has a template "README.md.tmpl" And I execute recipe "foo" When I check why the file "README.md" is created Then CLI produced an output "File 'README.md' is created by the recipe 'foo'" @@ -11,15 +11,15 @@ Feature: Check origin of a file in project directory using "why" command Scenario: Nested file generated by a recipe Given a project directory And a recipes directory - And a recipe "foo" that generates file "foo/bar.yml" + And a recipe "foo" that has a template "foo/bar.yml.tmpl" And I execute recipe "foo" When I check why the file "foo/bar.yml" is created Then CLI produced an output "File 'foo/bar.yml' is created by the recipe 'foo'" - + Scenario: Directory generated by a recipe Given a project directory And a recipes directory - And a recipe "foo" that generates file "foo/bar.yml" + And a recipe "foo" that has a template "foo/bar.yml.tmpl" And I execute recipe "foo" When I check why the file "foo" is created Then CLI produced an output "Directory 'foo' is created by the recipe 'foo'" @@ -27,15 +27,15 @@ Feature: Check origin of a file in project directory using "why" command Scenario: Directory generated by Jalapeno Given a project directory And a recipes directory - And a recipe "foo" that generates file "README.md" + And a recipe "foo" that has a template "README.md.tmpl" And I execute recipe "foo" When I check why the file ".jalapeno" is created Then CLI produced an output "Directory '.jalapeno' is created by Jalapeno" - + Scenario: File generated by Jalapeno Given a project directory And a recipes directory - And a recipe "foo" that generates file "README.md" + And a recipe "foo" that has a template "README.md.tmpl" And I execute recipe "foo" When I check why the file ".jalapeno/sauces.yml" is created Then CLI produced an output "File '.jalapeno/sauces.yml' is created by Jalapeno" @@ -43,7 +43,7 @@ Feature: Check origin of a file in project directory using "why" command Scenario: File not found Given a project directory And a recipes directory - And a recipe "foo" that generates file "README.md" + And a recipe "foo" that has a template "README.md.tmpl" And I execute recipe "foo" When I check why the file "not-found" is created Then CLI produced an error "File '.*/not-found' does not exist" diff --git a/features/execute-recipes.feature b/features/execute-recipes.feature index bb901f66..bd890ccb 100644 --- a/features/execute-recipes.feature +++ b/features/execute-recipes.feature @@ -14,7 +14,7 @@ Feature: Execute recipes Scenario: Execute single recipe from remote registry Given a project directory And a recipes directory - And a recipe "foo" that generates file "README.md" + And a recipe "foo" that has a template "README.md.tmpl" And a local OCI registry And the recipe "foo" is pushed to the local OCI repository "foo:v0.0.1" When I execute the recipe from the local OCI repository "foo:v0.0.1" diff --git a/features/recipe-tests.feature b/features/recipe-tests.feature index 756781d9..d597047b 100644 --- a/features/recipe-tests.feature +++ b/features/recipe-tests.feature @@ -1,7 +1,7 @@ Feature: Running tests for a recipe Scenario: Using CLI to create a new recipe test Given a recipes directory - And a recipe "foo" that generates file "README.md" + And a recipe "foo" that has a template "README.md.tmpl" When I create a placeholder test for recipe "foo" using the CLI Then CLI produced an output "Test created" And no errors were printed