beaker-abs 0.11.0 → 1.1.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 +7 -2
- data/.github/workflows/auto_release_prep.yml +12 -0
- data/.github/workflows/dependabot_merge.yml +8 -0
- data/.github/workflows/ensure_label.yml +8 -0
- data/.github/workflows/release.yml +95 -0
- data/.github/workflows/security.yml +39 -0
- data/.github/workflows/testing.yml +26 -0
- data/.github_changelog_generator +4 -0
- data/CHANGELOG.md +234 -0
- data/CODEOWNERS +1 -1
- data/Gemfile +1 -1
- data/README.md +33 -21
- data/beaker-abs.gemspec +1 -1
- data/lib/beaker-abs/version.rb +1 -1
- data/release-prep +12 -0
- metadata +22 -8
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db7f2bf4afb44988411438cf873a24f69d45065ff3a2113fc06ce3d3f2642377
|
4
|
+
data.tar.gz: 64d423895137167696e7b7ef56c7c8c7d41d34cae9fcd0a8160b53c0060d42ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805801c7d805112f89288e09fa3a5589db49f4a828bc307b5e4b918e581e851bbfb8e3068006eb79f62ad289983a9210f5d3136be5f0d6e8e5f510845a88b2b4
|
7
|
+
data.tar.gz: ab8665e8543fcd9fca7847c0883deaa69e038f8b1043505da8b674111ef59d58d1a100f27e2b27bafc6560371fb826a67109e9f4b2a6a65b5a1654782bd324b4
|
data/.github/dependabot.yml
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
version: 2
|
2
2
|
updates:
|
3
|
+
- package-ecosystem: "github-actions"
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: "weekly"
|
7
|
+
open-pull-requests-limit: 10
|
8
|
+
|
3
9
|
- package-ecosystem: bundler
|
4
10
|
directory: "/"
|
5
11
|
schedule:
|
6
|
-
interval:
|
7
|
-
time: "13:00"
|
12
|
+
interval: "weekly"
|
8
13
|
open-pull-requests-limit: 10
|
@@ -0,0 +1,12 @@
|
|
1
|
+
name: Automated release prep
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
auto_release_prep:
|
8
|
+
uses: puppetlabs/release-engineering-repo-standards/.github/workflows/auto_release_prep.yml@v1
|
9
|
+
secrets: inherit
|
10
|
+
with:
|
11
|
+
project-type: ruby
|
12
|
+
version-file-path: lib/beaker-abs/version.rb
|
@@ -0,0 +1,95 @@
|
|
1
|
+
name: Tag Release & Push Gem
|
2
|
+
|
3
|
+
on: workflow_dispatch
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
release:
|
7
|
+
name: Validate Docs, Tag, and Push Gem
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
if: github.repository == 'puppetlabs/beaker-abs'
|
10
|
+
|
11
|
+
steps:
|
12
|
+
- name: Checkout code
|
13
|
+
uses: actions/checkout@v4
|
14
|
+
with:
|
15
|
+
ref: ${{ github.ref }}
|
16
|
+
clean: true
|
17
|
+
fetch-depth: 0
|
18
|
+
|
19
|
+
- name: Get New Version
|
20
|
+
id: nv
|
21
|
+
run: |
|
22
|
+
version=$(grep STRING lib/beaker-abs/version.rb |rev |cut -d "'" -f2 |rev)
|
23
|
+
echo "version=$version" >> $GITHUB_OUTPUT
|
24
|
+
echo "Found version $version from lib/beaker-abs/version.rb"
|
25
|
+
|
26
|
+
- name: Get Current Version
|
27
|
+
uses: actions/github-script@v7
|
28
|
+
id: cv
|
29
|
+
with:
|
30
|
+
script: |
|
31
|
+
const { data: response } = await github.rest.repos.getLatestRelease({
|
32
|
+
owner: context.repo.owner,
|
33
|
+
repo: context.repo.repo,
|
34
|
+
})
|
35
|
+
console.log(`The latest release is ${response.tag_name}`)
|
36
|
+
return response.tag_name
|
37
|
+
result-encoding: string
|
38
|
+
|
39
|
+
- name: Generate Changelog
|
40
|
+
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
|
41
|
+
with:
|
42
|
+
args: >-
|
43
|
+
--future-release ${{ steps.nv.outputs.version }}
|
44
|
+
env:
|
45
|
+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
46
|
+
|
47
|
+
- name: Validate Changelog
|
48
|
+
run : |
|
49
|
+
set -e
|
50
|
+
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
|
51
|
+
echo "Here is the current git status:"
|
52
|
+
git status
|
53
|
+
echo
|
54
|
+
echo "The following changes were detected:"
|
55
|
+
git --no-pager diff
|
56
|
+
echo "Uncommitted PRs found in the changelog. Please submit a release prep PR of changes after running './release-prep'"
|
57
|
+
exit 1
|
58
|
+
fi
|
59
|
+
|
60
|
+
- name: Generate Release Notes
|
61
|
+
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
|
62
|
+
with:
|
63
|
+
args: >-
|
64
|
+
--since-tag ${{ steps.cv.outputs.result }}
|
65
|
+
--future-release ${{ steps.nv.outputs.version }}
|
66
|
+
--output release-notes.md
|
67
|
+
env:
|
68
|
+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
69
|
+
|
70
|
+
- name: Tag Release
|
71
|
+
uses: ncipollo/release-action@v1
|
72
|
+
with:
|
73
|
+
tag: ${{ steps.nv.outputs.version }}
|
74
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
75
|
+
bodyfile: release-notes.md
|
76
|
+
draft: false
|
77
|
+
prerelease: false
|
78
|
+
|
79
|
+
- name: Set up Ruby 3.2
|
80
|
+
uses: actions/setup-ruby@v1
|
81
|
+
with:
|
82
|
+
version: 3.2.x
|
83
|
+
|
84
|
+
- name: Build gem
|
85
|
+
run: gem build *.gemspec
|
86
|
+
|
87
|
+
- name: Publish gem
|
88
|
+
run: |
|
89
|
+
mkdir -p $HOME/.gem
|
90
|
+
touch $HOME/.gem/credentials
|
91
|
+
chmod 0600 $HOME/.gem/credentials
|
92
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
93
|
+
gem push *.gem
|
94
|
+
env:
|
95
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Security
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
scan:
|
10
|
+
name: Mend Scanning
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: checkout repo content
|
14
|
+
uses: actions/checkout@v4
|
15
|
+
with:
|
16
|
+
fetch-depth: 1
|
17
|
+
- name: setup ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.7
|
21
|
+
# setup a package lock if one doesn't exist, otherwise do nothing
|
22
|
+
- name: check lock
|
23
|
+
run: '[ -f "Gemfile.lock" ] && echo "package lock file exists, skipping" || bundle lock'
|
24
|
+
# install java
|
25
|
+
- uses: actions/setup-java@v4
|
26
|
+
with:
|
27
|
+
distribution: 'temurin' # See 'Supported distributions' for available options
|
28
|
+
java-version: '17'
|
29
|
+
# download mend
|
30
|
+
- name: download_mend
|
31
|
+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
|
32
|
+
- name: run mend
|
33
|
+
run: java -jar wss-unified-agent.jar
|
34
|
+
env:
|
35
|
+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
|
36
|
+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
|
37
|
+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
|
38
|
+
WS_PRODUCTNAME: RE
|
39
|
+
WS_PROJECTNAME: ${{ github.event.repository.name }}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Testing
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
spec_tests:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby-version:
|
14
|
+
- '2.7'
|
15
|
+
- '3.0'
|
16
|
+
- '3.1'
|
17
|
+
- '3.2'
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v4
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
25
|
+
- name: Run spec tests
|
26
|
+
run: bundle exec rake test
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,234 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [1.1.0](https://github.com/puppetlabs/beaker-abs/tree/1.1.0) (2024-05-28)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/1.0.0...1.1.0)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Fix minitest after 5.19.0 [\#36](https://github.com/puppetlabs/beaker-abs/pull/36) ([yachub](https://github.com/yachub))
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Add support for Beaker 6 [\#41](https://github.com/puppetlabs/beaker-abs/pull/41) ([mhashizume](https://github.com/mhashizume))
|
14
|
+
- Bump actions/setup-java from 3 to 4 [\#38](https://github.com/puppetlabs/beaker-abs/pull/38) ([dependabot[bot]](https://github.com/apps/dependabot))
|
15
|
+
- Bump actions/github-script from 6 to 7 [\#37](https://github.com/puppetlabs/beaker-abs/pull/37) ([dependabot[bot]](https://github.com/apps/dependabot))
|
16
|
+
- Bump actions/checkout from 3 to 4 [\#35](https://github.com/puppetlabs/beaker-abs/pull/35) ([dependabot[bot]](https://github.com/apps/dependabot))
|
17
|
+
|
18
|
+
## [1.0.0](https://github.com/puppetlabs/beaker-abs/tree/1.0.0) (2023-03-28)
|
19
|
+
|
20
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.11.0...1.0.0)
|
21
|
+
|
22
|
+
**Breaking changes:**
|
23
|
+
|
24
|
+
- \(PUP-11786\) Beaker 5 compatibility [\#32](https://github.com/puppetlabs/beaker-abs/pull/32) ([mhashizume](https://github.com/mhashizume))
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- \(RE-15111\) Add Mend Scanning [\#31](https://github.com/puppetlabs/beaker-abs/pull/31) ([yachub](https://github.com/yachub))
|
29
|
+
- \(RE-14811\) Remove DIO as codeowners [\#30](https://github.com/puppetlabs/beaker-abs/pull/30) ([yachub](https://github.com/yachub))
|
30
|
+
- Add RE as codeowners and Migrate to Actions [\#29](https://github.com/puppetlabs/beaker-abs/pull/29) ([yachub](https://github.com/yachub))
|
31
|
+
|
32
|
+
## [0.11.0](https://github.com/puppetlabs/beaker-abs/tree/0.11.0) (2022-08-11)
|
33
|
+
|
34
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.10.1...0.11.0)
|
35
|
+
|
36
|
+
**Merged pull requests:**
|
37
|
+
|
38
|
+
- \(maint\) Remove pry-byebug require [\#28](https://github.com/puppetlabs/beaker-abs/pull/28) ([nmburgan](https://github.com/nmburgan))
|
39
|
+
|
40
|
+
## [0.10.1](https://github.com/puppetlabs/beaker-abs/tree/0.10.1) (2022-04-29)
|
41
|
+
|
42
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.9.0...0.10.1)
|
43
|
+
|
44
|
+
**Implemented enhancements:**
|
45
|
+
|
46
|
+
- \(DIO-2811\) Make beaker in CI respect the ssh\_config files [\#27](https://github.com/puppetlabs/beaker-abs/pull/27) ([sbeaulie](https://github.com/sbeaulie))
|
47
|
+
|
48
|
+
**Merged pull requests:**
|
49
|
+
|
50
|
+
- \(maint\) Fix minitest deprecation errors thrown during tests [\#20](https://github.com/puppetlabs/beaker-abs/pull/20) ([sbeaulie](https://github.com/sbeaulie))
|
51
|
+
|
52
|
+
## [0.9.0](https://github.com/puppetlabs/beaker-abs/tree/0.9.0) (2021-07-12)
|
53
|
+
|
54
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.8.1...0.9.0)
|
55
|
+
|
56
|
+
**Merged pull requests:**
|
57
|
+
|
58
|
+
- vmfloaty: Allow 1.x [\#26](https://github.com/puppetlabs/beaker-abs/pull/26) ([bastelfreak](https://github.com/bastelfreak))
|
59
|
+
|
60
|
+
## [0.8.1](https://github.com/puppetlabs/beaker-abs/tree/0.8.1) (2020-12-14)
|
61
|
+
|
62
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.8.0...0.8.1)
|
63
|
+
|
64
|
+
## [0.8.0](https://github.com/puppetlabs/beaker-abs/tree/0.8.0) (2020-12-14)
|
65
|
+
|
66
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.7.0...0.8.0)
|
67
|
+
|
68
|
+
**Merged pull requests:**
|
69
|
+
|
70
|
+
- Add examples to readme for using vmfloaty [\#22](https://github.com/puppetlabs/beaker-abs/pull/22) ([sbeaulie](https://github.com/sbeaulie))
|
71
|
+
- \(maint\) Fix passing service or priority via ENV vars [\#21](https://github.com/puppetlabs/beaker-abs/pull/21) ([sbeaulie](https://github.com/sbeaulie))
|
72
|
+
|
73
|
+
## [0.7.0](https://github.com/puppetlabs/beaker-abs/tree/0.7.0) (2020-12-10)
|
74
|
+
|
75
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.6.0...0.7.0)
|
76
|
+
|
77
|
+
**Merged pull requests:**
|
78
|
+
|
79
|
+
- Update vmfloaty requirement from ~\> 1.0.0 to \>= 1.0, \< 1.2 [\#19](https://github.com/puppetlabs/beaker-abs/pull/19) ([dependabot[bot]](https://github.com/apps/dependabot))
|
80
|
+
- Update rake requirement from ~\> 10.0 to ~\> 13.0 [\#16](https://github.com/puppetlabs/beaker-abs/pull/16) ([dependabot[bot]](https://github.com/apps/dependabot))
|
81
|
+
- remove unusable connection methods for vmpooler/nspooler [\#13](https://github.com/puppetlabs/beaker-abs/pull/13) ([sbeaulie](https://github.com/sbeaulie))
|
82
|
+
|
83
|
+
## [0.6.0](https://github.com/puppetlabs/beaker-abs/tree/0.6.0) (2020-10-08)
|
84
|
+
|
85
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.5.0...0.6.0)
|
86
|
+
|
87
|
+
**Merged pull requests:**
|
88
|
+
|
89
|
+
- Testing direct gem [\#18](https://github.com/puppetlabs/beaker-abs/pull/18) ([sbeaulie](https://github.com/sbeaulie))
|
90
|
+
- Add Dependabot to keep thins up to date [\#15](https://github.com/puppetlabs/beaker-abs/pull/15) ([genebean](https://github.com/genebean))
|
91
|
+
- \(MAINT\) Add CODEOWNERS file [\#14](https://github.com/puppetlabs/beaker-abs/pull/14) ([mchllweeks](https://github.com/mchllweeks))
|
92
|
+
- \(BKR-1509\) Hypervisor usage instructions for Beaker 4.0 [\#12](https://github.com/puppetlabs/beaker-abs/pull/12) ([Dakta](https://github.com/Dakta))
|
93
|
+
|
94
|
+
## [0.5.0](https://github.com/puppetlabs/beaker-abs/tree/0.5.0) (2018-02-15)
|
95
|
+
|
96
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.4.0...0.5.0)
|
97
|
+
|
98
|
+
**Merged pull requests:**
|
99
|
+
|
100
|
+
- \(BKR-1352\) - Setting the host ip in beaker hosts hash [\#11](https://github.com/puppetlabs/beaker-abs/pull/11) ([sarahethompson](https://github.com/sarahethompson))
|
101
|
+
|
102
|
+
## [0.4.0](https://github.com/puppetlabs/beaker-abs/tree/0.4.0) (2017-12-12)
|
103
|
+
|
104
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.3.0...0.4.0)
|
105
|
+
|
106
|
+
**Merged pull requests:**
|
107
|
+
|
108
|
+
- \(QENG-6081\) Remove beaker dependency [\#10](https://github.com/puppetlabs/beaker-abs/pull/10) ([smcelmurry](https://github.com/smcelmurry))
|
109
|
+
|
110
|
+
## [0.3.0](https://github.com/puppetlabs/beaker-abs/tree/0.3.0) (2017-08-14)
|
111
|
+
|
112
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.2.0...0.3.0)
|
113
|
+
|
114
|
+
**Merged pull requests:**
|
115
|
+
|
116
|
+
- \(BKR-1155\) Override beaker's default ssh connection preference [\#9](https://github.com/puppetlabs/beaker-abs/pull/9) ([rishijavia](https://github.com/rishijavia))
|
117
|
+
|
118
|
+
## [0.2.0](https://github.com/puppetlabs/beaker-abs/tree/0.2.0) (2016-10-24)
|
119
|
+
|
120
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.1.3...0.2.0)
|
121
|
+
|
122
|
+
**Merged pull requests:**
|
123
|
+
|
124
|
+
- \(QENG-4472\) Relax version constraints [\#5](https://github.com/puppetlabs/beaker-abs/pull/5) ([joshcooper](https://github.com/joshcooper))
|
125
|
+
- \(MAINT\) Update Development notes on releasing [\#4](https://github.com/puppetlabs/beaker-abs/pull/4) ([nwolfe](https://github.com/nwolfe))
|
126
|
+
|
127
|
+
## [0.1.3](https://github.com/puppetlabs/beaker-abs/tree/0.1.3) (2016-09-16)
|
128
|
+
|
129
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.1.2...0.1.3)
|
130
|
+
|
131
|
+
**Merged pull requests:**
|
132
|
+
|
133
|
+
- \(maint\) Stop restricting where we can push this gem [\#3](https://github.com/puppetlabs/beaker-abs/pull/3) ([rick](https://github.com/rick))
|
134
|
+
|
135
|
+
## [0.1.2](https://github.com/puppetlabs/beaker-abs/tree/0.1.2) (2016-09-16)
|
136
|
+
|
137
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.1.1...0.1.2)
|
138
|
+
|
139
|
+
# qe_beaker-abs_bump_and_tag_master - History
|
140
|
+
## Tags
|
141
|
+
* [LATEST - 14 Aug, 2017 (26840bd3)](#LATEST)
|
142
|
+
* [0.2.0 - 24 Oct, 2016 (44ff3935)](#0.2.0)
|
143
|
+
* [0.1.3 - 16 Sep, 2016 (6f1ced08)](#0.1.3)
|
144
|
+
* [0.1.2 - 16 Sep, 2016 (b914ae60)](#0.1.2)
|
145
|
+
* [0.1.1 - 16 Sep, 2016 (10ee39cf)](#0.1.1)
|
146
|
+
|
147
|
+
## Details
|
148
|
+
### <a name = "LATEST">LATEST - 14 Aug, 2017 (26840bd3)
|
149
|
+
|
150
|
+
* (GEM) update beaker-abs version to 0.3.0 (26840bd3)
|
151
|
+
|
152
|
+
* Merge pull request #9 from rishijavia/BKR-1155-third_attempt (859cb1ec)
|
153
|
+
|
154
|
+
|
155
|
+
```
|
156
|
+
Merge pull request #9 from rishijavia/BKR-1155-third_attempt
|
157
|
+
|
158
|
+
(BKR-1155) Override beaker's default ssh connection preference
|
159
|
+
```
|
160
|
+
* (BKR-1155) Override beaker's default ssh connection preference (8bab8a1c)
|
161
|
+
|
162
|
+
### <a name = "0.2.0">0.2.0 - 24 Oct, 2016 (44ff3935)
|
163
|
+
|
164
|
+
* (HISTORY) update beaker-abs history for gem release 0.2.0 (44ff3935)
|
165
|
+
|
166
|
+
* (GEM) update beaker-abs version to 0.2.0 (4c14d730)
|
167
|
+
|
168
|
+
* Merge pull request #5 from puppetlabs/beaker3-conflict (54001ff7)
|
169
|
+
|
170
|
+
|
171
|
+
```
|
172
|
+
Merge pull request #5 from puppetlabs/beaker3-conflict
|
173
|
+
|
174
|
+
(QENG-4472) Relax version constraints
|
175
|
+
```
|
176
|
+
* (QENG-4472) Relax version constraints (574d1d95)
|
177
|
+
|
178
|
+
|
179
|
+
```
|
180
|
+
(QENG-4472) Relax version constraints
|
181
|
+
|
182
|
+
Previously, we were pessimistically pinned to beaker 2.x, which meant
|
183
|
+
projects could not use both beaker 3 and beaker-abs simultaneously.
|
184
|
+
|
185
|
+
Beaker-abs only requires a version of beaker supporting the custom
|
186
|
+
hypervisor API. Due to a beaker bug, custom hypervisors did not work
|
187
|
+
until beaker 2.9.0 in commit d45e723cd. We also require less than beaker
|
188
|
+
4 to prevent future incompatibilities.
|
189
|
+
```
|
190
|
+
* (MAINT) Update Development notes on releasing (80972ba9)
|
191
|
+
|
192
|
+
* Merge pull request #4 from puppetlabs/update-dev-section-in-readme (9f4acbe1)
|
193
|
+
|
194
|
+
|
195
|
+
```
|
196
|
+
Merge pull request #4 from puppetlabs/update-dev-section-in-readme
|
197
|
+
|
198
|
+
(MAINT) Update Development notes on releasing
|
199
|
+
```
|
200
|
+
### <a name = "0.1.3">0.1.3 - 16 Sep, 2016 (6f1ced08)
|
201
|
+
|
202
|
+
* (HISTORY) update beaker-abs history for gem release 0.1.3 (6f1ced08)
|
203
|
+
|
204
|
+
* (GEM) update beaker-abs version to 0.1.3 (3d6ed7b7)
|
205
|
+
|
206
|
+
* Merge pull request #3 from puppetlabs/drop-gem-publish-restrictions (c0c786a4)
|
207
|
+
|
208
|
+
|
209
|
+
```
|
210
|
+
Merge pull request #3 from puppetlabs/drop-gem-publish-restrictions
|
211
|
+
|
212
|
+
(maint) Stop restricting where we can push this gem
|
213
|
+
```
|
214
|
+
* (maint) Stop restricting where we can push this gem (ba107b81)
|
215
|
+
|
216
|
+
|
217
|
+
```
|
218
|
+
(maint) Stop restricting where we can push this gem
|
219
|
+
|
220
|
+
We want this gem to be public, and this restriction is actually getting
|
221
|
+
in the way on some of our jenkins instances, and not providing any value.
|
222
|
+
```
|
223
|
+
### <a name = "0.1.2">0.1.2 - 16 Sep, 2016 (b914ae60)
|
224
|
+
|
225
|
+
* (HISTORY) update beaker-abs history for gem release 0.1.2 (b914ae60)
|
226
|
+
|
227
|
+
* (GEM) update beaker-abs version to 0.1.2 (b0ee39d0)
|
228
|
+
|
229
|
+
### <a name = "0.1.1">0.1.1 - 16 Sep, 2016 (10ee39cf)
|
230
|
+
|
231
|
+
* Initial release.
|
232
|
+
|
233
|
+
|
234
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/CODEOWNERS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
*
|
1
|
+
* @puppetlabs/release-engineering
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# beaker-abs
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/beaker-abs)
|
4
|
+
[](https://github.com/puppetlabs/beaker-abs/actions/workflows/testing.yml)
|
5
|
+
|
6
|
+
- [beaker-abs](#beaker-abs)
|
7
|
+
- [Description](#description)
|
8
|
+
- [Installation](#installation)
|
9
|
+
- [Usage](#usage)
|
10
|
+
- [Using vmfloaty](#using-vmfloaty)
|
11
|
+
- [Examples](#examples)
|
12
|
+
- [Environment vars](#environment-vars)
|
13
|
+
- [Releasing](#releasing)
|
14
|
+
- [Contributing](#contributing)
|
15
|
+
- [License](#license)
|
16
|
+
|
17
|
+
## Description
|
18
|
+
|
3
19
|
Implements a Beaker hypervisor that makes hosts provisioned by the AlwaysBeScheduling service available to a Beaker run.
|
4
20
|
|
5
21
|
## Installation
|
@@ -8,21 +24,20 @@ Beaker will automatically load the appropriate hypervisors for any given hosts f
|
|
8
24
|
|
9
25
|
As of Beaker 4.0, all hypervisor and DSL extension libraries have been removed and are no longer dependencies. In order to use a specific hypervisor or DSL extension library in your project, you will need to include them alongside Beaker in your Gemfile or project.gemspec. E.g.
|
10
26
|
|
11
|
-
|
27
|
+
```ruby
|
12
28
|
# Gemfile
|
13
29
|
gem 'beaker', '~>4.0'
|
14
30
|
gem 'beaker-abs'
|
15
31
|
# project.gemspec
|
16
32
|
s.add_runtime_dependency 'beaker', '~>4.0'
|
17
33
|
s.add_runtime_dependency 'beaker-abs'
|
18
|
-
|
34
|
+
```
|
19
35
|
|
20
36
|
Beaker-abs changes the default beaker (core) behavior of settings the NET::SSH ssh config to 'false' which means do not respect any of the client's ssh_config.
|
21
37
|
If beaker-abs detects that the ssh config will be false (it was not replaced in the option files, in the HOST config etc) it sets it to the value of
|
22
|
-
SSH_CONFIG_FILE or default to 'true'. True means it will automatically check the typical locations (~/.ssh/config, /etc/ssh_config). Respecting the ssh_config is
|
38
|
+
SSH_CONFIG_FILE or default to 'true'. True means it will automatically check the typical locations (~/.ssh/config, /etc/ssh_config). Respecting the ssh_config is
|
23
39
|
useful to specify things like no strict hostkley checking, and also to support the smallstep 'step' command in CI.
|
24
40
|
|
25
|
-
|
26
41
|
## Usage
|
27
42
|
|
28
43
|
Create a beaker host config with `hypervisor: abs`, and pass the data from the
|
@@ -42,7 +57,7 @@ HOSTS:
|
|
42
57
|
|
43
58
|
Run beaker as:
|
44
59
|
|
45
|
-
```
|
60
|
+
```bash
|
46
61
|
env ABS_RESOURCE_HOSTS=<data> beaker --hosts hosts.yaml
|
47
62
|
```
|
48
63
|
|
@@ -52,7 +67,7 @@ This is typically used in a CI scenario, where the jenkins run-me-maybe plugin i
|
|
52
67
|
### Using vmfloaty
|
53
68
|
|
54
69
|
If you do not specify a ABS_RESOURCE_HOSTS and request to provision via the beaker options, beaker-abs will fallback to using
|
55
|
-
your vmfloaty configuration. By default it will look for the service named 'abs'. The name can also be configured via
|
70
|
+
your vmfloaty configuration. By default it will look for the service named 'abs'. The name can also be configured via
|
56
71
|
the environment variable ABS_SERVICE_NAME or the top level option in the hosts file abs_service_name. Similarly, the priority defaults to "1" which means
|
57
72
|
it will take precedence over CI tests. Be careful not to run a CI test with this option. The priority can be configured via
|
58
73
|
the environment variable ABS_SERVICE_PRIORITY or the top level option in the hosts file abs_service_priority.
|
@@ -60,12 +75,14 @@ the environment variable ABS_SERVICE_PRIORITY or the top level option in the hos
|
|
60
75
|
#### Examples
|
61
76
|
|
62
77
|
Changing from default priority 1 to 3 via env var
|
63
|
-
|
78
|
+
|
79
|
+
```bash
|
64
80
|
ABS_SERVICE_PRIORITY=3 bundle exec beaker --provision --hosts=hosts.cfg --tests acceptance/tests
|
65
81
|
```
|
66
82
|
|
67
83
|
Changing the service name to look for in ~/.vmfloaty.yml via a beaker option file
|
68
|
-
|
84
|
+
|
85
|
+
```bash
|
69
86
|
$ cat options.rb
|
70
87
|
{
|
71
88
|
provision: 'true',
|
@@ -75,31 +92,26 @@ $ bundle exec beaker --hosts=hosts.cfg --tests acceptance/tests --options option
|
|
75
92
|
```
|
76
93
|
|
77
94
|
## Environment vars
|
95
|
+
|
78
96
|
| Var | Description | Default |
|
79
97
|
| ----------- | ----------- | ------ |
|
80
98
|
| ABS_SERVICE_NAME | When using locally via vmfloaty, the --service to use | abs |
|
81
99
|
| ABS_SERVICE_PRIORITY | When using locally via vmfloaty, the priority to use | 1 |
|
82
100
|
| SSH_CONFIG_FILE | If beaker-abs detects the beaker default of 'false', you can specify a file location for the ssh_config. True means it will automatically check the typical locations (~/.ssh/config, /etc/ssh_config). | true |
|
83
101
|
|
84
|
-
##
|
85
|
-
|
86
|
-
After checking out the repo, run `bundle install --path .bundle` to install dependencies. Then, run `bundle exec rake test` to run the tests.
|
102
|
+
## Releasing
|
87
103
|
|
88
|
-
|
89
|
-
(infrastructure access is required) and provide the following parameters:
|
104
|
+
Open a release prep PR and run the release action:
|
90
105
|
|
91
|
-
-
|
92
|
-
-
|
93
|
-
|
94
|
-
|
95
|
-
GitHub, and optionally push the `.gem` file to [rubygems.org](https://rubygems.org).
|
106
|
+
1. Bump the "version" parameter in `lib/beaker-abs/version.rb` appropriately based merged pull requests since the last release.
|
107
|
+
2. Run `./release-prep` to update `Gemfile.lock` and `CHANGELOG.md`.
|
108
|
+
3. Commit and push changes to a new branch, then open a pull request against `main` and be sure to add the "maintenance" label.
|
109
|
+
4. After the pull request is approved and merged, then navigate to Actions --> Release Action --> run workflow --> Branch: main --> Run workflow.
|
96
110
|
|
97
111
|
## Contributing
|
98
112
|
|
99
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/puppetlabs/beaker-abs
|
100
|
-
|
113
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/puppetlabs/beaker-abs>.
|
101
114
|
|
102
115
|
## License
|
103
116
|
|
104
117
|
The gem is available as open source under the terms of the [Apache-2.0 License](https://opensource.org/licenses/Apache-2.0).
|
105
|
-
|
data/beaker-abs.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "beaker", "
|
21
|
+
spec.add_dependency "beaker", ">= 5.0", "< 7"
|
22
22
|
spec.add_dependency "vmfloaty", ">= 1.0", "< 2"
|
23
23
|
# accept more keys, for smallstep integration
|
24
24
|
spec.add_dependency 'ed25519', ">= 1.2", "< 2.0"
|
data/lib/beaker-abs/version.rb
CHANGED
data/release-prep
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# bundle install
|
4
|
+
docker run -t --rm \
|
5
|
+
-v $(pwd):/app \
|
6
|
+
ruby:3.2-slim-bullseye \
|
7
|
+
/bin/bash -c 'apt-get update -qq && apt-get install -y --no-install-recommends build-essential git make && cd /app && gem install bundler && bundle install --jobs 3; echo "LOCK_FILE_UPDATE_EXIT_CODE=$?"'
|
8
|
+
|
9
|
+
# Update Changelog
|
10
|
+
docker run -t --rm -e CHANGELOG_GITHUB_TOKEN -v $(pwd):/usr/local/src/your-app \
|
11
|
+
githubchangeloggenerator/github-changelog-generator:1.16.2 \
|
12
|
+
github_changelog_generator --future-release $(grep STRING lib/beaker-abs/version.rb |rev |cut -d "'" -f2 |rev)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-abs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Cooper
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '5.0'
|
21
|
+
- - "<"
|
19
22
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
23
|
+
version: '7'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '5.0'
|
31
|
+
- - "<"
|
26
32
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
33
|
+
version: '7'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: vmfloaty
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,8 +143,15 @@ extensions: []
|
|
137
143
|
extra_rdoc_files: []
|
138
144
|
files:
|
139
145
|
- ".github/dependabot.yml"
|
146
|
+
- ".github/workflows/auto_release_prep.yml"
|
147
|
+
- ".github/workflows/dependabot_merge.yml"
|
148
|
+
- ".github/workflows/ensure_label.yml"
|
149
|
+
- ".github/workflows/release.yml"
|
150
|
+
- ".github/workflows/security.yml"
|
151
|
+
- ".github/workflows/testing.yml"
|
152
|
+
- ".github_changelog_generator"
|
140
153
|
- ".gitignore"
|
141
|
-
-
|
154
|
+
- CHANGELOG.md
|
142
155
|
- CODEOWNERS
|
143
156
|
- Gemfile
|
144
157
|
- HISTORY.md
|
@@ -149,6 +162,7 @@ files:
|
|
149
162
|
- lib/beaker-abs.rb
|
150
163
|
- lib/beaker-abs/version.rb
|
151
164
|
- lib/beaker/hypervisor/abs.rb
|
165
|
+
- release-prep
|
152
166
|
homepage: https://github.com/puppetlabs/beaker-abs
|
153
167
|
licenses:
|
154
168
|
- Apache-2.0
|
@@ -168,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
182
|
- !ruby/object:Gem::Version
|
169
183
|
version: '0'
|
170
184
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
185
|
+
rubygems_version: 3.3.27
|
172
186
|
signing_key:
|
173
187
|
specification_version: 4
|
174
188
|
summary: Let's test Puppet, using hosts provisioned by Always Be Scheduling service.
|