[
https://issues.apache.org/jira/browse/NUTCH-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15441035#comment-15441035
]
Lewis John McGibbney commented on NUTCH-2308:
---------------------------------------------
{code}
Testsuite: org.apache.nutch.api.TestNutchAPI
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.269 sec
------------- Standard Output ---------------
2016-08-26 18:06:26,197 INFO security.SecurityUtil
(SecurityUtil.java:constructRealm(89)) - User added: admin
2016-08-26 18:06:26,199 INFO security.SecurityUtil
(SecurityUtil.java:constructRealm(89)) - User added: user
2016-08-26 18:06:26,201 INFO api.NutchServer (NutchServer.java:start(293)) -
Starting NutchServer on port: 8081 with logging level: INFO ...
2016-08-26 18:06:26,234 INFO api.NutchServer (NutchServer.java:start(300)) -
Started NutchServer on port 8081
2016-08-26 18:06:26,543 INFO api.NutchServer (NutchServer.java:stop(345)) -
Stopping NutchServer on port 8081...
2016-08-26 18:06:26,545 INFO api.NutchServer (NutchServer.java:stop(351)) -
Stopped NutchServer on port 8081
2016-08-26 18:06:26,562 INFO api.NutchServer (NutchServer.java:<init>(183)) -
SSL Authentication is set for NutchServer
2016-08-26 18:06:26,566 INFO api.NutchServer (NutchServer.java:start(293)) -
Starting NutchServer on port: 8081 with logging level: INFO ...
2016-08-26 18:06:26,732 INFO api.NutchServer (NutchServer.java:start(300)) -
Started NutchServer on port 8081
2016-08-26 18:06:30,883 INFO api.NutchServer (NutchServer.java:stop(345)) -
Stopping NutchServer on port 8081...
2016-08-26 18:06:30,883 INFO api.NutchServer (NutchServer.java:stop(351)) -
Stopped NutchServer on port 8081
2016-08-26 18:06:30,889 INFO security.SecurityUtil
(SecurityUtil.java:constructRealm(89)) - User added: admin
2016-08-26 18:06:30,889 INFO security.SecurityUtil
(SecurityUtil.java:constructRealm(89)) - User added: user
2016-08-26 18:06:30,890 INFO api.NutchServer (NutchServer.java:start(293)) -
Starting NutchServer on port: 8081 with logging level: INFO ...
2016-08-26 18:06:30,892 INFO api.NutchServer (NutchServer.java:start(300)) -
Started NutchServer on port 8081
2016-08-26 18:06:30,918 INFO api.NutchServer (NutchServer.java:stop(345)) -
Stopping NutchServer on port 8081...
2016-08-26 18:06:30,919 INFO api.NutchServer (NutchServer.java:stop(351)) -
Stopped NutchServer on port 8081
2016-08-26 18:06:30,925 INFO api.NutchServer (NutchServer.java:start(293)) -
Starting NutchServer on port: 8081 with logging level: INFO ...
2016-08-26 18:06:30,927 INFO api.NutchServer (NutchServer.java:start(300)) -
Started NutchServer on port 8081
2016-08-26 18:06:30,935 INFO api.NutchServer (NutchServer.java:stop(345)) -
Stopping NutchServer on port 8081...
2016-08-26 18:06:30,936 INFO api.NutchServer (NutchServer.java:stop(351)) -
Stopped NutchServer on port 8081
------------- ---------------- ---------------
------------- Standard Error -----------------
Starting the internal [HTTP/1.1] server on port 8081
Starting the internal HTTP client
2016-08-26 18:06:26 127.0.0.1 xxx - 8081 GET
/admin - 401 424 0 13 http://localhost:8081
Restlet-Framework/2.2.3 -
2016-08-26 18:06:26 127.0.0.1 xxx - 8081 GET
/admin - 401 424 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
Starting the internal HTTP client
2016-08-26 18:06:26 127.0.0.1 admin - 8081 GET
/admin - 401 424 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
2016-08-26 18:06:26 127.0.0.1 admin - 8081 GET
/admin - 200 - 0 35 http://localhost:8081
Restlet-Framework/2.2.3 -
Starting the internal HTTP client
2016-08-26 18:06:26 127.0.0.1 user - 8081 GET
/admin - 401 424 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
2016-08-26 18:06:26 127.0.0.1 user - 8081 GET
/admin - 403 39 0 3 http://localhost:8081
Restlet-Framework/2.2.3 -
Stopping the internal server
Starting the internal [HTTPS/1.1] server on port 8081
Starting the internal HTTP client
Stopping the internal HTTP client
Stopping the internal HTTP client
Stopping the internal HTTP client
A recoverable error was detected (1001), attempting again in 2000 ms.
A recoverable error was detected (1001), attempting again in 2000 ms.
Stopping the internal server
Starting the internal [HTTP/1.1] server on port 8081
Starting the internal HTTP client
2016-08-26 18:06:30 127.0.0.1 xxx - 8081 GET
/admin - 401 424 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
Starting the internal HTTP client
2016-08-26 18:06:30 127.0.0.1 admin - 8081 GET
/admin - 200 - 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
Starting the internal HTTP client
2016-08-26 18:06:30 127.0.0.1 user - 8081 GET
/admin - 403 39 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
Stopping the internal server
Starting the internal [HTTP/1.1] server on port 8081
Starting the internal HTTP client
2016-08-26 18:06:30 127.0.0.1 - - 8081 GET
/admin - 200 - 0 1 http://localhost:8081
Restlet-Framework/2.2.3 -
Stopping the internal server
------------- ---------------- ---------------
Testcase: testDigestAuth took 0.703 sec
Testcase: testSSL took 4.337 sec
FAILED
expected:<200> but was:<1001>
junit.framework.AssertionFailedError: expected:<200> but was:<1001>
at
org.apache.nutch.api.AbstractNutchAPITestBase.testRequest(AbstractNutchAPITestBase.java:150)
at
org.apache.nutch.api.AbstractNutchAPITestBase.testRequest(AbstractNutchAPITestBase.java:76)
at org.apache.nutch.api.TestNutchAPI.testSSL(TestNutchAPI.java:79)
Testcase: testBasicAuth took 0.034 sec
Testcase: testInsecure took 0.016 sec
{code}
> Implement SSL Connection Test at TestNutchAPI
> ---------------------------------------------
>
> Key: NUTCH-2308
> URL: https://issues.apache.org/jira/browse/NUTCH-2308
> Project: Nutch
> Issue Type: Improvement
> Components: REST_api, web gui
> Reporter: Furkan KAMACI
> Assignee: Furkan KAMACI
> Fix For: 2.4
>
>
> Currently, testing of SSL is ignored at TestNutchAPI. We should complete the
> implementation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)