aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2021-06-28 12:06:27 +0200
committerGitHub <noreply@github.com>2021-06-28 12:06:27 +0200
commitc42fe0887ec5b4987d9873a104f60d00a9048806 (patch)
treeaa62670218d4ba13c7e8f9ca1d0e2829a1e108b8
parent7ae636c87145c4fc8a23c1face61720dd394403b (diff)
parentb501e70a43768abc0df12573186f54b65fffca30 (diff)
downloadpuppet-ferm-c42fe0887ec5b4987d9873a104f60d00a9048806.tar.gz
puppet-ferm-c42fe0887ec5b4987d9873a104f60d00a9048806.tar.bz2
Merge pull request #128 from voxpupuli/modulesync
modulesync 4.1.0
-rw-r--r--.github/CONTRIBUTING.md34
-rw-r--r--.github/workflows/ci.yml16
-rw-r--r--.github/workflows/release.yml1
-rw-r--r--.msync.yml2
-rw-r--r--Dockerfile2
-rw-r--r--Gemfile10
-rw-r--r--spec/type_aliases/actions_spec.rb2
-rw-r--r--spec/type_aliases/policies_spec.rb2
-rw-r--r--spec/type_aliases/port_spec.rb2
-rw-r--r--spec/type_aliases/protocols_spec.rb2
-rw-r--r--spec/type_aliases/tables_spec.rb2
11 files changed, 23 insertions, 52 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index f1f88cc..887d571 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -232,33 +232,7 @@ simple tests against it after applying the module. You can run this
with:
```sh
-bundle exec rake beaker
-```
-
-This will run the tests on the module's default nodeset. You can override the
-nodeset used, e.g.,
-
-```sh
-BEAKER_set=centos-7-x64 bundle exec rake beaker
-```
-
-There are default rake tasks for the various acceptance test modules, e.g.,
-
-```sh
-bundle exec rake beaker:centos-7-x64
-bundle exec rake beaker:ssh:centos-7-x64
-```
-
-If you don't want to have to recreate the virtual machine every time you can
-use `BEAKER_destroy=no` and `BEAKER_provision=no`. On the first run you will at
-least need `BEAKER_provision` set to yes (the default). The Vagrantfile for the
-created virtual machines will be in `.vagrant/beaker_vagrant_files`.
-
-Beaker also supports docker containers. We also use that in our automated CI
-pipeline at [travis-ci](http://travis-ci.org). To use that instead of Vagrant:
-
-```sh
-PUPPET_INSTALL_TYPE=agent BEAKER_IS_PE=no BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian10-64{hypervisor=docker} BEAKER_destroy=yes bundle exec rake beaker
+BEAKER_setfile=debian10-x64 bundle exec rake beaker
```
You can replace the string `debian10` with any common operating system.
@@ -272,11 +246,7 @@ The following strings are known to work:
* centos7
* centos8
-The easiest way to debug in a docker container is to open a shell:
-
-```sh
-docker exec -it -u root ${container_id_or_name} bash
-```
+For more information and tips & tricks, see [voxpupuli-acceptance's documentation](https://github.com/voxpupuli/voxpupuli-acceptance#running-tests).
The source of this file is in our [modulesync_config](https://github.com/voxpupuli/modulesync_config/blob/master/moduleroot/.github/CONTRIBUTING.md.erb)
repository.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b4f47e8..7cda075 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,12 +6,13 @@ jobs:
setup_matrix:
name: 'Setup Test Matrix'
runs-on: ubuntu-latest
+ timeout-minutes: 40
outputs:
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }}
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }}
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
env:
- BUNDLE_WITHOUT: development:test:release
+ BUNDLE_WITHOUT: development:release
steps:
- uses: actions/checkout@v2
- name: Setup ruby
@@ -19,8 +20,10 @@ jobs:
with:
ruby-version: '2.7'
bundler-cache: true
- - name: Run rake validate
- run: bundle exec rake validate
+ - name: Run static validations
+ run: bundle exec rake validate lint check
+ - name: Run rake rubocop
+ run: bundle exec rake rubocop
- name: Setup Test Matrix
id: get-outputs
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround false
@@ -28,6 +31,7 @@ jobs:
unit:
needs: setup_matrix
runs-on: ubuntu-latest
+ timeout-minutes: 40
strategy:
fail-fast: false
matrix:
@@ -44,7 +48,7 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
- run: bundle exec rake
+ run: bundle exec rake parallel_spec
acceptance:
needs: setup_matrix
@@ -58,10 +62,6 @@ jobs:
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
steps:
- - name: Enable IPv6 on docker
- run: |
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 68b8528..1ef1f9e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,6 +12,7 @@ jobs:
deploy:
name: 'deploy to forge'
runs-on: ubuntu-latest
+ if: github.repository_owner == 'voxpupuli'
steps:
- name: Checkout repository
uses: actions/checkout@v2
diff --git a/.msync.yml b/.msync.yml
index a0770a8..57ff503 100644
--- a/.msync.yml
+++ b/.msync.yml
@@ -1,2 +1,2 @@
---
-modulesync_config_version: '4.0.0'
+modulesync_config_version: '4.1.0'
diff --git a/Dockerfile b/Dockerfile
index 6fd6342..a51c641 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:2.5.3
+FROM ruby:2.7
WORKDIR /opt/puppet
diff --git a/Gemfile b/Gemfile
index 53c1491..697f062 100644
--- a/Gemfile
+++ b/Gemfile
@@ -18,17 +18,17 @@ group :system_tests do
end
group :release do
- gem 'github_changelog_generator', :require => false, :git => 'https://github.com/voxpupuli/github-changelog-generator', :branch => 'voxpupuli_essential_fixes'
- gem 'puppet-blacksmith', :require => false
- gem 'voxpupuli-release', :require => false
- gem 'puppet-strings', '>= 2.2', :require => false
+ gem 'github_changelog_generator', '>= 1.16.1', :require => false
+ gem 'puppet-blacksmith', :require => false
+ gem 'voxpupuli-release', :require => false
+ gem 'puppet-strings', '>= 2.2', :require => false
end
gem 'puppetlabs_spec_helper', '~> 2.0', :require => false
gem 'rake', :require => false
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]
-puppetversion = ENV['PUPPET_VERSION'] || '~> 6.0'
+puppetversion = ENV['PUPPET_VERSION'] || '>= 6.0'
gem 'puppet', puppetversion, :require => false, :groups => [:test]
# vim: syntax=ruby
diff --git a/spec/type_aliases/actions_spec.rb b/spec/type_aliases/actions_spec.rb
index 9c42e12..5f6efb0 100644
--- a/spec/type_aliases/actions_spec.rb
+++ b/spec/type_aliases/actions_spec.rb
@@ -1,4 +1,4 @@
-# rubocop:disable Style/WordArray, Style/TrailingCommaInLiteral
+# rubocop:disable Style/WordArray
require 'spec_helper'
describe 'Ferm::Actions' do
diff --git a/spec/type_aliases/policies_spec.rb b/spec/type_aliases/policies_spec.rb
index bc45423..6cb6a2f 100644
--- a/spec/type_aliases/policies_spec.rb
+++ b/spec/type_aliases/policies_spec.rb
@@ -1,4 +1,4 @@
-# rubocop:disable Style/WordArray, Style/TrailingCommaInLiteral
+# rubocop:disable Style/WordArray
require 'spec_helper'
describe 'Ferm::Policies' do
diff --git a/spec/type_aliases/port_spec.rb b/spec/type_aliases/port_spec.rb
index e2b0d43..2e6c1c8 100644
--- a/spec/type_aliases/port_spec.rb
+++ b/spec/type_aliases/port_spec.rb
@@ -1,4 +1,4 @@
-# rubocop:disable Style/WordArray, Style/TrailingCommaInLiteral
+# rubocop:disable Style/WordArray
require 'spec_helper'
describe 'Ferm::Port' do
diff --git a/spec/type_aliases/protocols_spec.rb b/spec/type_aliases/protocols_spec.rb
index b13b7b2..cab521f 100644
--- a/spec/type_aliases/protocols_spec.rb
+++ b/spec/type_aliases/protocols_spec.rb
@@ -1,4 +1,4 @@
-# rubocop:disable Style/WordArray, Style/TrailingCommaInLiteral
+# rubocop:disable Style/WordArray
require 'spec_helper'
describe 'Ferm::Protocols' do
diff --git a/spec/type_aliases/tables_spec.rb b/spec/type_aliases/tables_spec.rb
index eb02877..29274c3 100644
--- a/spec/type_aliases/tables_spec.rb
+++ b/spec/type_aliases/tables_spec.rb
@@ -1,4 +1,4 @@
-# rubocop:disable Style/WordArray, Style/TrailingCommaInLiteral
+# rubocop:disable Style/WordArray
require 'spec_helper'
describe 'Ferm::Tables' do