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.
Files changed (39) hide show
  1. data/lib/bosh/stemcell/version.rb +1 -1
  2. metadata +6 -75
  3. data/.rspec +0 -3
  4. data/Berksfile +0 -3
  5. data/Berksfile.lock +0 -28
  6. data/Vagrantfile +0 -50
  7. data/bosh-stemcell.gemspec +0 -28
  8. data/spec/assets/fake-stemcell-aws.tgz +0 -0
  9. data/spec/assets/fake-stemcell-vsphere.tgz +0 -0
  10. data/spec/assets/light-fake-stemcell-aws.tgz +0 -0
  11. data/spec/bosh/monkeypatch/serverspec/backend/exec_spec.rb +0 -46
  12. data/spec/bosh/stemcell/archive_filename_spec.rb +0 -56
  13. data/spec/bosh/stemcell/archive_spec.rb +0 -123
  14. data/spec/bosh/stemcell/aws/ami_spec.rb +0 -30
  15. data/spec/bosh/stemcell/aws/light_stemcell_spec.rb +0 -94
  16. data/spec/bosh/stemcell/aws/region_spec.rb +0 -12
  17. data/spec/bosh/stemcell/builder_command_spec.rb +0 -273
  18. data/spec/bosh/stemcell/builder_options_spec.rb +0 -216
  19. data/spec/bosh/stemcell/disk_image_spec.rb +0 -163
  20. data/spec/bosh/stemcell/infrastructure_spec.rb +0 -66
  21. data/spec/bosh/stemcell/operating_system_spec.rb +0 -47
  22. data/spec/bosh/stemcell/stage_collection_spec.rb +0 -279
  23. data/spec/bosh/stemcell/stage_runner_spec.rb +0 -141
  24. data/spec/bosh/stemcell/version_spec.rb +0 -12
  25. data/spec/bosh/stemcell_spec.rb +0 -6
  26. data/spec/spec_helper.rb +0 -6
  27. data/spec/stemcells/aws_spec.rb +0 -9
  28. data/spec/stemcells/centos_spec.rb +0 -146
  29. data/spec/stemcells/go_agent_spec.rb +0 -10
  30. data/spec/stemcells/openstack_spec.rb +0 -9
  31. data/spec/stemcells/ruby_agent_spec.rb +0 -27
  32. data/spec/stemcells/ubuntu_spec.rb +0 -165
  33. data/spec/stemcells/vsphere_spec.rb +0 -9
  34. data/spec/support/rspec_fire.rb +0 -9
  35. data/spec/support/serverspec.rb +0 -4
  36. data/spec/support/spec_assets.rb +0 -11
  37. data/spec/support/stemcell_image.rb +0 -26
  38. data/spec/support/stemcell_shared_examples.rb +0 -27
  39. data/spec/support/stub_env.rb +0 -5
@@ -1,9 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'vSphere Stemcell' do
4
- context 'installed by system_parameters' do
5
- describe file('/var/vcap/bosh/etc/infrastructure') do
6
- it { should contain('vsphere') }
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require 'rspec/fire'
2
-
3
- RSpec.configure do |config|
4
- config.include(RSpec::Fire)
5
- end
6
-
7
- RSpec::Fire.configure do |config|
8
- config.verify_constant_names = true
9
- end
@@ -1,4 +0,0 @@
1
- require 'monkeypatch/serverspec/backend/exec'
2
-
3
- include Serverspec::Helper::Exec
4
- include Serverspec::Helper::DetectOS
@@ -1,11 +0,0 @@
1
- module Bosh::Stemcell
2
- module SpecAssets
3
- def spec_asset(name)
4
- File.expand_path(File.join('..', 'assets', name), File.dirname(__FILE__))
5
- end
6
- end
7
- end
8
-
9
- RSpec.configure do |config|
10
- config.include(Bosh::Stemcell::SpecAssets)
11
- end
@@ -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
@@ -1,5 +0,0 @@
1
- RSpec.configure do |config|
2
- config.before do
3
- stub_const('ENV', {})
4
- end
5
- end