tests Package
tests Package
-
opennode.oms.tests.setup_package()[source]
-
opennode.oms.tests.teardown_package()[source]
test_apply_raw_data Module
test_assert_mock Module
test_cmdline Module
test_completion Module
test_compute Module
The Compute schema belongs to the knot plugin, but here we have to repeat it because of old unit tests
-
class opennode.oms.tests.test_compute.Compute(hostname, state, memory=None, template=None, ipv4_address=None)[source]
Bases: opennode.oms.model.model.base.Container
A compute node.
-
architecture = (u'x86_64', u'linux', u'centos')
-
autostart = False
-
consoles
-
cpu_info = u'Intel Xeon 12.2GHz'
-
cpu_limit = 1.0
-
cpu_usage = (0.1, 0.11, 0.14)
-
disk_info = u'Seagate Barracuda SuperSaver 2000TB BuyNow!'
-
diskspace = {u'storage': 1000.0, u'boot': 100.0, u'total': 2000.0, u'root': 500.0}
-
diskspace_usage = {u'boot': 49.3, u'storage': 748.3, u'root': 249.0}
-
display_name()[source]
-
dns_domains = []
-
effective_state
Since we lack schema/data upgrade scripts I have to
resort on this tricks to cope with the fact that I have
existing objects around in the several test dbs, and branches.
-
get_consoles()[source]
-
get_effective_state()[source]
Since we lack schema/data upgrade scripts I have to
resort on this tricks to cope with the fact that I have
existing objects around in the several test dbs, and branches.
-
get_interfaces()[source]
-
get_routes()[source]
-
interfaces
-
ipv4_address[source]
-
ipv6_address = u'::/128'
-
kernel = u'2.6.18-238.9.1.el5.028stab089.1'
-
memory = (2048,)
-
memory_info = u'1333MHz DDR SuperGoodMemory!'
-
memory_usage = 773.2
-
nameservers = []
-
network = 12500000.0
-
network_usage = (5200000.0, 1900000.0)
-
nicknames[source]
Returns all the nicknames of this Compute instance.
Nicknames can be used to traverse to this object using
alternative, potentially more convenient and/more memorable,
names.
-
num_cores = 1
-
os_release = u'build 35'
-
routes
-
set_consoles(value)[source]
-
set_effective_state(value)[source]
-
set_interfaces(value)[source]
-
set_routes(value)[source]
-
startup_timestamp = '2011-07-06 01:23:45'
-
swap_size = 4192
-
templates[source]
-
type = 'unknown'
-
class opennode.oms.tests.test_compute.ComputeTags(context)[source]
Bases: opennode.oms.model.model.search.ModelTags
-
auto_tags()[source]
-
class opennode.oms.tests.test_compute.Computes[source]
Bases: opennode.oms.model.model.base.AddingContainer
-
class opennode.oms.tests.test_compute.ComputesRootInjector(context)[source]
Bases: opennode.oms.model.model.base.ContainerInjector
-
class opennode.oms.tests.test_compute.Machines[source]
Bases: opennode.oms.model.model.base.Container
-
class opennode.oms.tests.test_compute.MachinesRootInjector(context)[source]
Bases: opennode.oms.model.model.base.ContainerInjector
test_get_direct_interfaces Module
test_security Module
test_ssh Module
test_terminal Module
util Module