beaker-abs 0.11.0 → 1.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 +7 -2
- 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 +219 -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 +11 -6
- 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: d93cecbcd15eecf0a2e91a03ee22c650c0a3e99e0dabf4eeb42ec237b5b7e4c3
|
4
|
+
data.tar.gz: 57cffc12ea0a3b228ea3c32077cee07756ad8dfe44dbdd4c61d21bbb7893802e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9625cf00e154313234fc17b791df2279c39d8ee42fa4da402523354d9d361694d26318c861296dcd17bbab2e574045559faea608466d20af360895677ea9d2c5
|
7
|
+
data.tar.gz: 418cf2305cd0aaa582b2acd0447349b01f0d828a5ddd740731464193878276733ef2d756b53c805eb47e323877427d0aa458f9ee16509c3aaffb74b8a3c8fe4f
|
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,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@v3
|
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@v6
|
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@v3
|
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@v3
|
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@v3
|
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,219 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [1.0.0](https://github.com/puppetlabs/beaker-abs/tree/1.0.0) (2023-03-28)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.11.0...1.0.0)
|
6
|
+
|
7
|
+
**Breaking changes:**
|
8
|
+
|
9
|
+
- \(PUP-11786\) Beaker 5 compatibility [\#32](https://github.com/puppetlabs/beaker-abs/pull/32) ([mhashizume](https://github.com/mhashizume))
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- \(RE-15111\) Add Mend Scanning [\#31](https://github.com/puppetlabs/beaker-abs/pull/31) ([yachub](https://github.com/yachub))
|
14
|
+
- \(RE-14811\) Remove DIO as codeowners [\#30](https://github.com/puppetlabs/beaker-abs/pull/30) ([yachub](https://github.com/yachub))
|
15
|
+
- Add RE as codeowners and Migrate to Actions [\#29](https://github.com/puppetlabs/beaker-abs/pull/29) ([yachub](https://github.com/yachub))
|
16
|
+
|
17
|
+
## [0.11.0](https://github.com/puppetlabs/beaker-abs/tree/0.11.0) (2022-08-11)
|
18
|
+
|
19
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.10.1...0.11.0)
|
20
|
+
|
21
|
+
**Merged pull requests:**
|
22
|
+
|
23
|
+
- \(maint\) Remove pry-byebug require [\#28](https://github.com/puppetlabs/beaker-abs/pull/28) ([nmburgan](https://github.com/nmburgan))
|
24
|
+
|
25
|
+
## [0.10.1](https://github.com/puppetlabs/beaker-abs/tree/0.10.1) (2022-04-29)
|
26
|
+
|
27
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.9.0...0.10.1)
|
28
|
+
|
29
|
+
**Implemented enhancements:**
|
30
|
+
|
31
|
+
- \(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))
|
32
|
+
|
33
|
+
**Merged pull requests:**
|
34
|
+
|
35
|
+
- \(maint\) Fix minitest deprecation errors thrown during tests [\#20](https://github.com/puppetlabs/beaker-abs/pull/20) ([sbeaulie](https://github.com/sbeaulie))
|
36
|
+
|
37
|
+
## [0.9.0](https://github.com/puppetlabs/beaker-abs/tree/0.9.0) (2021-07-12)
|
38
|
+
|
39
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.8.1...0.9.0)
|
40
|
+
|
41
|
+
**Merged pull requests:**
|
42
|
+
|
43
|
+
- vmfloaty: Allow 1.x [\#26](https://github.com/puppetlabs/beaker-abs/pull/26) ([bastelfreak](https://github.com/bastelfreak))
|
44
|
+
|
45
|
+
## [0.8.1](https://github.com/puppetlabs/beaker-abs/tree/0.8.1) (2020-12-14)
|
46
|
+
|
47
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.8.0...0.8.1)
|
48
|
+
|
49
|
+
## [0.8.0](https://github.com/puppetlabs/beaker-abs/tree/0.8.0) (2020-12-14)
|
50
|
+
|
51
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.7.0...0.8.0)
|
52
|
+
|
53
|
+
**Merged pull requests:**
|
54
|
+
|
55
|
+
- Add examples to readme for using vmfloaty [\#22](https://github.com/puppetlabs/beaker-abs/pull/22) ([sbeaulie](https://github.com/sbeaulie))
|
56
|
+
- \(maint\) Fix passing service or priority via ENV vars [\#21](https://github.com/puppetlabs/beaker-abs/pull/21) ([sbeaulie](https://github.com/sbeaulie))
|
57
|
+
|
58
|
+
## [0.7.0](https://github.com/puppetlabs/beaker-abs/tree/0.7.0) (2020-12-10)
|
59
|
+
|
60
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.6.0...0.7.0)
|
61
|
+
|
62
|
+
**Merged pull requests:**
|
63
|
+
|
64
|
+
- 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))
|
65
|
+
- 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))
|
66
|
+
- remove unusable connection methods for vmpooler/nspooler [\#13](https://github.com/puppetlabs/beaker-abs/pull/13) ([sbeaulie](https://github.com/sbeaulie))
|
67
|
+
|
68
|
+
## [0.6.0](https://github.com/puppetlabs/beaker-abs/tree/0.6.0) (2020-10-08)
|
69
|
+
|
70
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.5.0...0.6.0)
|
71
|
+
|
72
|
+
**Merged pull requests:**
|
73
|
+
|
74
|
+
- Testing direct gem [\#18](https://github.com/puppetlabs/beaker-abs/pull/18) ([sbeaulie](https://github.com/sbeaulie))
|
75
|
+
- Add Dependabot to keep thins up to date [\#15](https://github.com/puppetlabs/beaker-abs/pull/15) ([genebean](https://github.com/genebean))
|
76
|
+
- \(MAINT\) Add CODEOWNERS file [\#14](https://github.com/puppetlabs/beaker-abs/pull/14) ([mchllweeks](https://github.com/mchllweeks))
|
77
|
+
- \(BKR-1509\) Hypervisor usage instructions for Beaker 4.0 [\#12](https://github.com/puppetlabs/beaker-abs/pull/12) ([Dakta](https://github.com/Dakta))
|
78
|
+
|
79
|
+
## [0.5.0](https://github.com/puppetlabs/beaker-abs/tree/0.5.0) (2018-02-15)
|
80
|
+
|
81
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.4.0...0.5.0)
|
82
|
+
|
83
|
+
**Merged pull requests:**
|
84
|
+
|
85
|
+
- \(BKR-1352\) - Setting the host ip in beaker hosts hash [\#11](https://github.com/puppetlabs/beaker-abs/pull/11) ([sarahethompson](https://github.com/sarahethompson))
|
86
|
+
|
87
|
+
## [0.4.0](https://github.com/puppetlabs/beaker-abs/tree/0.4.0) (2017-12-12)
|
88
|
+
|
89
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.3.0...0.4.0)
|
90
|
+
|
91
|
+
**Merged pull requests:**
|
92
|
+
|
93
|
+
- \(QENG-6081\) Remove beaker dependency [\#10](https://github.com/puppetlabs/beaker-abs/pull/10) ([smcelmurry](https://github.com/smcelmurry))
|
94
|
+
|
95
|
+
## [0.3.0](https://github.com/puppetlabs/beaker-abs/tree/0.3.0) (2017-08-14)
|
96
|
+
|
97
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.2.0...0.3.0)
|
98
|
+
|
99
|
+
**Merged pull requests:**
|
100
|
+
|
101
|
+
- \(BKR-1155\) Override beaker's default ssh connection preference [\#9](https://github.com/puppetlabs/beaker-abs/pull/9) ([rishijavia](https://github.com/rishijavia))
|
102
|
+
|
103
|
+
## [0.2.0](https://github.com/puppetlabs/beaker-abs/tree/0.2.0) (2016-10-24)
|
104
|
+
|
105
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.1.3...0.2.0)
|
106
|
+
|
107
|
+
**Merged pull requests:**
|
108
|
+
|
109
|
+
- \(QENG-4472\) Relax version constraints [\#5](https://github.com/puppetlabs/beaker-abs/pull/5) ([joshcooper](https://github.com/joshcooper))
|
110
|
+
- \(MAINT\) Update Development notes on releasing [\#4](https://github.com/puppetlabs/beaker-abs/pull/4) ([nwolfe](https://github.com/nwolfe))
|
111
|
+
|
112
|
+
## [0.1.3](https://github.com/puppetlabs/beaker-abs/tree/0.1.3) (2016-09-16)
|
113
|
+
|
114
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.1.2...0.1.3)
|
115
|
+
|
116
|
+
**Merged pull requests:**
|
117
|
+
|
118
|
+
- \(maint\) Stop restricting where we can push this gem [\#3](https://github.com/puppetlabs/beaker-abs/pull/3) ([rick](https://github.com/rick))
|
119
|
+
|
120
|
+
## [0.1.2](https://github.com/puppetlabs/beaker-abs/tree/0.1.2) (2016-09-16)
|
121
|
+
|
122
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-abs/compare/0.1.1...0.1.2)
|
123
|
+
|
124
|
+
# qe_beaker-abs_bump_and_tag_master - History
|
125
|
+
## Tags
|
126
|
+
* [LATEST - 14 Aug, 2017 (26840bd3)](#LATEST)
|
127
|
+
* [0.2.0 - 24 Oct, 2016 (44ff3935)](#0.2.0)
|
128
|
+
* [0.1.3 - 16 Sep, 2016 (6f1ced08)](#0.1.3)
|
129
|
+
* [0.1.2 - 16 Sep, 2016 (b914ae60)](#0.1.2)
|
130
|
+
* [0.1.1 - 16 Sep, 2016 (10ee39cf)](#0.1.1)
|
131
|
+
|
132
|
+
## Details
|
133
|
+
### <a name = "LATEST">LATEST - 14 Aug, 2017 (26840bd3)
|
134
|
+
|
135
|
+
* (GEM) update beaker-abs version to 0.3.0 (26840bd3)
|
136
|
+
|
137
|
+
* Merge pull request #9 from rishijavia/BKR-1155-third_attempt (859cb1ec)
|
138
|
+
|
139
|
+
|
140
|
+
```
|
141
|
+
Merge pull request #9 from rishijavia/BKR-1155-third_attempt
|
142
|
+
|
143
|
+
(BKR-1155) Override beaker's default ssh connection preference
|
144
|
+
```
|
145
|
+
* (BKR-1155) Override beaker's default ssh connection preference (8bab8a1c)
|
146
|
+
|
147
|
+
### <a name = "0.2.0">0.2.0 - 24 Oct, 2016 (44ff3935)
|
148
|
+
|
149
|
+
* (HISTORY) update beaker-abs history for gem release 0.2.0 (44ff3935)
|
150
|
+
|
151
|
+
* (GEM) update beaker-abs version to 0.2.0 (4c14d730)
|
152
|
+
|
153
|
+
* Merge pull request #5 from puppetlabs/beaker3-conflict (54001ff7)
|
154
|
+
|
155
|
+
|
156
|
+
```
|
157
|
+
Merge pull request #5 from puppetlabs/beaker3-conflict
|
158
|
+
|
159
|
+
(QENG-4472) Relax version constraints
|
160
|
+
```
|
161
|
+
* (QENG-4472) Relax version constraints (574d1d95)
|
162
|
+
|
163
|
+
|
164
|
+
```
|
165
|
+
(QENG-4472) Relax version constraints
|
166
|
+
|
167
|
+
Previously, we were pessimistically pinned to beaker 2.x, which meant
|
168
|
+
projects could not use both beaker 3 and beaker-abs simultaneously.
|
169
|
+
|
170
|
+
Beaker-abs only requires a version of beaker supporting the custom
|
171
|
+
hypervisor API. Due to a beaker bug, custom hypervisors did not work
|
172
|
+
until beaker 2.9.0 in commit d45e723cd. We also require less than beaker
|
173
|
+
4 to prevent future incompatibilities.
|
174
|
+
```
|
175
|
+
* (MAINT) Update Development notes on releasing (80972ba9)
|
176
|
+
|
177
|
+
* Merge pull request #4 from puppetlabs/update-dev-section-in-readme (9f4acbe1)
|
178
|
+
|
179
|
+
|
180
|
+
```
|
181
|
+
Merge pull request #4 from puppetlabs/update-dev-section-in-readme
|
182
|
+
|
183
|
+
(MAINT) Update Development notes on releasing
|
184
|
+
```
|
185
|
+
### <a name = "0.1.3">0.1.3 - 16 Sep, 2016 (6f1ced08)
|
186
|
+
|
187
|
+
* (HISTORY) update beaker-abs history for gem release 0.1.3 (6f1ced08)
|
188
|
+
|
189
|
+
* (GEM) update beaker-abs version to 0.1.3 (3d6ed7b7)
|
190
|
+
|
191
|
+
* Merge pull request #3 from puppetlabs/drop-gem-publish-restrictions (c0c786a4)
|
192
|
+
|
193
|
+
|
194
|
+
```
|
195
|
+
Merge pull request #3 from puppetlabs/drop-gem-publish-restrictions
|
196
|
+
|
197
|
+
(maint) Stop restricting where we can push this gem
|
198
|
+
```
|
199
|
+
* (maint) Stop restricting where we can push this gem (ba107b81)
|
200
|
+
|
201
|
+
|
202
|
+
```
|
203
|
+
(maint) Stop restricting where we can push this gem
|
204
|
+
|
205
|
+
We want this gem to be public, and this restriction is actually getting
|
206
|
+
in the way on some of our jenkins instances, and not providing any value.
|
207
|
+
```
|
208
|
+
### <a name = "0.1.2">0.1.2 - 16 Sep, 2016 (b914ae60)
|
209
|
+
|
210
|
+
* (HISTORY) update beaker-abs history for gem release 0.1.2 (b914ae60)
|
211
|
+
|
212
|
+
* (GEM) update beaker-abs version to 0.1.2 (b0ee39d0)
|
213
|
+
|
214
|
+
### <a name = "0.1.1">0.1.1 - 16 Sep, 2016 (10ee39cf)
|
215
|
+
|
216
|
+
* Initial release.
|
217
|
+
|
218
|
+
|
219
|
+
\* *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
|
+
[![Gem Version](https://badge.fury.io/rb/beaker-abs.svg)](https://badge.fury.io/rb/beaker-abs)
|
4
|
+
[![Testing](https://github.com/puppetlabs/beaker-abs/actions/workflows/testing.yml/badge.svg)](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"
|
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 -it --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 -it --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: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Cooper
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '5.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '5.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: vmfloaty
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,8 +137,12 @@ extensions: []
|
|
137
137
|
extra_rdoc_files: []
|
138
138
|
files:
|
139
139
|
- ".github/dependabot.yml"
|
140
|
+
- ".github/workflows/release.yml"
|
141
|
+
- ".github/workflows/security.yml"
|
142
|
+
- ".github/workflows/testing.yml"
|
143
|
+
- ".github_changelog_generator"
|
140
144
|
- ".gitignore"
|
141
|
-
-
|
145
|
+
- CHANGELOG.md
|
142
146
|
- CODEOWNERS
|
143
147
|
- Gemfile
|
144
148
|
- HISTORY.md
|
@@ -149,6 +153,7 @@ files:
|
|
149
153
|
- lib/beaker-abs.rb
|
150
154
|
- lib/beaker-abs/version.rb
|
151
155
|
- lib/beaker/hypervisor/abs.rb
|
156
|
+
- release-prep
|
152
157
|
homepage: https://github.com/puppetlabs/beaker-abs
|
153
158
|
licenses:
|
154
159
|
- Apache-2.0
|
@@ -168,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
173
|
- !ruby/object:Gem::Version
|
169
174
|
version: '0'
|
170
175
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
176
|
+
rubygems_version: 3.3.26
|
172
177
|
signing_key:
|
173
178
|
specification_version: 4
|
174
179
|
summary: Let's test Puppet, using hosts provisioned by Always Be Scheduling service.
|