File: bridge_spec.rb

package info (click to toggle)
ruby-specinfra 2.94.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,448 kB
  • sloc: ruby: 10,538; sh: 4; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

property[:os] = nil
set :os, :family => 'linux'

describe get_command(:check_bridge_exists, 'br0') do
  it { should eq "ip link show br0" }
end

describe get_command(:check_bridge_has_interface, 'br0', 'eth0') do
  it { should eq "brctl show br0 | grep -o eth0" }
end