forked from puppetlabs/puppetlabs-lvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request puppetlabs#240 from puppetlabs/FM-8455
(FM-8455) move beaker tests to litmus
- Loading branch information
Showing
109 changed files
with
2,961 additions
and
2,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
fixtures: | ||
repositories: | ||
"stdlib": "https://github.com/puppetlabs/puppetlabs-stdlib.git" | ||
'facts': 'git://github.com/puppetlabs/puppetlabs-facts.git' | ||
'provision': "git://github.com/puppetlabs/provision.git" | ||
'puppet_agent': 'git://github.com/puppetlabs/puppetlabs-puppet_agent.git' | ||
'stdlib': "https://github.com/puppetlabs/puppetlabs-stdlib.git" | ||
forge_modules: | ||
mount_core: "puppetlabs/mount_core" | ||
'mount_core': "puppetlabs/mount_core" | ||
symlinks: | ||
"lvm": "#{source_dir}" | ||
'lvm': "#{source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.rb eol=lf | ||
*.erb eol=lf | ||
*.pp eol=lf | ||
*.sh eol=lf | ||
*.epp eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
*.swp | ||
.*.swp | ||
Gemfile.lock | ||
.bundle/ | ||
.fixtures/modules | ||
.fixtures/manifests | ||
spec/fixtures | ||
.git/ | ||
.*.sw[op] | ||
.metadata | ||
.yardoc | ||
.yardwarns | ||
*.iml | ||
/.bundle/ | ||
/.idea/ | ||
/.vagrant/ | ||
/coverage/ | ||
/bin/ | ||
/doc/ | ||
/Gemfile.local | ||
/Gemfile.lock | ||
/junit/ | ||
/log/ | ||
/pkg/ | ||
/spec/fixtures/manifests/ | ||
/spec/fixtures/modules/ | ||
/tmp/ | ||
/vendor/ | ||
/convert_report.txt | ||
/update_report.txt | ||
.DS_Store | ||
.project | ||
.envrc | ||
/inventory.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
stages: | ||
- syntax | ||
- unit | ||
|
||
cache: | ||
paths: | ||
- vendor/bundle | ||
|
||
before_script: | ||
- bundle -v | ||
- rm Gemfile.lock || true | ||
- gem update --system $RUBYGEMS_VERSION | ||
- gem --version | ||
- bundle -v | ||
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc) | ||
|
||
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.3-Puppet ~> 6: | ||
stage: syntax | ||
image: ruby:2.5.3 | ||
script: | ||
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop | ||
variables: | ||
PUPPET_GEM_VERSION: '~> 6' | ||
|
||
parallel_spec-Ruby 2.5.3-Puppet ~> 6: | ||
stage: unit | ||
image: ruby:2.5.3 | ||
script: | ||
- bundle exec rake parallel_spec | ||
variables: | ||
PUPPET_GEM_VERSION: '~> 6' | ||
|
||
parallel_spec-Ruby 2.4.5-Puppet ~> 5: | ||
stage: unit | ||
image: ruby:2.4.5 | ||
script: | ||
- bundle exec rake parallel_spec | ||
variables: | ||
PUPPET_GEM_VERSION: '~> 5' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.git/ | ||
.*.sw[op] | ||
.metadata | ||
.yardoc | ||
.yardwarns | ||
*.iml | ||
/.bundle/ | ||
/.idea/ | ||
/.vagrant/ | ||
/coverage/ | ||
/bin/ | ||
/doc/ | ||
/Gemfile.local | ||
/Gemfile.lock | ||
/junit/ | ||
/log/ | ||
/pkg/ | ||
/spec/fixtures/manifests/ | ||
/spec/fixtures/modules/ | ||
/tmp/ | ||
/vendor/ | ||
/convert_report.txt | ||
/update_report.txt | ||
.DS_Store | ||
.project | ||
.envrc | ||
/inventory.yaml | ||
/appveyor.yml | ||
/.fixtures.yml | ||
/Gemfile | ||
/.gitattributes | ||
/.gitignore | ||
/.gitlab-ci.yml | ||
/.pdkignore | ||
/Rakefile | ||
/rakelib/ | ||
/.rspec | ||
/.rubocop.yml | ||
/.travis.yml | ||
/.yardopts | ||
/spec/ | ||
/.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--relative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--format documentation --color | ||
--color | ||
--format documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
--- | ||
require: | ||
- rubocop-rspec | ||
- rubocop-i18n | ||
AllCops: | ||
DisplayCopNames: true | ||
TargetRubyVersion: '2.1' | ||
Include: | ||
- "./**/*.rb" | ||
Exclude: | ||
- bin/* | ||
- ".vendor/**/*" | ||
- "**/Gemfile" | ||
- "**/Rakefile" | ||
- pkg/**/* | ||
- spec/fixtures/**/* | ||
- vendor/**/* | ||
- "**/Puppetfile" | ||
- "**/Vagrantfile" | ||
- "**/Guardfile" | ||
inherit_from: ".rubocop_todo.yml" | ||
Metrics/LineLength: | ||
Description: People have wide screens, use them. | ||
Max: 200 | ||
GetText: | ||
Enabled: false | ||
GetText/DecorateString: | ||
Description: We don't want to decorate test output. | ||
Exclude: | ||
- spec/**/* | ||
Enabled: false | ||
RSpec/BeforeAfterAll: | ||
Description: Beware of using after(:all) as it may cause state to leak between tests. | ||
A necessary evil in acceptance testing. | ||
Exclude: | ||
- spec/acceptance/**/*.rb | ||
RSpec/HookArgument: | ||
Description: Prefer explicit :each argument, matching existing module's style | ||
EnforcedStyle: each | ||
Style/BlockDelimiters: | ||
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to | ||
be consistent then. | ||
EnforcedStyle: braces_for_chaining | ||
Style/ClassAndModuleChildren: | ||
Description: Compact style reduces the required amount of indentation. | ||
EnforcedStyle: compact | ||
Style/EmptyElse: | ||
Description: Enforce against empty else clauses, but allow `nil` for clarity. | ||
EnforcedStyle: empty | ||
Style/FormatString: | ||
Description: Following the main puppet project's style, prefer the % format format. | ||
EnforcedStyle: percent | ||
Style/FormatStringToken: | ||
Description: Following the main puppet project's style, prefer the simpler template | ||
tokens over annotated ones. | ||
EnforcedStyle: template | ||
Style/Lambda: | ||
Description: Prefer the keyword for easier discoverability. | ||
EnforcedStyle: literal | ||
Style/RegexpLiteral: | ||
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168 | ||
EnforcedStyle: percent_r | ||
Style/TernaryParentheses: | ||
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses | ||
on complex expressions for better readability, but seriously consider breaking | ||
it up. | ||
EnforcedStyle: require_parentheses_when_complex | ||
Style/TrailingCommaInArguments: | ||
Description: Prefer always trailing comma on multiline argument lists. This makes | ||
diffs, and re-ordering nicer. | ||
EnforcedStyleForMultiline: comma | ||
Style/TrailingCommaInLiteral: | ||
Description: Prefer always trailing comma on multiline literals. This makes diffs, | ||
and re-ordering nicer. | ||
EnforcedStyleForMultiline: comma | ||
Style/SymbolArray: | ||
Description: Using percent style obscures symbolic intent of array's contents. | ||
EnforcedStyle: brackets | ||
RSpec/MessageSpies: | ||
EnforcedStyle: receive | ||
Style/Documentation: | ||
Exclude: | ||
- lib/puppet/parser/functions/**/* | ||
- spec/**/* | ||
Style/WordArray: | ||
EnforcedStyle: brackets | ||
Style/CollectionMethods: | ||
Enabled: true | ||
Style/MethodCalledOnDoEndBlock: | ||
Enabled: true | ||
Style/StringMethods: | ||
Enabled: true | ||
GetText/DecorateFunctionMessage: | ||
Enabled: false | ||
GetText/DecorateStringFormattingUsingInterpolation: | ||
Enabled: false | ||
GetText/DecorateStringFormattingUsingPercent: | ||
Enabled: false | ||
Layout/EndOfLine: | ||
Enabled: false | ||
Layout/IndentHeredoc: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Metrics/BlockLength: | ||
Enabled: false | ||
Metrics/ClassLength: | ||
Enabled: false | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Metrics/ModuleLength: | ||
Enabled: false | ||
Metrics/ParameterLists: | ||
Enabled: false | ||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
RSpec/DescribeClass: | ||
Enabled: false | ||
RSpec/ExampleLength: | ||
Enabled: false | ||
RSpec/MessageExpectation: | ||
Enabled: false | ||
RSpec/MultipleExpectations: | ||
Enabled: false | ||
RSpec/NestedGroups: | ||
Enabled: false | ||
Style/AsciiComments: | ||
Enabled: false | ||
Style/IfUnlessModifier: | ||
Enabled: false | ||
Style/SymbolProc: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2019-11-01 16:00:27 +0000 using RuboCop version 0.49.1. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowSafeAssignment. | ||
Lint/AssignmentInCondition: | ||
Exclude: | ||
- 'lib/puppet/type/filesystem.rb' | ||
|
||
# Offense count: 43 | ||
Lint/UselessAssignment: | ||
Exclude: | ||
- 'lib/puppet/provider/filesystem/aix.rb' | ||
- 'lib/puppet/provider/logical_volume/lvm.rb' | ||
- 'spec/spec_helper_acceptance_local.rb' | ||
- 'spec/unit/type/filesystem_spec.rb' | ||
- 'spec/unit/type/logical_volume_spec.rb' | ||
- 'spec/unit/type/physical_volume.rb' | ||
- 'tests/beaker/tests/aix/create_lv_with_param_max_range.rb' | ||
- 'tests/beaker/tests/aix/create_lv_with_param_min_range.rb' | ||
- 'tests/beaker/tests/aix/create_lv_with_param_type.rb' | ||
|
||
# Offense count: 6 | ||
Lint/Void: | ||
Exclude: | ||
- 'spec/unit/facter/lvm_support_spec.rb' | ||
|
||
# Offense count: 252 | ||
# Configuration parameters: AssignmentOnly. | ||
RSpec/InstanceVariable: | ||
Exclude: | ||
- 'spec/unit/puppet/provider/filesystem/lvm_spec.rb' | ||
- 'spec/unit/puppet/provider/logical_volume/lvm_spec.rb' | ||
- 'spec/unit/puppet/provider/physical_volume/lvm_spec.rb' | ||
- 'spec/unit/puppet/provider/volume_group/lvm_spec.rb' | ||
- 'spec/unit/puppet/type/filesystem_spec.rb' | ||
- 'spec/unit/puppet/type/logical_volume_spec.rb' | ||
- 'spec/unit/puppet/type/physical_volume_spec.rb' | ||
- 'spec/unit/puppet/type/volume_group_spec.rb' | ||
|
||
# Offense count: 1 | ||
RSpec/MultipleDescribes: | ||
Exclude: | ||
- 'spec/unit/facter/lvm_support_spec.rb' | ||
|
||
# Offense count: 2 | ||
RSpec/ScatteredSetup: | ||
Exclude: | ||
- 'spec/unit/puppet/provider/physical_volume/lvm_spec.rb' | ||
|
||
# Offense count: 3 | ||
Style/AccessorMethodName: | ||
Exclude: | ||
- 'lib/puppet/provider/logical_volume/lvm.rb' | ||
- 'lib/puppet/provider/physical_volume/lvm.rb' | ||
- 'lib/puppet/provider/volume_group/lvm.rb' | ||
|
||
# Offense count: 1 | ||
Style/ClassAndModuleCamelCase: | ||
Exclude: | ||
- 'lib/puppet_x/lvm/output.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: nested, compact | ||
Style/ClassAndModuleChildren: | ||
Exclude: | ||
- 'lib/puppet_x/lvm/output.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. | ||
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS | ||
Style/FileName: | ||
Exclude: | ||
- 'tests/beaker/tests/create_filesystem_non-existing-format.rb' | ||
|
||
# Offense count: 12 | ||
# Configuration parameters: MinBodyLength. | ||
Style/GuardClause: | ||
Exclude: | ||
- 'lib/puppet/provider/filesystem/aix.rb' | ||
- 'lib/puppet/provider/filesystem/lvm.rb' | ||
- 'lib/puppet/provider/logical_volume/lvm.rb' | ||
- 'lib/puppet/provider/volume_group/aix.rb' | ||
- 'lib/puppet/provider/volume_group/lvm.rb' | ||
|
||
# Offense count: 1 | ||
Style/MultilineTernaryOperator: | ||
Exclude: | ||
- 'lib/puppet/provider/filesystem/lvm.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. | ||
# NamePrefix: is_, has_, have_ | ||
# NamePrefixBlacklist: is_, has_, have_ | ||
# NameWhitelist: is_a? | ||
Style/PredicateName: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'tests/beaker/lib/lvm_helper.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment. | ||
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex | ||
Style/TernaryParentheses: | ||
Exclude: | ||
- 'lib/puppet/provider/filesystem/lvm.rb' |
Oops, something went wrong.