Hi All,
I have noticed it in the past and i confirmed it again today that QL
results will look as below when the admin-realm has more than one user.
Contents of admin realm :
$ cat config/admin-keyfile
admin;{SSHA}wz0oozl9f+Uzm7lZaiMB4I21PgdjPeTwiO1bsQ==;asadmin
onemore;{SSHA}nuIx+o33GyjHkj/5Oy7vTRf5HPuhj15NW8jPNA==;asadmin
testng-summary:
[echo] [testng] ===============================================
[echo] [testng] QuickLookTests
[echo] [testng] Total tests run: 110, Failures: 45, Skips: 13
[echo] [testng] Configuration Failures: 1, Skips: 0
[echo] [testng] ===============================================
[echo] [testng]
Is this expected ?. Is this OK ?.
The reason(s) for the error's seems to be
------------------------
[testng] FAILED: createPool
[testng] java.lang.RuntimeException: java.io.IOException: Server
returned HTTP response code: 401 for URL:
http://localhost:4848/__asadmin/add-resources?DEFAULT=c%3A%5Ckumar%5Cworkspaces%5Clatest%5Cv3%5Ctests%5Cquicklook%5Cadmin%5Cresources%5Cresources.xml
[testng] at
test.admin.BaseAsadminTest.invokeURLAndGetManifest(BaseAsadminTest.java:63)
[testng] at
test.admin.JdbcConnectionPoolTests.createPool(JdbcConnectionPoolTests.java:58)
------------------------
[testng]
[testng] FAILED CONFIGURATION: @BeforeTest
loginBeforeTest("
http://localhost:4848/", 8686)
[testng] java.lang.RuntimeException: java.lang.SecurityException:
User [] does not have administration access
[testng] at
test.admin.BaseAdminConsoleTest.setUpEnvironment(BaseAdminConsoleTest.java:82)
[testng] at
test.admin.BaseAdminConsoleTest.loginBeforeTest(BaseAdminConsoleTest.java:98)
[testng] Caused by: java.lang.SecurityException: User [] does not
have administration access
[testng] at
com.sun.enterprise.container.common.GenericAdminAuthenticator.authenticate(GenericAdminAuthenticator.java:292)
[testng] at
org.glassfish.admin.mbeanserver.ConnectorStarter$1.authenticate(ConnectorStarter.java:115)
---------------------
regards,
kumar