| Summary: | XMLRPC: Product should not be required when updated TestRun's build | ||
|---|---|---|---|
| Product: | [Other] TCMS | Reporter: | Petr Šplíchal <psplicha> |
| Component: | Application | Assignee: | Yang Ren <ryang> |
| Status: | VERIFIED --- | QA Contact: | Nobody <nobody> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.5 | CC: | junzhang, ohudlick, ryang, vchen |
| Target Milestone: | --- | ||
| Target Release: | 3.8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 3.8.0-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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.
|
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