beaker 4.39.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +9 -0
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +26 -13
- data/.rubocop.yml +6 -21
- data/.rubocop_todo.yml +34 -10
- data/CHANGELOG.md +22 -0
- data/Gemfile +12 -7
- data/Rakefile +99 -111
- data/acceptance/config/acceptance-options.rb +1 -1
- data/acceptance/config/base/acceptance-options.rb +2 -2
- data/acceptance/config/hypervisor/acceptance-options.rb +2 -2
- data/acceptance/config/subcommands/acceptance-options.rb +2 -2
- data/acceptance/fixtures/module/Rakefile +1 -1
- data/acceptance/fixtures/module/spec/acceptance/demo_spec.rb +8 -12
- data/acceptance/fixtures/module/spec/classes/init_spec.rb +0 -1
- data/acceptance/fixtures/module/spec/spec_helper_acceptance.rb +3 -5
- data/acceptance/lib/helpers/test_helper.rb +4 -3
- data/acceptance/pre_suite/subcommands/05_install_ruby.rb +2 -3
- data/acceptance/pre_suite/subcommands/08_install_beaker.rb +1 -2
- data/acceptance/tests/base/dsl/helpers/configuration_test.rb +4 -4
- data/acceptance/tests/base/dsl/helpers/hocon_helpers_test.rb +1 -2
- data/acceptance/tests/base/dsl/helpers/host_helpers/add_system32_hosts_entry_test.rb +0 -3
- data/acceptance/tests/base/dsl/helpers/host_helpers/archive_file_from_test.rb +3 -1
- data/acceptance/tests/base/dsl/helpers/host_helpers/backup_the_file_test.rb +9 -9
- data/acceptance/tests/base/dsl/helpers/host_helpers/check_for_package_test.rb +0 -4
- data/acceptance/tests/base/dsl/helpers/host_helpers/create_remote_file_test.rb +19 -26
- data/acceptance/tests/base/dsl/helpers/host_helpers/curl_on_test.rb +2 -2
- data/acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb +0 -1
- data/acceptance/tests/base/dsl/helpers/host_helpers/on_test.rb +18 -13
- data/acceptance/tests/base/dsl/helpers/host_helpers/retry_on_test.rb +3 -3
- data/acceptance/tests/base/dsl/helpers/host_helpers/rsync_to_test.rb +22 -27
- data/acceptance/tests/base/dsl/helpers/host_helpers/run_cron_on_test.rb +12 -16
- data/acceptance/tests/base/dsl/helpers/host_helpers/run_script_on_test.rb +3 -4
- data/acceptance/tests/base/dsl/helpers/host_helpers/run_script_test.rb +3 -3
- data/acceptance/tests/base/dsl/helpers/host_helpers/scp_from_test.rb +4 -4
- data/acceptance/tests/base/dsl/helpers/host_helpers/scp_to_test.rb +3 -4
- data/acceptance/tests/base/dsl/helpers/host_helpers/shell_test.rb +5 -5
- data/acceptance/tests/base/dsl/helpers/host_helpers/upgrade_package_test.rb +3 -5
- data/acceptance/tests/base/dsl/platform_tag_confiner_test.rb +14 -17
- data/acceptance/tests/base/dsl/structure_test.rb +5 -11
- data/acceptance/tests/base/host/file_test.rb +2 -2
- data/acceptance/tests/base/host/group_test.rb +0 -1
- data/acceptance/tests/base/host/host_test.rb +66 -63
- data/acceptance/tests/base/host/packages.rb +1 -2
- data/acceptance/tests/base/host/packages_unix.rb +0 -55
- data/acceptance/tests/base/host/user_test.rb +0 -1
- data/acceptance/tests/base/host_prebuilt_steps/ssh_environment_test.rb +1 -2
- data/acceptance/tests/base/test_suite/export.rb +6 -9
- data/acceptance/tests/install/from_file.rb +2 -4
- data/acceptance/tests/load_path_bootstrap.rb +1 -1
- data/acceptance/tests/subcommands/destroy.rb +19 -21
- data/acceptance/tests/subcommands/exec.rb +0 -1
- data/acceptance/tests/subcommands/init.rb +2 -3
- data/acceptance/tests/subcommands/provision.rb +0 -1
- data/beaker.gemspec +4 -8
- data/docs/concepts/argument_processing_and_precedence.md +1 -10
- data/docs/how_to/debug_beaker_tests.md +12 -12
- data/docs/how_to/hosts/eos.md +2 -12
- data/docs/how_to/install_puppet.md +0 -18
- data/docs/how_to/the_beaker_dsl.md +0 -2
- data/lib/beaker/cli.rb +59 -68
- data/lib/beaker/command.rb +20 -28
- data/lib/beaker/command_factory.rb +3 -2
- data/lib/beaker/dsl/assertions.rb +6 -18
- data/lib/beaker/dsl/helpers/hocon_helpers.rb +3 -7
- data/lib/beaker/dsl/helpers/host_helpers.rb +62 -123
- data/lib/beaker/dsl/helpers/test_helpers.rb +3 -5
- data/lib/beaker/dsl/helpers/web_helpers.rb +19 -27
- data/lib/beaker/dsl/helpers.rb +2 -4
- data/lib/beaker/dsl/outcomes.rb +13 -15
- data/lib/beaker/dsl/patterns.rb +1 -3
- data/lib/beaker/dsl/roles.rb +17 -20
- data/lib/beaker/dsl/structure.rb +53 -65
- data/lib/beaker/dsl/test_tagging.rb +7 -10
- data/lib/beaker/dsl/wrappers.rb +15 -16
- data/lib/beaker/dsl.rb +2 -3
- data/lib/beaker/host/aix/exec.rb +1 -1
- data/lib/beaker/host/aix/file.rb +0 -1
- data/lib/beaker/host/aix/group.rb +1 -1
- data/lib/beaker/host/aix/user.rb +1 -1
- data/lib/beaker/host/aix.rb +3 -4
- data/lib/beaker/host/cisco.rb +27 -39
- data/lib/beaker/host/eos.rb +4 -30
- data/lib/beaker/host/freebsd/exec.rb +1 -1
- data/lib/beaker/host/freebsd/pkg.rb +3 -3
- data/lib/beaker/host/freebsd.rb +9 -12
- data/lib/beaker/host/mac/exec.rb +4 -4
- data/lib/beaker/host/mac/group.rb +7 -7
- data/lib/beaker/host/mac/pkg.rb +3 -106
- data/lib/beaker/host/mac/user.rb +2 -2
- data/lib/beaker/host/mac.rb +8 -9
- data/lib/beaker/host/pswindows/exec.rb +66 -70
- data/lib/beaker/host/pswindows/file.rb +3 -5
- data/lib/beaker/host/pswindows/group.rb +3 -3
- data/lib/beaker/host/pswindows/pkg.rb +12 -12
- data/lib/beaker/host/pswindows/user.rb +3 -3
- data/lib/beaker/host/pswindows.rb +4 -3
- data/lib/beaker/host/unix/exec.rb +80 -82
- data/lib/beaker/host/unix/file.rb +38 -43
- data/lib/beaker/host/unix/group.rb +1 -1
- data/lib/beaker/host/unix/pkg.rb +154 -417
- data/lib/beaker/host/unix/user.rb +2 -2
- data/lib/beaker/host/unix.rb +8 -11
- data/lib/beaker/host/windows/exec.rb +17 -17
- data/lib/beaker/host/windows/file.rb +3 -3
- data/lib/beaker/host/windows/group.rb +3 -3
- data/lib/beaker/host/windows/pkg.rb +3 -54
- data/lib/beaker/host/windows/user.rb +3 -3
- data/lib/beaker/host/windows.rb +12 -12
- data/lib/beaker/host.rb +76 -133
- data/lib/beaker/host_prebuilt_steps.rb +93 -198
- data/lib/beaker/hypervisor/noop.rb +2 -4
- data/lib/beaker/hypervisor.rb +44 -61
- data/lib/beaker/local_connection.rb +2 -4
- data/lib/beaker/logger.rb +68 -76
- data/lib/beaker/logger_junit.rb +21 -25
- data/lib/beaker/network_manager.rb +39 -42
- data/lib/beaker/options/command_line_parser.rb +12 -23
- data/lib/beaker/options/hosts_file_parser.rb +16 -24
- data/lib/beaker/options/options_file_parser.rb +3 -6
- data/lib/beaker/options/options_hash.rb +2 -7
- data/lib/beaker/options/parser.rb +86 -102
- data/lib/beaker/options/presets.rb +114 -123
- data/lib/beaker/options/subcommand_options_file_parser.rb +3 -6
- data/lib/beaker/options/validator.rb +26 -31
- data/lib/beaker/perf.rb +22 -27
- data/lib/beaker/platform.rb +38 -46
- data/lib/beaker/result.rb +7 -6
- data/lib/beaker/shared/error_handler.rb +8 -10
- data/lib/beaker/shared/fog_credentials.rb +5 -9
- data/lib/beaker/shared/host_manager.rb +36 -41
- data/lib/beaker/shared/options_resolver.rb +3 -7
- data/lib/beaker/shared/repetition.rb +2 -4
- data/lib/beaker/shared/semvar.rb +37 -41
- data/lib/beaker/shared/timed.rb +0 -3
- data/lib/beaker/shared.rb +1 -1
- data/lib/beaker/ssh_connection.rb +38 -47
- data/lib/beaker/subcommand.rb +17 -24
- data/lib/beaker/subcommands/subcommand_util.rb +4 -4
- data/lib/beaker/tasks/quick_start.rb +4 -9
- data/lib/beaker/tasks/rake_task.rb +25 -27
- data/lib/beaker/tasks/test.rb +4 -4
- data/lib/beaker/test_case.rb +15 -27
- data/lib/beaker/test_suite.rb +35 -39
- data/lib/beaker/test_suite_result.rb +45 -47
- data/lib/beaker/version.rb +1 -1
- data/lib/beaker.rb +5 -6
- data/rubocop.yml +39 -0
- data/spec/beaker/cli_spec.rb +121 -142
- data/spec/beaker/command_spec.rb +55 -59
- data/spec/beaker/dsl/assertions_spec.rb +36 -36
- data/spec/beaker/dsl/helpers/host_helpers_spec.rb +110 -131
- data/spec/beaker/dsl/helpers/test_helpers_spec.rb +9 -10
- data/spec/beaker/dsl/helpers/web_helpers_spec.rb +28 -34
- data/spec/beaker/dsl/outcomes_spec.rb +14 -14
- data/spec/beaker/dsl/roles_spec.rb +125 -130
- data/spec/beaker/dsl/structure_spec.rb +169 -158
- data/spec/beaker/dsl/test_tagging_spec.rb +89 -90
- data/spec/beaker/dsl/wrappers_spec.rb +32 -33
- data/spec/beaker/host/aix_spec.rb +14 -14
- data/spec/beaker/host/cisco_spec.rb +84 -94
- data/spec/beaker/host/eos_spec.rb +15 -36
- data/spec/beaker/host/freebsd/exec_spec.rb +3 -6
- data/spec/beaker/host/freebsd/pkg_spec.rb +24 -27
- data/spec/beaker/host/mac/exec_spec.rb +2 -3
- data/spec/beaker/host/mac/group_spec.rb +47 -56
- data/spec/beaker/host/mac/user_spec.rb +53 -62
- data/spec/beaker/host/pswindows/exec_spec.rb +30 -32
- data/spec/beaker/host/pswindows/file_spec.rb +16 -16
- data/spec/beaker/host/pswindows/user_spec.rb +17 -23
- data/spec/beaker/host/pswindows_spec.rb +13 -13
- data/spec/beaker/host/unix/exec_spec.rb +75 -80
- data/spec/beaker/host/unix/file_spec.rb +66 -73
- data/spec/beaker/host/unix/pkg_spec.rb +155 -401
- data/spec/beaker/host/unix_spec.rb +11 -207
- data/spec/beaker/host/windows/exec_spec.rb +30 -32
- data/spec/beaker/host/windows/file_spec.rb +18 -19
- data/spec/beaker/host/windows/group_spec.rb +10 -12
- data/spec/beaker/host/windows/pkg_spec.rb +6 -9
- data/spec/beaker/host/windows/user_spec.rb +17 -23
- data/spec/beaker/host/windows_spec.rb +39 -39
- data/spec/beaker/host_prebuilt_steps_spec.rb +172 -326
- data/spec/beaker/host_spec.rb +204 -284
- data/spec/beaker/hypervisor/hypervisor_spec.rb +36 -61
- data/spec/beaker/localhost_connection_spec.rb +10 -11
- data/spec/beaker/logger_junit_spec.rb +19 -30
- data/spec/beaker/logger_spec.rb +153 -136
- data/spec/beaker/network_manager_spec.rb +23 -23
- data/spec/beaker/options/command_line_parser_spec.rb +20 -23
- data/spec/beaker/options/hosts_file_parser_spec.rb +30 -32
- data/spec/beaker/options/options_file_parser_spec.rb +4 -7
- data/spec/beaker/options/options_hash_spec.rb +4 -6
- data/spec/beaker/options/parser_spec.rb +167 -167
- data/spec/beaker/options/presets_spec.rb +7 -9
- data/spec/beaker/options/subcommand_options_parser_spec.rb +13 -14
- data/spec/beaker/options/validator_spec.rb +10 -11
- data/spec/beaker/perf_spec.rb +18 -21
- data/spec/beaker/platform_spec.rb +25 -36
- data/spec/beaker/shared/error_handler_spec.rb +7 -16
- data/spec/beaker/shared/fog_credentials_spec.rb +29 -29
- data/spec/beaker/shared/host_manager_spec.rb +50 -84
- data/spec/beaker/shared/options_resolver_spec.rb +9 -12
- data/spec/beaker/shared/repetition_spec.rb +17 -24
- data/spec/beaker/shared/semvar_spec.rb +21 -26
- data/spec/beaker/ssh_connection_spec.rb +76 -83
- data/spec/beaker/subcommand/subcommand_util_spec.rb +31 -33
- data/spec/beaker/subcommand_spec.rb +75 -77
- data/spec/beaker/test_case_spec.rb +25 -50
- data/spec/beaker/test_suite_spec.rb +147 -154
- data/spec/helpers.rb +48 -53
- data/spec/matchers.rb +8 -7
- data/spec/mocks.rb +1 -6
- data/spec/spec_helper.rb +0 -1
- metadata +13 -37
- data/acceptance/tests/base/dsl/helpers/host_helpers/deploy_package_repo_test.rb +0 -142
- data/acceptance/tests/base/external_resources_test.rb +0 -31
- data/spec/beaker/host/mac_spec.rb +0 -113
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ed6c6126f85203546e505eb1c8b8770582c303c11db2ab209e6cd1f03414fe5
|
4
|
+
data.tar.gz: f007b424a8e1a4097c5704a5f009ec5d38c69e55535c4a40618eabf57e69637b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 646c6603a729bbe62a91365a7c90c3de1a960517e0a8b036076ba9f6705b7971ab630f5d86a1ce2a3d690094459c2730e8522ebc01108557f5f8fa64fc3c3cf9
|
7
|
+
data.tar.gz: fd96942cd14a89a587fc010495f66124761c59502ad98b43f813bb80c53fd5429a748c710e9e4f4e614b59e789251e96957abbabaec486f39015f3524e9c6d50
|
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
|
@@ -10,13 +10,13 @@ jobs:
|
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
if: github.repository_owner == 'voxpupuli'
|
12
12
|
steps:
|
13
|
-
- uses: actions/checkout@
|
13
|
+
- uses: actions/checkout@v3
|
14
14
|
- name: Install Ruby 3.0
|
15
15
|
uses: ruby/setup-ruby@v1
|
16
16
|
with:
|
17
17
|
ruby-version: '3.0'
|
18
18
|
env:
|
19
|
-
BUNDLE_WITHOUT: release
|
19
|
+
BUNDLE_WITHOUT: release:development:rubocop
|
20
20
|
- name: Build gem
|
21
21
|
run: gem build *.gemspec
|
22
22
|
- name: Publish gem to rubygems.org
|
data/.github/workflows/test.yml
CHANGED
@@ -1,42 +1,44 @@
|
|
1
1
|
name: Test
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
BUNDLE_WITHOUT: release
|
4
|
+
pull_request: {}
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
9
8
|
|
10
9
|
jobs:
|
11
10
|
rubocop:
|
11
|
+
env:
|
12
|
+
BUNDLE_WITHOUT: release
|
12
13
|
runs-on: ubuntu-latest
|
13
14
|
steps:
|
14
15
|
- uses: actions/checkout@v3
|
15
16
|
- name: Install Ruby ${{ matrix.ruby }}
|
16
17
|
uses: ruby/setup-ruby@v1
|
17
18
|
with:
|
18
|
-
ruby-version: "3.
|
19
|
+
ruby-version: "3.2"
|
19
20
|
bundler-cache: true
|
20
21
|
- name: Run Rubocop
|
21
|
-
run: bundle exec rubocop
|
22
|
+
run: bundle exec rake rubocop
|
22
23
|
|
23
24
|
test:
|
24
|
-
|
25
|
+
# CentOS 7 testing is broken on Ubuntu 22.04
|
26
|
+
runs-on: ubuntu-20.04
|
25
27
|
strategy:
|
26
28
|
fail-fast: false
|
27
29
|
matrix:
|
28
30
|
include:
|
29
|
-
- ruby: "2.4"
|
30
|
-
- ruby: "2.5"
|
31
|
-
- ruby: "2.6"
|
32
31
|
- ruby: "2.7"
|
33
32
|
- ruby: "3.0"
|
34
33
|
- ruby: "3.1"
|
34
|
+
- ruby: "3.2"
|
35
35
|
coverage: "yes"
|
36
36
|
env:
|
37
37
|
COVERAGE: ${{ matrix.coverage }}
|
38
|
+
BUNDLE_WITHOUT: release:rubocop
|
39
|
+
BEAKER_HYPERVISOR: docker
|
38
40
|
steps:
|
39
|
-
- uses: actions/checkout@
|
41
|
+
- uses: actions/checkout@v3
|
40
42
|
- name: Install Ruby ${{ matrix.ruby }}
|
41
43
|
uses: ruby/setup-ruby@v1
|
42
44
|
with:
|
@@ -44,5 +46,16 @@ jobs:
|
|
44
46
|
bundler-cache: true
|
45
47
|
- name: Build gem
|
46
48
|
run: gem build *.gemspec
|
47
|
-
- name: Run tests
|
49
|
+
- name: Run unit tests
|
48
50
|
run: bundle exec rake spec
|
51
|
+
- name: Run acceptance tests
|
52
|
+
run: bundle exec rake acceptance
|
53
|
+
|
54
|
+
tests:
|
55
|
+
needs:
|
56
|
+
- rubocop
|
57
|
+
- test
|
58
|
+
runs-on: ubuntu-latest
|
59
|
+
name: Test suite
|
60
|
+
steps:
|
61
|
+
- run: echo Test suite completed
|
data/.rubocop.yml
CHANGED
@@ -1,31 +1,13 @@
|
|
1
1
|
---
|
2
|
-
inherit_from:
|
3
|
-
|
4
|
-
|
5
|
-
- rubocop-performance
|
6
|
-
- rubocop-rake
|
7
|
-
- rubocop-rspec
|
8
|
-
|
9
|
-
AllCops:
|
10
|
-
NewCops: enable
|
11
|
-
|
12
|
-
Layout/ArgumentAlignment:
|
13
|
-
Enabled: false
|
2
|
+
inherit_from:
|
3
|
+
- rubocop.yml
|
4
|
+
- .rubocop_todo.yml
|
14
5
|
|
15
6
|
Layout/LineLength:
|
16
7
|
Exclude:
|
17
8
|
- acceptance/**/*.rb
|
18
9
|
- spec/**/*.rb
|
19
10
|
|
20
|
-
Layout:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Metrics:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
Style:
|
27
|
-
Enabled: false
|
28
|
-
|
29
11
|
Naming/AccessorMethodName:
|
30
12
|
Enabled: false
|
31
13
|
|
@@ -60,3 +42,6 @@ RSpec/MultipleExpectations:
|
|
60
42
|
|
61
43
|
RSpec/NestedGroups:
|
62
44
|
Max: 4
|
45
|
+
|
46
|
+
Style:
|
47
|
+
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
|
3
|
-
# using RuboCop version 1.
|
3
|
+
# using RuboCop version 1.48.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -35,10 +35,10 @@ Lint/EmptyBlock:
|
|
35
35
|
- 'spec/beaker/logger_junit_spec.rb'
|
36
36
|
- 'spec/beaker/logger_spec.rb'
|
37
37
|
|
38
|
-
|
38
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
39
|
+
Lint/NonAtomicFileOperation:
|
39
40
|
Exclude:
|
40
|
-
- '
|
41
|
-
- 'lib/beaker/tasks/rake_task.rb'
|
41
|
+
- 'acceptance/tests/base/dsl/helpers/host_helpers/archive_file_from_test.rb'
|
42
42
|
|
43
43
|
Lint/RescueException:
|
44
44
|
Exclude:
|
@@ -63,7 +63,7 @@ Lint/UselessAssignment:
|
|
63
63
|
- 'lib/beaker/logger_junit.rb'
|
64
64
|
|
65
65
|
# Configuration parameters: ForbiddenDelimiters.
|
66
|
-
# ForbiddenDelimiters: (
|
66
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
67
67
|
Naming/HeredocDelimiterNaming:
|
68
68
|
Exclude:
|
69
69
|
- 'Rakefile'
|
@@ -96,7 +96,15 @@ RSpec/AnyInstance:
|
|
96
96
|
- 'spec/beaker/host/windows/file_spec.rb'
|
97
97
|
- 'spec/beaker/subcommand_spec.rb'
|
98
98
|
|
99
|
-
#
|
99
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
100
|
+
RSpec/BeEq:
|
101
|
+
Exclude:
|
102
|
+
- 'spec/beaker/cli_spec.rb'
|
103
|
+
- 'spec/beaker/host/pswindows/file_spec.rb'
|
104
|
+
- 'spec/beaker/host/windows/exec_spec.rb'
|
105
|
+
- 'spec/beaker/host_spec.rb'
|
106
|
+
|
107
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
100
108
|
# Prefixes: when, with, without
|
101
109
|
RSpec/ContextWording:
|
102
110
|
Enabled: false
|
@@ -128,7 +136,6 @@ RSpec/InstanceVariable:
|
|
128
136
|
RSpec/IteratedExpectation:
|
129
137
|
Exclude:
|
130
138
|
- 'spec/beaker/dsl/helpers/host_helpers_spec.rb'
|
131
|
-
- 'spec/beaker/host_prebuilt_steps_spec.rb'
|
132
139
|
|
133
140
|
RSpec/LeakyConstantDeclaration:
|
134
141
|
Exclude:
|
@@ -151,12 +158,23 @@ RSpec/MultipleDescribes:
|
|
151
158
|
|
152
159
|
# Configuration parameters: AllowSubject.
|
153
160
|
RSpec/MultipleMemoizedHelpers:
|
154
|
-
Max:
|
161
|
+
Max: 17
|
155
162
|
|
156
|
-
# Configuration parameters: IgnoreSharedExamples.
|
163
|
+
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
164
|
+
# SupportedStyles: always, named_only
|
157
165
|
RSpec/NamedSubject:
|
158
166
|
Enabled: false
|
159
167
|
|
168
|
+
# Configuration parameters: AllowedPatterns.
|
169
|
+
# AllowedPatterns: ^expect_, ^assert_
|
170
|
+
RSpec/NoExpectationExample:
|
171
|
+
Exclude:
|
172
|
+
- 'acceptance/fixtures/module/spec/acceptance/demo_spec.rb'
|
173
|
+
- 'spec/beaker/host/windows/pkg_spec.rb'
|
174
|
+
- 'spec/beaker/host_prebuilt_steps_spec.rb'
|
175
|
+
- 'spec/beaker/logger_spec.rb'
|
176
|
+
- 'spec/beaker/options/subcommand_options_parser_spec.rb'
|
177
|
+
|
160
178
|
RSpec/RepeatedDescription:
|
161
179
|
Exclude:
|
162
180
|
- 'spec/beaker/cli_spec.rb'
|
@@ -195,7 +213,7 @@ RSpec/UnspecifiedException:
|
|
195
213
|
RSpec/VerifiedDoubles:
|
196
214
|
Enabled: false
|
197
215
|
|
198
|
-
#
|
216
|
+
# This cop supports safe autocorrection (--autocorrect).
|
199
217
|
Rake/Desc:
|
200
218
|
Exclude:
|
201
219
|
- 'Rakefile'
|
@@ -213,3 +231,9 @@ Security/Eval:
|
|
213
231
|
Security/Open:
|
214
232
|
Exclude:
|
215
233
|
- 'lib/beaker/dsl/helpers/web_helpers.rb'
|
234
|
+
|
235
|
+
# This cop supports safe autocorrection (--autocorrect).
|
236
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
237
|
+
# URISchemes: http, https
|
238
|
+
Layout/LineLength:
|
239
|
+
Max: 226
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [5.1.0](https://github.com/voxpupuli/beaker/tree/5.1.0) (2023-03-27)
|
4
|
+
|
5
|
+
**Implemented enhancements:**
|
6
|
+
|
7
|
+
- Introduce shareable rubocop config [\#1795](https://github.com/voxpupuli/beaker/pull/1795) ([bastelfreak](https://github.com/bastelfreak))
|
8
|
+
|
9
|
+
## [5.0.0](https://github.com/voxpupuli/beaker/tree/5.0.0) (2023-03-24)
|
10
|
+
|
11
|
+
**Breaking changes:**
|
12
|
+
|
13
|
+
- Drop Ruby 2.4/2.5/2.6 support [\#1767](https://github.com/voxpupuli/beaker/pull/1767) ([bastelfreak](https://github.com/bastelfreak))
|
14
|
+
- Removes open_uri_redirections [\#1764](https://github.com/voxpupuli/beaker/pull/1764) ([mhashizume](https://github.com/mhashizume))
|
15
|
+
- Drop deprecated methods [\#1769](https://github.com/voxpupuli/beaker/pull/1769) ([ekohl](https://github.com/ekohl))
|
16
|
+
- Remove add-el-extras, passenger, proxy_config, disable_iptables and clean up code [\#1731](https://github.com/voxpupuli/beaker/pull/1731) ([ekohl](https://github.com/ekohl))
|
17
|
+
- Remove install_puppet_agent_* methods [\#1775](https://github.com/voxpupuli/beaker/pull/1775) ([ekohl](https://github.com/ekohl))
|
18
|
+
|
19
|
+
**Implemented enhancements:**
|
20
|
+
|
21
|
+
- Fix many RuboCop violations: [\#1768](https://github.com/voxpupuli/beaker/pull/1768), [\#1777](https://github.com/voxpupuli/beaker/pull/1777), [\#1787](https://github.com/voxpupuli/beaker/pull/1787), [\#1778](https://github.com/voxpupuli/beaker/pull/1778), [\#1790](https://github.com/voxpupuli/beaker/pull/1790), [\#1791](https://github.com/voxpupuli/beaker/pull/1791), [\#1792](https://github.com/voxpupuli/beaker/pull/1792)
|
22
|
+
- Add Ruby 3.2 support [\#1762](https://github.com/voxpupuli/beaker/pull/1762) ([ekohl](https://github.com/ekohl))
|
23
|
+
- Drop rspec-its dependency in favor of have_attributes [\#1788](https://github.com/voxpupuli/beaker/pull/1788)
|
24
|
+
|
3
25
|
## [4.39.0](https://github.com/voxpupuli/beaker/tree/4.39.0) (2023-02-09)
|
4
26
|
|
5
27
|
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.1...4.39.0)
|
data/Gemfile
CHANGED
@@ -15,23 +15,28 @@ gemspec
|
|
15
15
|
|
16
16
|
if ENV['BEAKER_PE_PR_REPO_URL']
|
17
17
|
lib = ENV['BEAKER_PE_PR_REPO_URL'].match(/\/([^\/]+)\.git$/)[1]
|
18
|
-
author = ENV
|
19
|
-
ref = ENV
|
18
|
+
author = ENV.fetch('BEAKER_PE_PR_AUTHOR', nil)
|
19
|
+
ref = ENV.fetch('BEAKER_PE_PR_COMMIT', nil)
|
20
20
|
gem lib, :git => "git@github.com:#{author}/#{lib}.git", :branch => ref
|
21
21
|
end
|
22
22
|
|
23
|
+
if ENV['BEAKER_HYPERVISOR']
|
24
|
+
# vagrant_libvirt -> vagrant
|
25
|
+
gem "beaker-#{ENV['BEAKER_HYPERVISOR'].split('_').first}"
|
26
|
+
end
|
27
|
+
|
23
28
|
group :rubocop do
|
24
|
-
gem 'rubocop', '~> 1.
|
25
|
-
gem 'rubocop-performance'
|
26
|
-
gem 'rubocop-rake'
|
27
|
-
gem 'rubocop-rspec'
|
29
|
+
gem 'rubocop', '~> 1.48.0'
|
30
|
+
gem 'rubocop-performance', '~> 1.16.0'
|
31
|
+
gem 'rubocop-rake', '~> 0.6.0'
|
32
|
+
gem 'rubocop-rspec', '~> 2.19.0'
|
28
33
|
end
|
29
34
|
|
30
35
|
group :release do
|
31
36
|
gem 'github_changelog_generator', require: false
|
32
37
|
end
|
33
38
|
|
34
|
-
group :coverage, optional: ENV['COVERAGE']!='yes' do
|
39
|
+
group :coverage, optional: ENV['COVERAGE'] != 'yes' do
|
35
40
|
gem 'codecov', :require => false
|
36
41
|
gem 'simplecov-console', :require => false
|
37
42
|
end
|