Sha256: 2b74eff2ea4e61bfd3ced07d894220d11cc702672610c413ea9ede83eee44569
Contents?: true
Size: 818 Bytes
Versions: 32
Compression:
Stored size: 818 Bytes
Contents
require 'bosh/stemcell/disk_image' def wrap_server_spec_example(example) if ENV['STEMCELL_IMAGE'] Bosh::Stemcell::DiskImage.new(image_file_path: ENV['STEMCELL_IMAGE']).while_mounted do |disk_image| Serverspec::Backend::Exec.instance.chroot_dir = disk_image.image_mount_point example.run end else example.run end end RSpec.configure do |config| config.before(:all, example_group: { file_path: /spec\/stemcells/ }) do pending 'ENV["STEMCELL_IMAGE"] must be set to test Stemcells' unless ENV['STEMCELL_IMAGE'] end config.around(example_group: { file_path: /spec\/stemcells/ }) do |example| wrap_server_spec_example(example) end config.around(example_group: { file_path: /support\/stemcell_shared_example/ }) do |example| wrap_server_spec_example(example) end end
Version data entries
32 entries across 32 versions & 1 rubygems