check-vsys-defaults seems to have the right logic but somehow this will
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 18 Dec 2012 22:33:42 +0000 (23:33 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 18 Dec 2012 22:33:42 +0000 (23:33 +0100)
fail when the slice is created by the test framework so get this out
of the way for now

system/TestPlc.py
system/TestSlice.py

index 1352477..ee16f19 100644 (file)
@@ -94,7 +94,7 @@ class TestPlc:
         'sfi_list@1', 'sfi_show@1', 'sfi_slices@1', 'sfa_utest@1', SEPSFA,
         # we used to run plcsh_stress_test, and then ssh_node_debug and ssh_node_boot
         # but as the stress test might take a while, we sometimes missed the debug mode..
-        'check_vsys_defaults', 'ssh_node_debug@1', 'plcsh_stress_test@1', SEP,
+        'ssh_node_debug@1', 'plcsh_stress_test@1', SEP,
         'ssh_node_boot@1', 'ssh_slice', 'check_initscripts', SEP,
         'ssh_slice_sfa@1', 'sfa_delete_slice@1', 'sfa_delete_user@1', SEPSFA,
         'cross_check_tcp@1', 'check_system_slice', SEP,
index 8cb3aab..eef5ee8 100644 (file)
@@ -68,7 +68,12 @@ class TestSlice:
         vsys_tags = self.test_plc.apiserver.GetSliceTags (auth,{'tagname':'vsys','name':slice_name})
         values=[ st['value'] for st in vsys_tags ]
         expected=self.test_plc.plc_spec['expected_vsys_tags']
-        return set(values) == set(expected)
+        result = set(values) == set(expected)
+        if not result:
+            print 'Check vsys defaults with slice %s'%slice_name
+            print 'Expected %s'%expected
+            print 'Got %s'%values
+        return result
 
     # just add the nodes and handle tags
     def add_nodes (self):