Description of problem: When trying to update a TestRun's build I see the following traceback: >>> TestRun.update(6757, {'build': 1398 }) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "nitrate.py", line 120, in request_with_cookies return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response return u.close() File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault 1: 'ValueError: Field "product" is required by build or product_version'> Product is a foreign key of the build, there is no product id in the TestRun itself, so requiring product id does not make sense. Please remove this limitation as it causes unnecesary build data fetching. Version-Release number of selected component (if applicable): 3.5.0
Fixed in tcms 3.8.0, please verify after release. Product id was not required when use TestRun.update() method update build.
Verify 3.8.0-1 on stage -->PASS Verify steps: 1.test TestRun.update() method update build. such as, $ n.TestRun.update(6757, {'build': 1398 }) Actual result: works well.