Bug 831540 - XMLRPC: TestRun.update() ignores the errata_id field [NEEDINFO]
Summary: XMLRPC: TestRun.update() ignores the errata_id field
Keywords:
Status: VERIFIED
Alias: None
Product: TCMS
Classification: Other
Component: Application
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.8.0
Assignee: Yang Ren
QA Contact: Nobody
URL:
Whiteboard:
: 841757 (view as bug list)
Depends On:
Blocks: 829348
TreeView+ depends on / blocked
 
Reported: 2012-06-13 09:27 UTC by Petr Šplíchal
Modified: 2022-03-14 03:25 UTC (History)
4 users (show)

Fixed In Version: 3.8.0-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
psplicha: needinfo? (jianchen)


Attachments (Terms of Use)
Patch fixing the typo (964 bytes, patch)
2012-06-13 09:28 UTC, Petr Šplíchal
no flags Details | Diff

Description Petr Šplíchal 2012-06-13 09:27:05 UTC
Description of problem:

Update the errata field using TestRun.update() has no effect. This
is caused by a copy-and-paste typo in the update() code.

Actual results:

> [INFO] Updating test run TR#6757
> [DEBUG] {'build': 111,
>  'default_tester': 2117,
>  'errata_id': 111,   <------------------------------------
>  'estimated_time': '00:00:00',
>  'manager': 2117,
>  'notes': 'Testing notes',
>  'product': 61,
>  'status': 1,
>  'summary': 'Tessst Run One'}
> [INFO] Fetching test run TR#6757
> [DEBUG] Initializing test run TR#6757
> [DEBUG] {'build': 'RHEL5.3-Server-20081211.0 : x86_64',
>  'build_id': 111,
>  'case_run_status': '2:2,3:1,6:1,8:1',
>  'cc': [],
>  'default_tester': 'psplicha',
>  'default_tester_id': 2117,
>  'env_value': [],
>  'environment_id': 0,
>  'errata_id': None,   <-----------------------------------
>  'estimated_time': '00:00:00',
>  'manager': 'psplicha',
>  'manager_id': 2117,
>  'notes': 'Testing notes',
>  'plan': 'Tessst plan',
>  'plan_id': 289,
>  'plan_text_version': 1,
>  'product_version': '5.7',
>  'run_id': 6757,
>  'start_date': '2009-12-15 16:33:09',
>  'stop_date': '2012-06-13 17:02:07',
>  'summary': 'Tessst Run One',
>  'tag': []}

Comment 1 Petr Šplíchal 2012-06-13 09:28:16 UTC
Created attachment 591415 [details]
Patch fixing the typo

Attaching a simple patch resolving the problem.

Comment 2 jianchen 2012-06-18 02:29:06 UTC
Thanks for point out this typo and attachment the patch.
This typo was fixed in tcms 3.8.0.

(In reply to comment #1)
> Created attachment 591415 [details]
> Patch fixing the typo
> 
> Attaching a simple patch resolving the problem.

Comment 3 Xin Gao 2012-07-26 02:25:29 UTC
Verify 3.8.0-1 on stage -->PASS

Verify steps:
1.test TestRun.update()
such as, TestRun.update([40847], {'errata_id': 12344})


Actual result:
works well now

Comment 4 yawei Li 2012-08-06 02:46:02 UTC
*** Bug 841757 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.