Add Container#running_config_item
This commit is contained in:
parent
4a61f87c51
commit
a453b51005
2 changed files with 36 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue