bosh-stemcell 1.5.0.pre.1226 → 1.5.0.pre.1244
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.
- data/lib/bosh/stemcell/version.rb +1 -1
- metadata +6 -75
- data/.rspec +0 -3
- data/Berksfile +0 -3
- data/Berksfile.lock +0 -28
- data/Vagrantfile +0 -50
- data/bosh-stemcell.gemspec +0 -28
- data/spec/assets/fake-stemcell-aws.tgz +0 -0
- data/spec/assets/fake-stemcell-vsphere.tgz +0 -0
- data/spec/assets/light-fake-stemcell-aws.tgz +0 -0
- data/spec/bosh/monkeypatch/serverspec/backend/exec_spec.rb +0 -46
- data/spec/bosh/stemcell/archive_filename_spec.rb +0 -56
- data/spec/bosh/stemcell/archive_spec.rb +0 -123
- data/spec/bosh/stemcell/aws/ami_spec.rb +0 -30
- data/spec/bosh/stemcell/aws/light_stemcell_spec.rb +0 -94
- data/spec/bosh/stemcell/aws/region_spec.rb +0 -12
- data/spec/bosh/stemcell/builder_command_spec.rb +0 -273
- data/spec/bosh/stemcell/builder_options_spec.rb +0 -216
- data/spec/bosh/stemcell/disk_image_spec.rb +0 -163
- data/spec/bosh/stemcell/infrastructure_spec.rb +0 -66
- data/spec/bosh/stemcell/operating_system_spec.rb +0 -47
- data/spec/bosh/stemcell/stage_collection_spec.rb +0 -279
- data/spec/bosh/stemcell/stage_runner_spec.rb +0 -141
- data/spec/bosh/stemcell/version_spec.rb +0 -12
- data/spec/bosh/stemcell_spec.rb +0 -6
- data/spec/spec_helper.rb +0 -6
- data/spec/stemcells/aws_spec.rb +0 -9
- data/spec/stemcells/centos_spec.rb +0 -146
- data/spec/stemcells/go_agent_spec.rb +0 -10
- data/spec/stemcells/openstack_spec.rb +0 -9
- data/spec/stemcells/ruby_agent_spec.rb +0 -27
- data/spec/stemcells/ubuntu_spec.rb +0 -165
- data/spec/stemcells/vsphere_spec.rb +0 -9
- data/spec/support/rspec_fire.rb +0 -9
- data/spec/support/serverspec.rb +0 -4
- data/spec/support/spec_assets.rb +0 -11
- data/spec/support/stemcell_image.rb +0 -26
- data/spec/support/stemcell_shared_examples.rb +0 -27
- data/spec/support/stub_env.rb +0 -5
data/spec/support/rspec_fire.rb
DELETED
data/spec/support/serverspec.rb
DELETED
data/spec/support/spec_assets.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'bosh/stemcell/disk_image'
|
2
|
-
|
3
|
-
def wrap_server_spec_example(example)
|
4
|
-
if ENV['STEMCELL_IMAGE']
|
5
|
-
Bosh::Stemcell::DiskImage.new(image_file_path: ENV['STEMCELL_IMAGE']).while_mounted do |disk_image|
|
6
|
-
Serverspec::Backend::Exec.instance.chroot_dir = disk_image.image_mount_point
|
7
|
-
example.run
|
8
|
-
end
|
9
|
-
else
|
10
|
-
example.run
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
RSpec.configure do |config|
|
15
|
-
config.before(:all, example_group: { file_path: /spec\/stemcells/ }) do
|
16
|
-
pending 'ENV["STEMCELL_IMAGE"] must be set to test Stemcells' unless ENV['STEMCELL_IMAGE']
|
17
|
-
end
|
18
|
-
|
19
|
-
config.around(example_group: { file_path: /spec\/stemcells/ }) do |example|
|
20
|
-
wrap_server_spec_example(example)
|
21
|
-
end
|
22
|
-
|
23
|
-
config.around(example_group: { file_path: /support\/stemcell_shared_example/ }) do |example|
|
24
|
-
wrap_server_spec_example(example)
|
25
|
-
end
|
26
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
shared_examples_for 'a stemcell' do
|
2
|
-
context 'installed by bosh_sudoers' do
|
3
|
-
describe file('/etc/sudoers') do
|
4
|
-
it { should be_file }
|
5
|
-
it { should contain '#includedir /etc/sudoers.d' }
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
# currently `should cotain` on a file does not properly escape $PATH
|
10
|
-
context 'installed by bosh_users' do
|
11
|
-
describe command("grep -q 'export PATH=/var/vcap/bosh/bin:\\$PATH\n' /root/.bashrc") do
|
12
|
-
it { should return_exit_status(0) }
|
13
|
-
end
|
14
|
-
|
15
|
-
describe command("grep -q 'export PATH=/var/vcap/bosh/bin:\\$PATH\n' /home/vcap/.bashrc") do
|
16
|
-
it { should return_exit_status(0) }
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
context 'installed by base_<os>' do
|
21
|
-
|
22
|
-
# required by go_agent
|
23
|
-
describe command('dig -v') do
|
24
|
-
it { should return_exit_status(0) }
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|