| 1 |
All QE tests which test the monitoring support for GlassFish V3 go here. |
| 2 |
These are to be run only with GF v3. |
| 3 |
|
| 4 |
|
| 5 |
Monitoring needs to be enabled on GF v3 using the following command: |
| 6 |
--------------------------------------------------------------------- |
| 7 |
asadmin set configs.config.server-config.monitoring-service.module-monitoring-levels.jersey=HIGH |
| 8 |
|
| 9 |
The values of the attributes being monitored for an application can be retieved through the admin console using the REST interface: |
| 10 |
-------------------------------------------------------------------- |
| 11 |
http://localhost:4848/monitoring/domain/server/applications/helloworld-webapp/jersey/resources |
| 12 |
|
| 13 |
Steps to run: |
| 14 |
============ |
| 15 |
1. mvn clean package -Dmaven.test.skip=true -Djersey.version=<JERSEY_VERSION> - from the monitoring-tests root. |
| 16 |
2. Deploy the test package war files. |
| 17 |
3. Run the tests from the monitoring-tests root as - |
| 18 |
mvn test -Djersey.version=<JERSEY_VERSION> [-DJERSEY_ADMIN_PORT=<GF_ADMIN_PORT>] [-DJERSEY_HTTP_PORT=<GF_HTTP_PORT>] [-DenableLogging] |
| 19 |
|