Skip to content

Commit cd5b418

Browse files
author
git
committed
Merge branch 'main' of github.com:cloudfoundry/bosh into HEAD
2 parents f41253b + afa224e commit cd5b418

Some content is hidden

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

57 files changed

+14
-1160
lines changed

.github/workflows/ruby.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
- common:parallel
1111
- monitor:parallel
1212
- nats_sync:parallel
13-
- template:parallel
1413
- release
1514
steps:
1615
- uses: actions/checkout@v4

ci/pipeline.yml

-23
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ groups:
99
- unit-common
1010
- unit-monitor
1111
- unit-nats-sync
12-
- unit-template
1312
- unit-release
1413
- unit-director-sqlite
1514
- unit-director-mysql-8
@@ -66,7 +65,6 @@ jobs:
6665
- unit-common
6766
- unit-monitor
6867
- unit-nats-sync
69-
- unit-template
7068
- unit-release
7169
- unit-director-sqlite
7270
- unit-director-mysql-8
@@ -137,26 +135,6 @@ jobs:
137135
DB: sqlite
138136
RAKE_TASK: spec:unit:nats_sync
139137

140-
- name: unit-template
141-
public: true
142-
serial: true
143-
serial_groups: [unit-template]
144-
build_logs_to_retain: 250
145-
plan:
146-
- in_parallel:
147-
- get: bosh-ci
148-
- get: bosh
149-
trigger: true
150-
passed: [gate]
151-
- get: integration-image
152-
- task: test-rake-task
153-
timeout: 2h
154-
file: bosh-ci/ci/tasks/test-rake-task.yml
155-
image: integration-image
156-
params:
157-
DB: sqlite
158-
RAKE_TASK: spec:unit:template
159-
160138
- name: unit-release
161139
public: true
162140
serial: true
@@ -391,7 +369,6 @@ jobs:
391369
- unit-common
392370
- unit-monitor
393371
- unit-nats-sync
394-
- unit-template
395372
- unit-release
396373
- unit-director-sqlite
397374
- unit-director-mysql-8

ci/tasks/test-rake-task.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ start_db() {
4040

4141
export MYSQL_ROOT=/var/lib/mysql
4242
if [ ! -d /var/lib/mysql-src ]; then # Set up MySQL if it's the first time
43-
mkdir /var/lib/mysql-src
43+
mv "${MYSQL_ROOT}" /var/lib/mysql-src
44+
mkdir -p "${MYSQL_ROOT}"
45+
mount -t tmpfs -o size=512M tmpfs "${MYSQL_ROOT}"
46+
mv /var/lib/mysql-src/* "${MYSQL_ROOT}/"
4447

4548
echo "Copy 'src/spec/assets/sandbox/database/database_server/{private_key,certificate.pem}' to '${MYSQL_ROOT}/'"
4649
cp bosh/src/spec/assets/sandbox/database/database_server/private_key "${MYSQL_ROOT}/server.key"

packages/director/spec

-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ dependencies:
99
files:
1010
- bosh-director/**/*
1111
- bosh_common/**/*
12-
- bosh-template/**/*
1312
- vendor/cache/*.gem
1413
- vendor/cache/extensions/**

scripts/rsync-bbl

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ main() {
3838
do-rsync bosh-director bin
3939
do-rsync bosh-director db
4040
do-rsync bosh-director lib
41-
do-rsync bosh-template bin
42-
do-rsync bosh-template lib
4341

4442
echo "Replacing Director Version to $(version)"
4543

scripts/rsync-vbox

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ main() {
2828
do-rsync bosh-director bin director
2929
do-rsync bosh-director db director
3030
do-rsync bosh-director lib director
31-
do-rsync bosh-template bin director
32-
do-rsync bosh-template lib director
3331
do-rsync bosh-monitor lib health_monitor
3432
do-rsync bosh-monitor bin health_monitor
3533
do-rsync bosh-nats-sync bin nats

src/Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
33
gem 'bosh-director', path: 'bosh-director'
44
gem 'bosh-monitor', path: 'bosh-monitor'
55
gem 'bosh-nats-sync', path: 'bosh-nats-sync'
6-
gem 'bosh-template', path: 'bosh-template'
76
gem 'bosh_common', path: 'bosh_common'
87

98
gem 'mysql2'

src/Gemfile.lock

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PATH
22
remote: bosh-director
33
specs:
44
bosh-director (0.0.0)
5+
activesupport
56
bcrypt
6-
bosh-template (~> 0.0.0)
77
bosh_common (~> 0.0.0)
88
bosh_cpi
99
cf-uaa-lib
@@ -57,14 +57,6 @@ PATH
5757
openssl
5858
rufus-scheduler
5959

60-
PATH
61-
remote: bosh-template
62-
specs:
63-
bosh-template (0.0.0)
64-
activesupport
65-
openssl
66-
ostruct
67-
6860
PATH
6961
remote: bosh_common
7062
specs:
@@ -346,7 +338,6 @@ DEPENDENCIES
346338
bosh-director!
347339
bosh-monitor!
348340
bosh-nats-sync!
349-
bosh-template!
350341
bosh_common!
351342
bundle-audit
352343
factory_bot
File renamed without changes.

src/bosh-director/bosh-director.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ Gem::Specification.new do |spec|
2828
'bosh-director-sync-dns',
2929
'bosh-director-trigger-one-time-sync-dns',
3030
'bosh-director-worker',
31+
'bosh-template',
3132
]
3233
spec.require_paths = ['lib']
3334

3435
spec.add_dependency 'bosh_common', "~>#{Bosh::Director::VERSION}"
35-
spec.add_dependency 'bosh-template', "~>#{Bosh::Director::VERSION}"
3636

37+
spec.add_dependency 'activesupport'
3738
spec.add_dependency 'bcrypt'
3839
spec.add_dependency 'bosh_cpi'
3940
spec.add_dependency 'cf-uaa-lib'
File renamed without changes.

src/bosh-template/spec/assets/template-test-release/src/Gemfile src/bosh-director/spec/assets/template-test-release/src/Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ gem 'rake'
66
gem 'bundler'
77

88
group :development, :test do
9-
gem 'bosh-template', path: '../../../..'
109
gem 'rspec'
1110
end

src/bosh-template/spec/integration/bin_spec.rb src/bosh-director/spec/integration/bin/bosh-template_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
describe 'bin/bosh-template' do
55
subject(:bin_file) do
6-
File.expand_path('../../bin/bosh-template', File.dirname(__FILE__))
6+
File.expand_path('../../../bin/bosh-template', File.dirname(__FILE__))
77
end
88

99
let(:template) do
@@ -18,7 +18,6 @@
1818
asset_content('nats.json')
1919
end
2020

21-
2221
it 'correctly renders a realistic nats config template' do
2322
output = run("#{bin_file} #{template} --context '#{context}'")
2423

src/bosh-director/spec/spec_helper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
require 'pg'
1111
require 'tempfile'
1212
require 'tmpdir'
13+
require 'yaml'
1314
require 'zlib'
1415

1516
require 'db_migrator'
1617
require 'bosh/director'
18+
require 'bosh/template'
19+
20+
require 'common/deep_copy'
1721

1822
require 'webmock/rspec'
1923

src/bosh-template/.gitignore

-1
This file was deleted.

src/bosh-template/README.md

-41
This file was deleted.

src/bosh-template/bosh-template.gemspec

-31
This file was deleted.

src/bosh-template/spec/gemspec_spec.rb

-15
This file was deleted.

src/bosh-template/spec/spec_helper.rb

-21
This file was deleted.

0 commit comments

Comments
 (0)