Bug 806110

Summary: RFE: Add more examples of creating and managing users and roles through CLI scripts
Product: [JBoss] JBoss Operations Network Reporter: Deon Ballard <dlackey>
Component: DocumentationAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: medium    
Version: JON 3.0.0CC: dchia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:42:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
automated CLI test for roles
none
automated CLI test for subjects
none
automated CLI test for adding and deleting users none

Description Deon Ballard 2012-03-22 22:17:46 UTC
$SUBJECT for now, details to follow.

Comment 1 Mike Foley 2012-03-23 11:31:15 UTC
1) flagging this BZ for automation by QE by adding NeedsTestCase keyword

2) creating QE ticket under CLI Automation milestone
https://engineering.redhat.com/trac/jon/ticket/77

3) Initial set of proposed tests (by Sunny)

Creating a user and automatically assigning them to a specific role
Creating a role, assigning resource groups, and setting permissions on it
Checking the roles for a specific user
Changing user passwords
Checking current JON sessions

4)  Team:  please add and document additional testcases that you can think of in this area

Comment 2 Mike Foley 2012-03-26 15:57:38 UTC
medium, no target release 

per bz triage (crouch, mfoley, asantos, loleary)

Comment 3 Mike Foley 2012-03-27 11:16:20 UTC
initial set of CLI automation for roles and subjects completed.

https://engineering.redhat.com/trac/jon/ticket/77#comment:7

removing "NeedsTestCase" keyword

Comment 4 Mike Foley 2012-03-27 17:24:17 UTC
adding 1 more automated CLI test and attaching to this BZ (for reference ... in case it can be leveraged in the documentation)

Comment 5 Mike Foley 2012-03-27 17:24:56 UTC
Created attachment 573137 [details]
automated CLI test for roles

Comment 6 Mike Foley 2012-03-27 17:25:23 UTC
Created attachment 573138 [details]
automated CLI test for subjects

Comment 7 Mike Foley 2012-03-27 17:25:53 UTC
Created attachment 573139 [details]
automated CLI test for adding and deleting users

Comment 8 Deon Ballard 2012-06-26 01:34:33 UTC
Added user and role examples here:
http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/admin.html

This has creating a role, creating a user, and adding a user to a role. I took that from Mike (thanks, Mike!). I couldn't find out how to do password changes or how to manage sessions, so I'm going to ignore that for now and revisit it later.