beaker 4.40.1 → 5.0.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 +23 -10
- data/.rubocop_todo.yml +34 -10
- data/CHANGELOG.md +13 -11
- 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 -7
- 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 -39
- 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/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 +22 -31
- 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 +7 -24
- 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: a779fedc9b7695d5a76a9731765e8ed5c5b8f9f1945563c2108cd0d0e01f564a
|
4
|
+
data.tar.gz: d5613d1aa5a289aff25f948229f5d8c89bec28fa25ec6ae310f446e95dd44363
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33dae1fd1af4921f1fd3f00e18413a1a823749444fbed1c1fae0ed967cf055988a31692ceba29d5535bba8b1283f0b6ec0535cf21b589ecfc9f55c0d6498f51b
|
7
|
+
data.tar.gz: 8ccefb72d40022e47506fdd6ab8307318fbcd3eb736f89f965368de923e65b52e14a3faac8ea4afcb7aad3d3c80e059a9ce665578d18f32c01ff073675b75387
|
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
@@ -7,25 +7,32 @@ require:
|
|
7
7
|
- rubocop-rspec
|
8
8
|
|
9
9
|
AllCops:
|
10
|
+
TargetRubyVersion: 2.7
|
10
11
|
NewCops: enable
|
11
12
|
|
12
|
-
|
13
|
+
Gemspec/RequireMFA:
|
13
14
|
Enabled: false
|
14
15
|
|
16
|
+
Gemspec/DevelopmentDependencies:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Style/TrailingCommaInHashLiteral:
|
20
|
+
Enabled: True
|
21
|
+
EnforcedStyleForMultiline: consistent_comma
|
22
|
+
|
23
|
+
Style/TrailingCommaInArrayLiteral:
|
24
|
+
Enabled: True
|
25
|
+
EnforcedStyleForMultiline: consistent_comma
|
26
|
+
|
27
|
+
Style/TrailingCommaInArguments:
|
28
|
+
Enabled: True
|
29
|
+
EnforcedStyleForMultiline: comma
|
30
|
+
|
15
31
|
Layout/LineLength:
|
16
32
|
Exclude:
|
17
33
|
- acceptance/**/*.rb
|
18
34
|
- spec/**/*.rb
|
19
35
|
|
20
|
-
Layout:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Metrics:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
Style:
|
27
|
-
Enabled: false
|
28
|
-
|
29
36
|
Naming/AccessorMethodName:
|
30
37
|
Enabled: false
|
31
38
|
|
@@ -60,3 +67,9 @@ RSpec/MultipleExpectations:
|
|
60
67
|
|
61
68
|
RSpec/NestedGroups:
|
62
69
|
Max: 4
|
70
|
+
|
71
|
+
Metrics:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Style:
|
75
|
+
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,20 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [5.0.0](https://github.com/voxpupuli/beaker/tree/5.0.0) (2023-03-24)
|
4
4
|
|
5
|
-
**
|
5
|
+
**Breaking changes:**
|
6
6
|
|
7
|
-
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
[
|
7
|
+
- Drop Ruby 2.4/2.5/2.6 support [\#1767](https://github.com/voxpupuli/beaker/pull/1767) ([bastelfreak](https://github.com/bastelfreak))
|
8
|
+
- Removes open_uri_redirections [\#1764](https://github.com/voxpupuli/beaker/pull/1764) ([mhashizume](https://github.com/mhashizume))
|
9
|
+
- Drop deprecated methods [\#1769](https://github.com/voxpupuli/beaker/pull/1769) ([ekohl](https://github.com/ekohl))
|
10
|
+
- 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))
|
11
|
+
- Remove install_puppet_agent_* methods [\#1775](https://github.com/voxpupuli/beaker/pull/1775) ([ekohl](https://github.com/ekohl))
|
12
12
|
|
13
13
|
**Implemented enhancements:**
|
14
14
|
|
15
|
-
-
|
15
|
+
- 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)
|
16
|
+
- Add Ruby 3.2 support [\#1762](https://github.com/voxpupuli/beaker/pull/1762) ([ekohl](https://github.com/ekohl))
|
17
|
+
- Drop rspec-its dependency in favor of have_attributes [\#1788](https://github.com/voxpupuli/beaker/pull/1788)
|
16
18
|
|
17
|
-
## [4.39.0](https://github.com/voxpupuli/beaker/tree/4.39.0) (2023-02-
|
19
|
+
## [4.39.0](https://github.com/voxpupuli/beaker/tree/4.39.0) (2023-02-09)
|
18
20
|
|
19
21
|
[Full Changelog](https://github.com/voxpupuli/beaker/compare/4.38.1...4.39.0)
|
20
22
|
|
@@ -24,9 +26,9 @@
|
|
24
26
|
|
25
27
|
**Implemented enhancements:**
|
26
28
|
|
27
|
-
- Add
|
29
|
+
- Add RuboCop [\#1761](https://github.com/voxpupuli/beaker/pull/1761) ([ekohl](https://github.com/ekohl))
|
28
30
|
- Update net-scp requirement from >= 1.2, < 4.0 to >= 1.2, < 5.0 [\#1757](https://github.com/voxpupuli/beaker/pull/1757)
|
29
|
-
-
|
31
|
+
- (maint) StringInclude Rubocop corrections [\1765](https://github.com/voxpupuli/beaker/pull/1765) ([mhashizume](https://github.com/mhashizume))
|
30
32
|
|
31
33
|
**Closed issues:**
|
32
34
|
|
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
|