ruby-lxc/test/test_lxc_class_methods.rb
Jakub Skokan 60e87d45c8 Remove LXC.arch_to_personality
It depended on a function from liblxc, which is no longer exported due
to 63c2a0bf06

Signed-off-by: Jakub Skokan <jakub.skokan@havefun.cz>
2020-10-15 20:42:42 +02:00

21 lines
485 B
Ruby

$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
require 'test/unit'
require 'lxc'
require 'timeout'
class TestLXCClassMethods < Test::Unit::TestCase
def setup
if Process::Sys::geteuid != 0
raise 'This test must be ran as root'
end
@name = 'test'
@container = LXC::Container.new(@name)
@container.create('ubuntu') unless @container.defined?
end
def test_list_containers
assert(LXC.list_containers.include?('test'))
end
end