Add Container#running_config_item

This commit is contained in:
Andre Nathan 2014-01-28 15:08:10 -02:00
parent 4a61f87c51
commit a453b51005
2 changed files with 36 additions and 0 deletions

View file

@ -30,6 +30,11 @@ class TestLXCRunning < Test::Unit::TestCase
assert_equal(:running, @container.state)
end
def test_container_config_item
key = 'lxc.network.0.type'
assert_equal('veth', @container.running_config_item(key))
end
def test_container_interfaces
assert_equal(['eth0', 'lo'], @container.interfaces.sort)
end