X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Fplcsh_stress_test.py;h=4a768749011acc8f4223cbe66ea3ebab785e0008;hb=a3050922573f1c5ce0275d36bf08f09b7a451f42;hp=5f696d95aa5a638042362dbb68fb199a0160f639;hpb=ec7169f3d622c2cfeb84d5ccbe108d1eab0b7c0d;p=tests.git diff --git a/system/plcsh_stress_test.py b/system/plcsh_stress_test.py index 5f696d9..4a76874 100755 --- a/system/plcsh_stress_test.py +++ b/system/plcsh_stress_test.py @@ -1084,8 +1084,7 @@ class Test: raise Exception, "Unexpected field %s in node after GetNodes()"%field assert set(nodegroup_ids) == set(node['nodegroup_ids']) - print 'WARNING: skipping updatenode with tags as this is not implemented yet' - # again when fetching 'arch' explicitly + # again but we are now fetching 'arch' explicitly node2 = self.api.GetNodes([node_id],node_fields.keys())[0] for field in node_fields: if node2[field] != node_fields[field]: @@ -1102,7 +1101,7 @@ class Test: for node_id in self.node_ids: # Remove from node groups node = self.api.GetNodes([node_id])[0] - for node_tag in GetNodeTags ( {'node_id': node_id} ): + for node_tag in self.api.GetNodeTags ( {'node_id': node_id} ): self.api.UpdateNodeTag(node_tag['node_tag_id'],'') if self.check: @@ -1175,7 +1174,7 @@ class Test: type = random.sample(network_types, 1)[0] # Update interface - interface_fields = random_interface(method, type) + interface_fields = random_interface(method, type,self.namelengths) self.api.UpdateInterface(interface_id, interface_fields) if self.check: