QA:Testcase JBoss AS Execute readonly management tasks
From FedoraProject
Contents |
Description
Testing basic management tasks like getting info about deployments
Setup
- Finish Add management user test case
How to test
- Become root
- Start JBoss AS service, type:
systemctl start jboss-as.service - Drop root privileges and become regular user
- Start JBoss AS CLI, type:
jboss-cli - Connect to the local server, type:
connect - Authenticate as a user created in Add management user test case
- Get basic system properties, type:
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) - List available subsystems:
/:read-children-names(child-type=subsystem) - Read interface information, type:
/interface=public:read-resource(include-runtime=true) - Read the IP of the interface the server is bound to, type:
/interface=public:read-attribute(name=resolved-address)
Expected Results
- You should be able to connect and authenticate
- Step 7 should return various properties
- Step 8 should list available subsystems (for current state see below)
- Step 9 should list information about the interface
- Step 10 should return
0.0.0.0as the address we're bound to
Available subsystems
{
"outcome" => "success",
"result" => [
"datasources",
"deployment-scanner",
"ee",
"ejb3",
"infinispan",
"jca",
"jmx",
"jpa",
"logging",
"naming",
"remoting",
"resource-adapters",
"security",
"threads",
"transactions",
"web",
"weld"
]
}