Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pdk Templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppet-infra
Pdk Templates
Commits
d88c8cb3
Commit
d88c8cb3
authored
1 year ago
by
Lukas Audzevicius
Browse files
Options
Downloads
Patches
Plain Diff
Adding test case
parent
2b538760
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/fixtures/new_provider_sync.yml
+1
-1
1 addition, 1 deletion
.ci/fixtures/new_provider_sync.yml
.ci/test_script.sh
+2
-0
2 additions, 0 deletions
.ci/test_script.sh
with
3 additions
and
1 deletion
.ci/fixtures/new_provider_sync.yml
+
1
−
1
View file @
d88c8cb3
...
@@ -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
This diff is collapsed.
Click to expand it.
.ci/test_script.sh
+
2
−
0
View file @
d88c8cb3
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment