Sha256: 36e3f4b4941c0d4c21cf7a5b94bac84a8f5825b2a0c37d1d204d4dc963583ea9
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' require_relative 'shared/auto_network_0x_context' describe 'Working with AutoNetwork 0.x data' do include_context 'auto_network 0.x' before(:each) do env = test_env.create_vagrant_env @test_machine = env.machine(:test1, :dummy) # Legacy pool data is assigned to the VirtualBox provider. Fake our # provider name for this purpose. allow(@test_machine).to receive(:provider_name).and_return(:virtualbox) end it 'upgrades the poolfile format when saving data' do # Running a read/write transaction will cause the poolfile to be # regenerated. settings.pool_manager.with_pool_for(@test_machine, read_only=false){|p| } pool_data = YAML.load_file(pool_file) # Expect that the poolfile has been upgraded to the latest version. expect(pool_data).to include({ 'poolfile_version' => AutoNetwork::PoolStorage::POOLFILE_VERSION }) end # The 0.x context defines one machine with an IP allocated by UUID. it 'releases IP addresses allocated by UUID' do expect(current_ip(@test_machine)).to eq('10.20.1.2') @test_machine.action(:destroy) expect(current_ip(@test_machine)).to be_nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-auto_network-1.0.3 | spec/integration/legacy_spec.rb |
vagrant-auto_network-1.0.2 | spec/integration/legacy_spec.rb |
vagrant-auto_network-1.0.1 | spec/integration/legacy_spec.rb |