Skip to content
Snippets Groups Projects
Commit d88c8cb3 authored by Lukas Audzevicius's avatar Lukas Audzevicius
Browse files

Adding test case

parent 2b538760
No related branches found
No related tags found
No related merge requests found
...@@ -7,5 +7,5 @@ spec/spec_helper.rb: ...@@ -7,5 +7,5 @@ spec/spec_helper.rb:
mock_with: ':rspec' mock_with: ':rspec'
.rubocop.yml: .rubocop.yml:
default_configs: default_configs:
Lint/EnsureReturn: Performance/CaseWhenSplat:
Enabled: false Enabled: false
...@@ -13,7 +13,9 @@ pdk new module new_module --template-url="file://$TEMPLATE_PR_DIR" --template-re ...@@ -13,7 +13,9 @@ pdk new module new_module --template-url="file://$TEMPLATE_PR_DIR" --template-re
pushd new_module pushd new_module
grep template < metadata.json grep template < metadata.json
cp "$TEMPLATE_PR_DIR/.ci/fixtures/new_provider_sync.yml" ./.sync.yml 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 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 class new_module
pdk new defined_type test_type pdk new defined_type test_type
pdk new fact test_fact || true # not available in pdk 1.18 yet pdk new fact test_fact || true # not available in pdk 1.18 yet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment