diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-06 17:48:33 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-06 17:48:33 -0600 |
commit | d799d56fc8505261cda099f402eafbc4fe858ca0 (patch) | |
tree | e39fa61b72b058dd176dd30f89730985a0f0b6f7 /tests/spec/simulator_spec.rb | |
parent | 8b7d518575604e628e3823f6bf1b7dd1ee36cc1d (diff) | |
download | horizon-d799d56fc8505261cda099f402eafbc4fe858ca0.tar.gz horizon-d799d56fc8505261cda099f402eafbc4fe858ca0.tar.bz2 horizon-d799d56fc8505261cda099f402eafbc4fe858ca0.tar.xz horizon-d799d56fc8505261cda099f402eafbc4fe858ca0.zip |
tests: Add more LVM behavioural tests
Diffstat (limited to 'tests/spec/simulator_spec.rb')
-rw-r--r-- | tests/spec/simulator_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index e5eeb52..1507428 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -64,6 +64,16 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do run_simulate expect(last_command_started.stdout).to include("lvcreate -l 100%FREE -n root MyVolGroup") end + it "supports percentage sizing" do + use_fixture '0212-lvmlv-size-percent.installfile' + run_simulate + expect(last_command_started.stdout).to include("lvcreate -l 50%VG -n root MyVolGroup") + end + it "supports byte sizing" do + use_fixture '0213-lvmlv-size-bytes.installfile' + run_simulate + expect(last_command_started.stdout).to include("lvcreate -L 104857600B -n root MyVolGroup") + end end context "simulating 'fs' execution" do it "creates ext2 filesystems correctly" do |