X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestPlc.py;h=cd36c0cd40dc45ee4697bb4f1fb3722e2dc66d70;hb=ad834ec7b976049bbd88beb85559dda440eda57c;hp=687e4d70ca0c7537171d7c6ba7e51caaeeddf4e3;hpb=d9a55ada6d0eeb7732863fc50a7564294d57ac70;p=tests.git diff --git a/system/TestPlc.py b/system/TestPlc.py index 687e4d7..cd36c0c 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -185,6 +185,7 @@ class TestPlc: # for inspecting the slice while it runs the first time #'fail', # check slices are turned off properly + 'debug_nodemanager', 'empty_slices', 'ssh_slice_off', 'slice_fs_deleted_ignore', SEP, # check they are properly re-created with the same name 'fill_slices', 'ssh_slice_again', SEP, @@ -198,7 +199,7 @@ class TestPlc: 'delete_leases', 'list_leases', SEP, 'populate', SEP, 'nodestate_show','nodestate_safeboot','nodestate_boot', 'nodestate_upgrade', SEP, - 'nodeflavour_show','nodedistro_f14','nodedistro_f18', SEP, + 'nodedistro_show','nodedistro_f14','nodedistro_f18', SEP, 'nodedistro_f20', 'nodedistro_f21','nodedistro_f22', SEP, 'qemu_list_all', 'qemu_list_mine', 'qemu_kill_all', SEP, 'sfa_install_core', 'sfa_install_sfatables', 'sfa_install_plc', 'sfa_install_client', SEPSFA, @@ -206,7 +207,7 @@ class TestPlc: 'sfa_get_expires', SEPSFA, 'plc_db_dump' , 'plc_db_restore', SEP, 'check_netflow','check_drl', SEP, - 'debug_nodemanager', 'slice_fs_present', SEP, + 'slice_fs_present', SEP, 'standby_1_through_20','yes','no',SEP, 'install_syslinux6', 'bonding_builds', 'bonding_nodes', SEP, ] @@ -342,7 +343,9 @@ class TestPlc: def yum_install(self, rpms): if isinstance(rpms, list): rpms=" ".join(rpms) - self.run_in_guest("yum -y install {}".format(rpms)) + yum_mode = self.run_in_guest("yum -y install {}".format(rpms)) + if yum_mode != 0: + self.run_in_guest("dnf -y install --allowerasing {}".format(rpms)) # yum-complete-transaction comes with yum-utils, that is in vtest.pkgs self.run_in_guest("yum-complete-transaction -y") return self.yum_check_installed(rpms) @@ -773,7 +776,7 @@ class TestPlc: "run plc-config-tty" tmpname = '{}.plc-config-tty'.format(self.name()) with open(tmpname,'w') as fileconf: - for (var,value) in self.plc_spec['settings'].items(): + for var, value in self.plc_spec['settings'].items(): fileconf.write('e {}\n{}\n'.format(var, value)) fileconf.write('w\n') fileconf.write('q\n') @@ -1216,7 +1219,7 @@ class TestPlc: @node_mapper def nodedistro_f22(self): pass @node_mapper - def nodeflavour_show(self): pass + def nodedistro_show(self): pass ### check hooks : invoke scripts from hooks/{node,slice} def check_hooks_node(self): @@ -1653,7 +1656,7 @@ class TestPlc: "run sfa-config-tty" tmpname = self.conffile("sfa-config-tty") with open(tmpname,'w') as fileconf: - for (var,value) in self.plc_spec['sfa']['settings'].items(): + for var, value in self.plc_spec['sfa']['settings'].items(): fileconf.write('e {}\n{}\n'.format(var, value)) fileconf.write('w\n') fileconf.write('R\n')