Skip to content

Commit 3dbe7f2

Browse files
authored
Merge pull request #545 from cloudfoundry/merge-jammy
Merge jammy Bypassing because EasyCLA is choking on commits already accepted.
2 parents aac6489 + f56d3fa commit 3dbe7f2

130 files changed

Lines changed: 3074 additions & 3274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bundle/config

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
- name: test-bosh-stemcell
1212
run: |
1313
bundle install
14-
bundle exec rspec
14+
bundle exec rake
1515
working-directory: bosh-stemcell/

.github/workflows/sbom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
mv tmp.sarif trivy-results-${n}.sarif
5050
done
5151
52-
- uses: actions/upload-artifact@v4
52+
- uses: actions/upload-artifact@v7
5353
with:
5454
name: sbom
5555
path: sbom.spdx.json

.rubocop.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

Gemfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
source 'https://rubygems.org'
22

3-
group :development, :test do
4-
gem 'bosh-stemcell', path: 'bosh-stemcell'
5-
gem 'fakefs'
6-
gem 'logging'
7-
gem 'rake'
8-
gem 'rspec'
9-
gem 'rspec-instafail'
10-
gem 'rspec-its'
11-
gem 'timecop'
12-
end
3+
gem 'rake'
4+
gem 'bosh-stemcell', path: 'bosh-stemcell'

Gemfile.lock

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ PATH
22
remote: bosh-stemcell
33
specs:
44
bosh-stemcell (0.0.0)
5+
rake
6+
rspec
7+
rspec-its
58

69
GEM
710
remote: https://rubygems.org/
811
specs:
912
diff-lcs (1.6.2)
10-
fakefs (3.2.1)
11-
little-plugger (1.1.4)
12-
logging (2.4.0)
13-
little-plugger (~> 1.1)
14-
multi_json (~> 1.14)
15-
multi_json (1.20.0)
1613
rake (13.3.1)
1714
rspec (3.13.2)
1815
rspec-core (~> 3.13.0)
@@ -23,29 +20,20 @@ GEM
2320
rspec-expectations (3.13.5)
2421
diff-lcs (>= 1.2.0, < 2.0)
2522
rspec-support (~> 3.13.0)
26-
rspec-instafail (1.0.0)
27-
rspec
2823
rspec-its (2.0.0)
2924
rspec-core (>= 3.13.0)
3025
rspec-expectations (>= 3.13.0)
3126
rspec-mocks (3.13.8)
3227
diff-lcs (>= 1.2.0, < 2.0)
3328
rspec-support (~> 3.13.0)
3429
rspec-support (3.13.7)
35-
timecop (0.9.10)
3630

3731
PLATFORMS
3832
ruby
3933

4034
DEPENDENCIES
4135
bosh-stemcell!
42-
fakefs
43-
logging
4436
rake
45-
rspec
46-
rspec-instafail
47-
rspec-its
48-
timecop
4937

5038
BUNDLED WITH
5139
2.5.23

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ container):
137137
```shell
138138
export short_name="noble"
139139
cd /opt/bosh/bosh-stemcell
140+
bundle install
140141
OS_IMAGE=/opt/bosh/tmp/ubuntu_base_image.tgz bundle exec rspec -fd spec/os_image/ubuntu_${short_name}_spec.rb
141142
```
142143

@@ -150,6 +151,7 @@ container, you should be able to run the specific tests:
150151

151152
```shell
152153
cd /opt/bosh/bosh-stemcell; \
154+
bundle install; \
153155
STEMCELL_IMAGE=/mnt/stemcells/vsphere/esxi/ubuntu/work/work/vsphere-esxi-ubuntu.raw \
154156
STEMCELL_WORKDIR=/mnt/stemcells/vsphere/esxi/ubuntu/work/work/chroot \
155157
OS_NAME=ubuntu \
@@ -173,25 +175,19 @@ an ubuntu chroot environment to run. For this reason, we use the
173175
locally, run:
174176

175177
```shell
176-
bundle install --local
177178
cd /opt/bosh/bosh-stemcell
178-
OS_IMAGE=/opt/bosh/tmp/ubuntu_base_image.tgz bundle exec rspec spec/ --tag shellout_types
179-
```
180-
181-
If on macOS, run:
182-
183-
```shell
184-
OSX=true OS_IMAGE=/opt/bosh/tmp/ubuntu_base_image.tgz bundle exec rspec spec/ --tag shellout_types
179+
bundle install
180+
OS_IMAGE=/opt/bosh/tmp/ubuntu_base_image.tgz bundle exec rake spec:shellout_types
185181
```
186182

187183
### How to run tests for BOSH Linux Stemcell Builder
188184

189185
The BOSH Linux Stemcell Builder code itself can be tested with the following command's:
190186

191187
```shell
192-
bundle install --local
193188
cd /opt/bosh/bosh-stemcell
194-
bundle exec rspec spec/
189+
bundle install
190+
bundle exec rake
195191
```
196192

197193
## Troubleshooting

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'json'
2-
require 'logging'
32

43
namespace :stemcell do
54
desc 'Build a base OS image for use in stemcells'

bosh-stemcell/.rubocop.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)