Bug 740558

Summary: TestPlan.update() ignores the is_active flag
Product: [Other] TCMS Reporter: Petr Šplíchal <psplicha>
Component: ApplicationAssignee: jianchen <jianchen>
Status: CLOSED DUPLICATE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5CC: azelinka, ctang, jianchen, junzhang, llim, nli, ohudlick, ryang, vchen, xchu, yawli
Target Milestone: ---Keywords: Reopened
Target Release: 3.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.8.0-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-31 02:37:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Šplíchal 2011-09-22 13:07:40 UTC
Description of problem:

Updating the 'is_active' using TestPlan.update() does not have any
effect. The value stays the same.

Version-Release number of selected component (if applicable):
Nitrate 3.5.0

Steps to Reproduce:
1. Update the is_active flag
2. Fetch again the same test plan
  
Actual results:
Value not updated.

Comment 1 Petr Šplíchal 2011-09-22 13:10:03 UTC
This is now covered by Nitrate (high-level API) test suite:
https://wiki.test.redhat.com/BaseOs/Projects/PythonNitrate

Test read & write access to the 'active' flag ...
[INFO] Fetching test plan TP#289
[INFO] Contacting server https://tcms-stage.englab.bne.redhat.com/xmlrpc/
[DEBUG] Initializing test plan TP#289
[DEBUG] {'attachment': [],
 'author': 'psplicha',
 'author_id': 2117,
 'case': [12516, 35267, 46490, 51362, 35269],
 'component': [],
 'create_date': '2008-10-22 09:08:38',
 'default_product_version': '6.1',
 'env_group': [],
 'extra_link': '',
 'is_active': True,   <---------------------------------------
 'name': 'Tessst plan',
 'owner': 'psplicha',
 'owner_id': 2117,
 'parent': 'Tessst',
 'parent_id': 1329,
 'plan_id': 289,
 'product': 'Red Hat Enterprise Linux 6',
 'product_id': 60,
 'tag': [973, 1379, 1380, 1381],
 'type': 'Function',
 'type_id': 3}
[INFO] Updating test plan TP#289
[DEBUG] {'default_product_version': 995,
 'is_active': False,   <---------------------------------------
 'name': 'Tessst plan',
 'parent': 1329,
 'product': 60,
 'type': 3}
[INFO] Fetching test plan TP#289
[DEBUG] Initializing test plan TP#289
[DEBUG] {'attachment': [],
 'author': 'psplicha',
 'author_id': 2117,
 'case': [12516, 35267, 46490, 51362, 35269],
 'component': [],
 'create_date': '2008-10-22 09:08:38',
 'default_product_version': '6.1',
 'env_group': [],
 'extra_link': '',
 'is_active': True,   <---------------------------------------
 'name': 'Tessst plan',
 'owner': 'psplicha',
 'owner_id': 2117,
 'parent': 'Tessst',
 'parent_id': 1329,
 'plan_id': 289,
 'product': 'Red Hat Enterprise Linux 6',
 'product_id': 60,
 'tag': [973, 1379, 1380, 1381],
 'type': 'Function',
 'type_id': 3}
FAIL

Comment 2 Petr Šplíchal 2012-01-23 09:06:18 UTC
It's been a couple of months already. Any ETA for fixing this bug?

Comment 3 yawei Li 2012-05-18 03:37:05 UTC
in 3.8.0, will implement it.

Comment 4 jianchen 2012-06-26 06:45:36 UTC
(In reply to comment #2)
> It's been a couple of months already. Any ETA for fixing this bug?

TestPlan.update() is_active accept 0 or 1, 0 --> False and 1 --> True.
TestPlan.update(3551, {'is_active': 1}) is worked in stage server.
I will update xmlrpc's document about this argument.
Thanks.

Comment 5 yawei Li 2012-07-26 07:45:26 UTC
Reopened to trace the document update.

Comment 6 jianchen 2012-07-26 08:33:35 UTC
TestPlan.update() is_active accept True/False now. 
pls verify in stage server after tcms 3.8.0-2 release.

Comment 7 jianchen 2012-07-31 02:37:01 UTC

*** This bug has been marked as a duplicate of bug 841189 ***