Sha256: 2007411bf8c9c6689b7e0b89f2014522730291f5d2c8d2e39f166f6cba52a840
Contents?: true
Size: 903 Bytes
Versions: 4
Compression:
Stored size: 903 Bytes
Contents
require 'phut' When(/^I do phut run "(.*?)"$/) do |file_name| @config_file = file_name run_opts = "-p #{@pid_dir} -l #{@log_dir} -s #{@socket_dir}" step %(I run `phut -v run #{run_opts} #{@config_file}`) end Then(/^a vswitch named "(.*?)" launches$/) do |name| in_current_dir do pid_file = File.join(File.expand_path(@pid_dir), "open_vswitch.#{name}.pid") step %(a file named "#{pid_file}" should exist) end end Then(/^a vhost named "(.*?)" launches$/) do |name| in_current_dir do pid_file = File.join(File.expand_path(@pid_dir), "vhost.#{name}.pid") step %(a file named "#{pid_file}" should exist) end end Then(/^a link is created between "(.*?)" and "(.*?)"$/) do |name_a, name_b| in_current_dir do link = Phut::Parser.new.parse(@config_file).links.find do |each| each.name_a == name_a && each.name_b == name_b end expect(link).to be_up end end
Version data entries
4 entries across 4 versions & 1 rubygems