Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str TryFinally body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Script for testing ganeti.utils.nodesetup N/A os N/A tempfile N/A unittest ganeti constants ganeti utils N/A testutils TestEtcHosts N/A N/A testutils GanetiTestCase N/A N/A Test functions modifying /etc/hosts setUp N/A N/A self N/A N/A N/A N/A N/A N/A testutils GanetiTestCase setUp self N/A N/A self tmpname N/A N/A self _CreateTempFile N/A handle N/A open N/A self tmpname w N/A N/A N/A N/A N/A handle write # This is a test file for /etc/hosts
 N/A N/A N/A handle write 127.0.0.1	localhost
 N/A N/A N/A handle write 192.0.2.1 router gw
 N/A N/A N/A N/A handle close N/A N/A N/A os chmod N/A self tmpname 420 N/A testSettingNewIp N/A N/A self N/A N/A N/A N/A N/A utils SetEtcHostsEntry N/A self tmpname 198.51.100.4 myhost.example.com N/A myhost N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost
192.0.2.1 router gw
198.51.100.4	myhost.example.com myhost
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testSettingExistingIp N/A N/A self N/A N/A N/A N/A N/A utils SetEtcHostsEntry N/A self tmpname 192.0.2.1 myhost.example.com N/A myhost N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost
192.0.2.1	myhost.example.com myhost
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testSettingDuplicateName N/A N/A self N/A N/A N/A N/A N/A utils SetEtcHostsEntry N/A self tmpname 198.51.100.4 myhost N/A myhost N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost
192.0.2.1 router gw
198.51.100.4	myhost
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testSettingOrdering N/A N/A self N/A N/A N/A N/A N/A utils SetEtcHostsEntry N/A self tmpname 127.0.0.1 localhost.localdomain N/A localhost N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost.localdomain localhost
192.0.2.1 router gw
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testRemovingExistingHost N/A N/A self N/A N/A N/A N/A N/A utils RemoveEtcHostsEntry N/A self tmpname router N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost
192.0.2.1 gw
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testRemovingSingleExistingHost N/A N/A self N/A N/A N/A N/A N/A utils RemoveEtcHostsEntry N/A self tmpname localhost N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
192.0.2.1 router gw
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testRemovingNonExistingHost N/A N/A self N/A N/A N/A N/A N/A utils RemoveEtcHostsEntry N/A self tmpname myhost N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost
192.0.2.1 router gw
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A testRemovingAlias N/A N/A self N/A N/A N/A N/A N/A utils RemoveEtcHostsEntry N/A self tmpname gw N/A N/A N/A self assertFileContent N/A self tmpname # This is a test file for /etc/hosts
127.0.0.1	localhost
192.0.2.1 router
 N/A N/A N/A self assertFileMode N/A self tmpname 420 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A testutils GanetiTestProgram