Showing with 351 additions and 280 deletions.
  1. +3 −1 .fixtures.yml
  2. +46 −0 .github/workflows/release.yml
  3. +45 −0 .github/workflows/weekly.yml
  4. +4 −0 .rubocop.yml
  5. +28 −81 .sync.yml
  6. +114 −55 .travis.yml
  7. +1 −1 .vscode/extensions.json
  8. +12 −0 CHANGELOG.md
  9. +1 −1 CONTRIBUTING.md
  10. +4 −4 Gemfile
  11. +0 −6 MAINTAINERS.md
  12. +3 −3 README.md
  13. +8 −7 Rakefile
  14. +32 −5 appveyor.yml
  15. +0 −25 distelli-manifest.yml
  16. +4 −4 metadata.json
  17. +12 −6 provision.yaml
  18. +4 −4 spec/acceptance/init_spec.rb
  19. +3 −0 spec/spec_helper.rb
  20. +1 −77 spec/spec_helper_acceptance.rb
  21. +26 −0 spec/spec_helper_acceptance_local.rb
4 changes: 3 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ fixtures:
repositories:
facts: 'https://github.com/puppetlabs/puppetlabs-facts.git'
puppet_agent: 'https://github.com/puppetlabs/puppetlabs-puppet_agent.git'
provision: 'https://github.com/puppetlabs/provision.git'
provision: 'https://github.com/puppetlabs/provision.git'
symlinks:
"puppet_conf": "#{source_dir}"
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "release"

on:
push:
branches:
- 'release'

jobs:
LitmusAcceptance:
env:
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
HONEYCOMB_DATASET: litmus tests
runs-on: self-hosted
strategy:
matrix:
ruby_version: [2.5.x]
puppet_gem_version: [~> 6.0]
platform: [release_checks]
agent_family: ['puppet5', 'puppet6']

steps:
- uses: actions/checkout@v1
- name: Litmus Parallel
uses: puppetlabs/action-litmus_parallel@main
with:
platform: ${{ matrix.platform }}
agent_family: ${{ matrix.agent_family }}
Spec:
runs-on: self-hosted
strategy:
matrix:
check: [parallel_spec, 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop']
ruby_version: [2.5.x]
puppet_gem_version: [~> 5.0, ~> 6.0]
exclude:
- puppet_gem_version: ~> 5.0
check: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
- ruby_version: 2.5.x
puppet_gem_version: ~> 5.0
steps:
- uses: actions/checkout@v1
- name: Spec Tests
uses: puppetlabs/action-litmus_spec@main
with:
puppet_gem_version: ${{ matrix.puppet_gem_version }}
check: ${{ matrix.check }}
45 changes: 45 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "weekly"

on:
schedule:
- cron: '0 7 * * 1'

jobs:
LitmusAcceptance:
env:
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
HONEYCOMB_DATASET: litmus tests
runs-on: self-hosted
strategy:
matrix:
ruby_version: [2.5.x]
puppet_gem_version: [~> 6.0]
platform: [release_checks]
agent_family: ['puppet5', 'puppet6']

steps:
- uses: actions/checkout@v1
- name: Litmus Parallel
uses: puppetlabs/action-litmus_parallel@main
with:
platform: ${{ matrix.platform }}
agent_family: ${{ matrix.agent_family }}
Spec:
runs-on: self-hosted
strategy:
matrix:
check: [parallel_spec, 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop']
ruby_version: [2.5.x]
puppet_gem_version: [~> 5.0, ~> 6.0]
exclude:
- puppet_gem_version: ~> 5.0
check: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
- ruby_version: 2.5.x
puppet_gem_version: ~> 5.0
steps:
- uses: actions/checkout@v1
- name: Spec Tests
uses: puppetlabs/action-litmus_spec@main
with:
puppet_gem_version: ${{ matrix.puppet_gem_version }}
check: ${{ matrix.check }}
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Style/BlockDelimiters:
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
be consistent then.
EnforcedStyle: braces_for_chaining
Style/BracesAroundHashParameters:
Description: Braces are required by Ruby 2.7. Cop removed from RuboCop v0.80.0.
See https://github.com/rubocop-hq/rubocop/pull/7643
Enabled: true
Style/ClassAndModuleChildren:
Description: Compact style reduces the required amount of indentation.
EnforcedStyle: compact
Expand Down
109 changes: 28 additions & 81 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,98 +2,45 @@
".gitlab-ci.yml":
delete: true
".travis.yml":
global_env:
- HONEYCOMB_WRITEKEY="7f3c63a70eecc61d635917de46bea4e6",HONEYCOMB_DATASET="litmus tests"
deploy_to_forge:
enabled: false
branches:
- release
user: puppet
secure: ''
includes:
- bundler_args:
dist: trusty
env: PLATFORMS=debian_puppet5
rvm: 2.5.3
before_script:
- bundle exec rake 'litmus:provision_list[travis_deb]'
- bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'
- bundle exec rake 'litmus:install_agent[puppet5]'
- bundle exec rake litmus:install_module
script:
- bundle exec rake litmus:acceptance:parallel
services: docker
sudo: required
stage: acceptance
- bundler_args:
dist: trusty
env: PLATFORMS=debian_puppet6
rvm: 2.5.3
before_script:
- bundle exec rake 'litmus:provision_list[travis_deb]'
- bundle exec bolt command run 'apt-get install wget -y' --inventoryfile inventory.yaml --nodes='localhost*'
- bundle exec rake 'litmus:install_agent[puppet6]'
- bundle exec rake litmus:install_module
script:
- bundle exec rake litmus:acceptance:parallel
services: docker
sudo: required
stage: acceptance
- bundler_args:
dist: trusty
env: PLATFORMS=el6_puppet5
rvm: 2.5.3
before_script:
- bundle exec rake 'litmus:provision_list[travis_el6]'
- bundle exec rake 'litmus:install_agent[puppet5]'
- bundle exec rake litmus:install_module
script:
- bundle exec rake litmus:acceptance:parallel
services: docker
sudo: required
stage: acceptance
- bundler_args:
dist: trusty
env: PLATFORMS=el6_puppet6
rvm: 2.5.3
before_script:
- bundle exec rake 'litmus:provision_list[travis_el6]'
- bundle exec rake 'litmus:install_agent[puppet6]'
- bundle exec rake litmus:install_module
script:
- bundle exec rake litmus:acceptance:parallel
services: docker
sudo: required
stage: acceptance
- bundler_args:
dist: trusty
env: PLATFORMS=el7_puppet5
rvm: 2.5.3
before_script:
- bundle exec rake 'litmus:provision_list[travis_el7]'
- bundle exec rake 'litmus:install_agent[puppet5]'
- bundle exec rake litmus:install_module
script:
- bundle exec rake litmus:acceptance:parallel
services: docker
sudo: required
stage: acceptance
- bundler_args:
dist: trusty
env: PLATFORMS=el7_puppet6
rvm: 2.5.3
before_script:
- bundle exec rake 'litmus:provision_list[travis_el7]'
- bundle exec rake 'litmus:install_agent[puppet6]'
- bundle exec rake litmus:install_module
script:
- bundle exec rake litmus:acceptance:parallel
services: docker
sudo: required
stage: acceptance
use_litmus: true
litmus:
provision_list:
- travis_deb
- travis_ub
- travis_el6
- travis_el7
- travis_el8
- ---travis_el
simplecov: true
notifications:
slack:
secure: >-
mcqiGIDFoMEYXxvjyB//JeQ9P4pF74bJkqAvstX0Po5qZjUpLs45bB05yZJlfE2mU+eJ2JNlcOajfy4b7FeaoIWI8V3kAqqOrWDOt9/6myAebmWtWfzjE6SAHkpWkT09LFDoYKalNAtb/prt8Em8hlc3Id20Hbsab5BYy/5gixArU5rDv4GJcXQalf/cmeY9vJk1N4W1dDNjUKkBPZ28cwph5DQM8tdGPfrag0L0dZJ6E1NJPXS8nL3fUH3T3nqIp+UKLbefKVT28q2DNkYBJ0KY1Cbh9w16/z2XGkGbqNzEfqJPAzy0OVd5wm0R428p8S/3ch5RayiUmLDF9G5j7pSt3Fnp9mrcb4gO2FFWNUBaq/lF4/R3/r7gXo0i99DeHvERYLWb7EaQoDz7M25d9U2RxwkOdb15HOVY8AOzKT7NqqCxzz4drY/I8WftQ0zUALOLYBVJhMFpfpZzeG14ziL5nuJQVz8qAF2KqcuIeqCxZ8j4ggnczHO9WjMi3uL5fAf6LnGl9g+3jKrFF6G4r+lAKJTzh0WXCcM7bkREXhy0lRiSvP5rFWBugtEm+YX7E/p5dbjtwiQ9d9KOJQ8OOk+tUACDZKVbXyizGXvsR8aa25Yl6y0pAewVwmzlCO/VZhLu8o83cP0wOiUVUSbEjyRj3Vni5FxIaj2Sr5slyaQ=
".yardopts":
optional:
- "--output-dir docs/"
appveyor.yml:
environment:
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
HONEYCOMB_DATASET: litmus tests
use_litmus: true
spec_type: spec
matrix_extras:
- RUBY_VERSION: 25-x64
ACCEPTANCE: 'yes'
TARGET_HOST: localhost
- RUBY_VERSION: 25-x64
ACCEPTANCE: 'yes'
TARGET_HOST: localhost
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
simplecov: true
Gemfile:
optional:
Expand Down
Loading