Description of problem: as summary. Version-Release number of selected component (if applicable): v3.8.10-1 on devel server. How reproducible: 100% Steps to Reproduce: 1.invoke n.TestCase.update([293348],{'estimated_time':'22h33m44s'})--->Fault: <Fault 500: ["'int' object has no attribute 'seconds'"]> 2.invoke n.TestCase.update([293348],{'estimated_time':'11d22h33m44s'})--->Fault: <Fault 500: ["'int' object has no attribute 'seconds'"]> 3.invoke n.TestCase.update([293348],{'estimated_time':'11:22:33'})--->Fault: <Fault 400: ["[('estimated_time', u'Enter a valid estimated time. e.g. 12h45m')]"]> Actual results: Expected results: for step 1: system returns 400 error, like: <Fault 400: ["[('estimated_time', u'Enter a valid estimated time. e.g. 11:22:33')]"]> for step 2: system returns 400 error, like: <Fault 400: ["[('estimated_time', u'Enter a valid estimated time. e.g. 11:22:33')]"]> for step 3: system can update the case's estimated_time. Additional info: the document for TestCase.update does not define the format of estimated_time.
this issue also happened when invoke TestCase.filter,like n.TestCase.filter( {'case_id__in': [293346,293347,293348], 'estimated_time': '00:00:00'})--->Fault: <Fault 400: ["invalid literal for int() with base 10: '00:00:00'"]> n.TestCase.filter( {'case_id__in': [293346,293347,293348], 'estimated_time': '22h33m44s'})--->Fault: <Fault 400: ["invalid literal for int() with base 10: '22h33m44s'"]> n.TestCase.filter( {'case_id__in': [293346,293347,293348], 'estimated_time': '11d22h33m44s'})--->Fault: <Fault 400: ["invalid literal for int() with base 10: '11d22h33m44s'"]>
this issue also happened when invoke TestRun.filter
Update is okay now, but the update return format(estiamted_time) is seconds.
verify on devels server with v3.8.10 TestCase.update()---->pass TestCase.filter()---->fail.500 Fault: <Fault 500:["global name 'values' is not defined"]> verify steps are the same as the description.
Invoke n.TestCase.filter({'case_id__in':[293393],'estimated_time__in':['20']}) result:it searched out the cases with the estimated time is 20s
But the document writes:the format of the time is "Time". So need to update the document and ensure the final format.
verify this issue on v3.8.10-1 on devel.---Pass verify steps are same as comments.