Bug 535136 (RHQ-1863) - test resource permission: Measure
Summary: test resource permission: Measure
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1863
Product: RHQ Project
Classification: Other
Component: No Component
Version: unspecified
Hardware: All
OS: All
high
medium
Target Milestone: ---
: ---
Assignee: Simeon Pinder
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: RHQ-1848
TreeView+ depends on / blocked
 
Reported: 2009-03-26 17:33 UTC by John Mazzitelli
Modified: 2009-11-10 21:22 UTC (History)
0 users

Fixed In Version: 1.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2009-03-26 17:33:00 UTC

Comment 1 John Mazzitelli 2009-03-26 17:46:00 UTC
Test that the  measurement permission works. I think the only thing this gives you permission to do is to change the collection intervals for metric schedules. Someone correct me if I'm wrong. Who ever is assigned to this needs to check the code to make sure I'm right.

Comment 2 Simeon Pinder 2009-04-08 17:56:09 UTC
1) Created 'Everything' group including all discovered resources(See parent issue for details).
2) Create two additional user accounts i) u:none with no role perms and member of everything group. ii)u:measure w/ 'measure' perms and member of 'Everything'
3) Logged into the app from three separate browsers(FFx2 & IE) with three separate accounts

Following results obtained while viewing/testing " Logged in-> Resources -> Platforms->[Select One] -> Click on [Free Memory].  At the bottom of the page focus on modifying one of the properties under 'Metric Baseline & Expected Range ':

#u:none - details shown but NO 'Change Value' link is available.
#u:measure - details shown and ABLE to edit/change the 'High Range' and successfully persist to JON inventory.
#u:rhqadmin - details shown and ABLE to edit/change the 'High Range' and successfully persist to JON inventory.

Also checked to see if the edit url could be accessed from the user 'none', but errored out and doesn't appear to be enough context from url anyway.
Ex. Use http://127.0.0.1:7080/resource/common/monitor/visibility/ViewChart.do

The 'none' user could NOT see the edit page link correctly.

SUMMARY:  working as expected. 

Comment 3 Simeon Pinder 2009-04-14 07:16:50 UTC
Added one more level of restricted visibility group testing due to changes in group authorization mechanism. See parent issue for more detailed description.

In addition to above, also created:
i) Recursive group that included the Platform only.
ii) Role that included group from first step and only 'measure' perms selected.
ii) User attached to role.

Works as expected.

Comment 4 Simeon Pinder 2009-04-14 07:17:30 UTC
Nothing additional to report.

Comment 5 Red Hat Bugzilla 2009-11-10 20:48:21 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1863



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