beaker-docker 1.4.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +10 -0
- data/.github/workflows/test.yml +30 -60
- data/.gitignore +1 -0
- data/.rubocop.yml +5 -25
- data/.rubocop_todo.yml +9 -706
- data/.simplecov +2 -0
- data/CHANGELOG.md +51 -1
- data/Gemfile +3 -5
- data/Rakefile +37 -137
- data/acceptance/tests/00_default_spec.rb +5 -4
- data/beaker-docker.gemspec +21 -20
- data/bin/beaker-docker +8 -10
- data/lib/beaker/hypervisor/docker.rb +190 -217
- data/lib/beaker-docker/version.rb +3 -1
- data/lib/beaker-docker.rb +1 -0
- data/spec/beaker/hypervisor/docker_spec.rb +371 -389
- data/spec/spec_helper.rb +6 -5
- metadata +34 -38
- data/Gemfile.local +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec5e8da1c0bde0ac2d4fb47e3aa6e895dfa64c847601eb8ee2a81b6e6ddbcb99
|
4
|
+
data.tar.gz: c9a290762c10c8353be0ac34c5d2d3a71560f2d872d04f6c524281518cf54c4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74aab6d73118cfea7aa6a29c7f1159c900dd392fe5de144f5440d6f0e9b4630f7c87010903b0342e2ed3edd7626efcdcd1f96d5aa6226a5db27a92be54e89b60
|
7
|
+
data.tar.gz: 99a7fc569eea379541e5177432daa3e6c568773de88d6ba56047a69231fab107e76397167a024eae6192f296d9c09b235820df9d4c55f25f47050cbad9a25d5c
|
data/.editorconfig
ADDED
data/.github/workflows/test.yml
CHANGED
@@ -1,43 +1,38 @@
|
|
1
1
|
name: Test
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
5
|
-
|
4
|
+
pull_request: {}
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
6
8
|
|
7
9
|
env:
|
8
10
|
BUNDLE_WITHOUT: release
|
9
11
|
|
10
12
|
jobs:
|
11
|
-
|
13
|
+
rubocop:
|
12
14
|
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
15
|
steps:
|
20
16
|
- uses: actions/checkout@v3
|
21
|
-
- name: Install Ruby
|
17
|
+
- name: Install Ruby 3.2
|
22
18
|
uses: ruby/setup-ruby@v1
|
23
19
|
with:
|
24
|
-
ruby-version:
|
20
|
+
ruby-version: "3.2"
|
25
21
|
bundler-cache: true
|
26
|
-
- name:
|
27
|
-
run: bundle exec rake
|
22
|
+
- name: Run Rubocop
|
23
|
+
run: bundle exec rake rubocop
|
28
24
|
|
29
25
|
rspec:
|
30
26
|
runs-on: ubuntu-latest
|
31
27
|
strategy:
|
32
|
-
fail-fast:
|
28
|
+
fail-fast: false
|
33
29
|
matrix:
|
34
30
|
include:
|
35
|
-
- ruby: "2.4"
|
36
|
-
- ruby: "2.5"
|
37
|
-
- ruby: "2.6"
|
38
31
|
- ruby: "2.7"
|
39
32
|
- ruby: "3.0"
|
40
33
|
coverage: "yes"
|
34
|
+
- ruby: "3.1"
|
35
|
+
- ruby: "3.2"
|
41
36
|
env:
|
42
37
|
COVERAGE: ${{ matrix.coverage }}
|
43
38
|
name: RSpec - Ruby ${{ matrix.ruby }}
|
@@ -55,33 +50,14 @@ jobs:
|
|
55
50
|
|
56
51
|
docker:
|
57
52
|
runs-on: ubuntu-latest
|
58
|
-
|
59
|
-
fail-fast: true
|
60
|
-
matrix:
|
61
|
-
ruby:
|
62
|
-
- "2.6"
|
63
|
-
name: Docker - Ruby ${{ matrix.ruby }}
|
53
|
+
name: Docker
|
64
54
|
steps:
|
65
55
|
- uses: actions/checkout@v3
|
66
|
-
- name: Install Ruby
|
56
|
+
- name: Install Ruby 3.2
|
67
57
|
uses: ruby/setup-ruby@v1
|
68
58
|
with:
|
69
|
-
ruby-version:
|
59
|
+
ruby-version: "3.2"
|
70
60
|
bundler-cache: true
|
71
|
-
- name: install bundler
|
72
|
-
run: |
|
73
|
-
gem install bundler -v '~> 1.17.3'
|
74
|
-
bundle update
|
75
|
-
- name: install container runtime
|
76
|
-
run: |
|
77
|
-
sudo apt-get remove -y docker docker-engine docker.io containerd runc ||:
|
78
|
-
sudo apt-get update -y
|
79
|
-
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
80
|
-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
81
|
-
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
82
|
-
sudo apt-get update -y
|
83
|
-
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
84
|
-
sudo systemctl start docker
|
85
61
|
- name: Run acceptance tests
|
86
62
|
run: bundle exec rake test:acceptance
|
87
63
|
|
@@ -105,31 +81,25 @@ jobs:
|
|
105
81
|
|
106
82
|
podman:
|
107
83
|
runs-on: ubuntu-latest
|
108
|
-
|
109
|
-
fail-fast: true
|
110
|
-
matrix:
|
111
|
-
ruby:
|
112
|
-
- "2.6"
|
113
|
-
name: Podman - Ruby ${{ matrix.ruby }}
|
84
|
+
name: Podman
|
114
85
|
steps:
|
115
86
|
- uses: actions/checkout@v3
|
116
|
-
- name: Install Ruby
|
87
|
+
- name: Install Ruby 3.2
|
117
88
|
uses: ruby/setup-ruby@v1
|
118
89
|
with:
|
119
|
-
ruby-version:
|
90
|
+
ruby-version: "3.2"
|
120
91
|
bundler-cache: true
|
121
|
-
- name: install bundler
|
122
|
-
run: |
|
123
|
-
gem install bundler -v '~> 1.17.3'
|
124
|
-
bundle update
|
125
|
-
# We need the latest version of podman for this to work
|
126
|
-
- name: install container runtime
|
127
|
-
run: |
|
128
|
-
. /etc/os-release
|
129
|
-
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
|
130
|
-
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/podman.list > /dev/null
|
131
|
-
sudo apt-get update
|
132
|
-
sudo apt-get -y install podman
|
133
|
-
sudo systemctl start podman
|
134
92
|
- name: Run acceptance tests
|
135
93
|
run: bundle exec rake test:acceptance
|
94
|
+
|
95
|
+
tests:
|
96
|
+
needs:
|
97
|
+
- docker
|
98
|
+
- beaker_in_container
|
99
|
+
- podman
|
100
|
+
- rubocop
|
101
|
+
- rspec
|
102
|
+
runs-on: ubuntu-latest
|
103
|
+
name: Test suite
|
104
|
+
steps:
|
105
|
+
- run: echo Test suite completed
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,30 +1,10 @@
|
|
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
1
|
---
|
12
2
|
inherit_from: .rubocop_todo.yml
|
13
3
|
|
14
|
-
|
15
|
-
|
16
|
-
- rubocop-rake
|
17
|
-
- rubocop-rspec
|
4
|
+
inherit_gem:
|
5
|
+
beaker: rubocop.yml
|
18
6
|
|
19
|
-
|
20
|
-
|
21
|
-
DisplayCopNames: true
|
22
|
-
ExtraDetails: true
|
23
|
-
DisplayStyleGuide: true
|
24
|
-
TargetRubyVersion: '2.4'
|
7
|
+
Naming/FileName:
|
8
|
+
Description: Some files violates the snake_case convention
|
25
9
|
Exclude:
|
26
|
-
|
27
|
-
|
28
|
-
# Disable temporarily
|
29
|
-
Style/HashSyntax:
|
30
|
-
Enabled: false
|
10
|
+
- 'lib/beaker-docker.rb'
|