beaker-docker 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +9 -0
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/test.yml +39 -3
- data/.gitignore +1 -0
- data/.rubocop.yml +30 -0
- data/.rubocop_todo.yml +742 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile +3 -3
- data/Rakefile +12 -9
- data/beaker-docker.gemspec +4 -0
- data/lib/beaker/hypervisor/docker.rb +87 -101
- data/lib/beaker-docker/version.rb +1 -1
- data/spec/beaker/hypervisor/docker_spec.rb +44 -5
- metadata +60 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d52bba21bf02a7a3f1377a20e05315c36eb616bd37b5a1094c51718a2e0a770
|
4
|
+
data.tar.gz: c21653ddc0b556a1e7be7adaf661c9943fd14a135248bd8ad5f13cc4d89e1d27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58d7e309ae26e61d7091d203ee393bd822557b765ba20bd2a5e1ab2905dacbb205bb11de64637c399fd057ae4b3950b58ba18f4e93f7c42f2a59183cd61936a7
|
7
|
+
data.tar.gz: 7f172a3c5d75e09ca35128e466fa96e59b820cd75317c828330375ea712ebbcdf0eb2f9fc8ee86ef51e293b5b2370bcd86a12b84eb61542e8f6f1d042711bdbf
|
data/.github/dependabot.yml
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
version: 2
|
2
2
|
updates:
|
3
|
+
# raise PRs for gem updates
|
3
4
|
- package-ecosystem: bundler
|
4
5
|
directory: "/"
|
5
6
|
schedule:
|
6
7
|
interval: daily
|
7
8
|
time: "13:00"
|
8
9
|
open-pull-requests-limit: 10
|
10
|
+
|
11
|
+
# Maintain dependencies for GitHub Actions
|
12
|
+
- package-ecosystem: github-actions
|
13
|
+
directory: "/"
|
14
|
+
schedule:
|
15
|
+
interval: daily
|
16
|
+
time: "13:00"
|
17
|
+
open-pull-requests-limit: 10
|
data/.github/workflows/test.yml
CHANGED
@@ -8,6 +8,24 @@ env:
|
|
8
8
|
BUNDLE_WITHOUT: release
|
9
9
|
|
10
10
|
jobs:
|
11
|
+
lint:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: true
|
15
|
+
matrix:
|
16
|
+
include:
|
17
|
+
- ruby: "2.7"
|
18
|
+
name: Lint - Ruby ${{ matrix.ruby }}
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v3
|
21
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
bundler-cache: true
|
26
|
+
- name: lint
|
27
|
+
run: bundle exec rake lint
|
28
|
+
|
11
29
|
rspec:
|
12
30
|
runs-on: ubuntu-latest
|
13
31
|
strategy:
|
@@ -24,7 +42,7 @@ jobs:
|
|
24
42
|
COVERAGE: ${{ matrix.coverage }}
|
25
43
|
name: RSpec - Ruby ${{ matrix.ruby }}
|
26
44
|
steps:
|
27
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v3
|
28
46
|
- name: Install Ruby ${{ matrix.ruby }}
|
29
47
|
uses: ruby/setup-ruby@v1
|
30
48
|
with:
|
@@ -44,7 +62,7 @@ jobs:
|
|
44
62
|
- "2.6"
|
45
63
|
name: Docker - Ruby ${{ matrix.ruby }}
|
46
64
|
steps:
|
47
|
-
- uses: actions/checkout@
|
65
|
+
- uses: actions/checkout@v3
|
48
66
|
- name: Install Ruby ${{ matrix.ruby }}
|
49
67
|
uses: ruby/setup-ruby@v1
|
50
68
|
with:
|
@@ -67,6 +85,24 @@ jobs:
|
|
67
85
|
- name: Run acceptance tests
|
68
86
|
run: bundle exec rake test:acceptance
|
69
87
|
|
88
|
+
beaker_in_container:
|
89
|
+
runs-on: ubuntu-latest
|
90
|
+
name: Docker - Beaker in container connection test
|
91
|
+
steps:
|
92
|
+
- uses: actions/checkout@v3
|
93
|
+
# use this and not container key from gha to not have a docker network from github
|
94
|
+
- name: Run Beaker in docker container
|
95
|
+
uses: addnab/docker-run-action@v3
|
96
|
+
with:
|
97
|
+
image: puppet/puppet-dev-tools:2023-02-24-1bca42e
|
98
|
+
options: -v ${{ github.workspace }}:/work
|
99
|
+
run: |
|
100
|
+
cd /work
|
101
|
+
ls -la
|
102
|
+
bundle install
|
103
|
+
export DOCKER_IN_DOCKER=true
|
104
|
+
bundle exec rake test:acceptance
|
105
|
+
|
70
106
|
podman:
|
71
107
|
runs-on: ubuntu-latest
|
72
108
|
strategy:
|
@@ -76,7 +112,7 @@ jobs:
|
|
76
112
|
- "2.6"
|
77
113
|
name: Podman - Ruby ${{ matrix.ruby }}
|
78
114
|
steps:
|
79
|
-
- uses: actions/checkout@
|
115
|
+
- uses: actions/checkout@v3
|
80
116
|
- name: Install Ruby ${{ matrix.ruby }}
|
81
117
|
uses: ruby/setup-ruby@v1
|
82
118
|
with:
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
|
+
# configuration file. It makes it possible to enable/disable
|
3
|
+
# certain cops (checks) and to alter their behavior if they accept
|
4
|
+
# any parameters. The file can be placed either in your home
|
5
|
+
# directory or in some project directory.
|
6
|
+
#
|
7
|
+
# RuboCop will start looking for the configuration file in the directory
|
8
|
+
# where the inspected file is and continue its way up to the root directory.
|
9
|
+
#
|
10
|
+
# See https://docs.rubocop.org/rubocop/configuration
|
11
|
+
---
|
12
|
+
inherit_from: .rubocop_todo.yml
|
13
|
+
|
14
|
+
require:
|
15
|
+
- rubocop-performance
|
16
|
+
- rubocop-rake
|
17
|
+
- rubocop-rspec
|
18
|
+
|
19
|
+
AllCops:
|
20
|
+
NewCops: enable
|
21
|
+
DisplayCopNames: true
|
22
|
+
ExtraDetails: true
|
23
|
+
DisplayStyleGuide: true
|
24
|
+
TargetRubyVersion: '2.4'
|
25
|
+
Exclude:
|
26
|
+
- vendor/**/*
|
27
|
+
|
28
|
+
# Disable temporarily
|
29
|
+
Style/HashSyntax:
|
30
|
+
Enabled: false
|