From d88c8cb32ae3d4b31b81643eedef38c5e7e70b50 Mon Sep 17 00:00:00 2001 From: Lukas Audzevicius Date: Wed, 13 Mar 2024 12:15:42 +0000 Subject: [PATCH] Adding test case --- .ci/fixtures/new_provider_sync.yml | 2 +- .ci/test_script.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/fixtures/new_provider_sync.yml b/.ci/fixtures/new_provider_sync.yml index 6341b0e9..63c67d6c 100644 --- a/.ci/fixtures/new_provider_sync.yml +++ b/.ci/fixtures/new_provider_sync.yml @@ -7,5 +7,5 @@ spec/spec_helper.rb: mock_with: ':rspec' .rubocop.yml: default_configs: - Lint/EnsureReturn: + Performance/CaseWhenSplat: Enabled: false diff --git a/.ci/test_script.sh b/.ci/test_script.sh index 04848890..e1535f90 100755 --- a/.ci/test_script.sh +++ b/.ci/test_script.sh @@ -13,7 +13,9 @@ pdk new module new_module --template-url="file://$TEMPLATE_PR_DIR" --template-re pushd new_module grep template < metadata.json cp "$TEMPLATE_PR_DIR/.ci/fixtures/new_provider_sync.yml" ./.sync.yml +grep -A 1 "Performance/CaseWhenSplat" ./.rubocop.yml | grep -q "true" # Ensure that the template is applied pdk update --force +grep -A 1 "Performance/CaseWhenSplat" ./.rubocop.yml | grep -q "false" # Ensure that the update command changes the template pdk new class new_module pdk new defined_type test_type pdk new fact test_fact || true # not available in pdk 1.18 yet