Sha256: ac6d4ba971399dbac886f53ad2764523390f34759a5094d38653e67df07232e1
Contents?: true
Size: 1.26 KB
Versions: 9
Compression:
Stored size: 1.26 KB
Contents
Before do @aruba_timeout_seconds = 10 end Given /^the following virtual machines?:$/ do |vm_table| format = "%-40s%-13s%-16s%s" all_vm = %w[UUID] vm_table.hashes.each do |vm| name, uuid, status = vm["name"], vm["uuid"], vm["status"] all_vm << vm['uuid'] steps %Q{ Given I double `prlctl list --info "#{name}"` with stdout: """ ID: #{uuid} Name: #{name} State: #{status} """ And I double `prlctl list --info #{uuid}` with stdout: """ ID: #{uuid} Name: #{name} State: running """ And I double `prlctl stop #{uuid}` with stdout: """ Stopping the VM... The VM has been successfully stopped. """ And I double `prlctl backup #{uuid}` with stdout: """ Backing up the VM #{name} The virtual machine has been successfully backed up with backup id {d51e6df1-83e9-46e2-aef1-3807d721c1be}. """ And I double `prlctl start #{uuid}` with stdout: """ Starting the VM... The VM has been successfully started. """ } end all_vm = all_vm.join("\n") steps %Q{ Given I double `prlctl list --all --output uuid` with stdout: """ #{all_vm} """ } end
Version data entries
9 entries across 9 versions & 1 rubygems