Details
-
Test
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
Add some basic tests to look for the standard JSP pages on a locally deployed MiniMR cluster
1. namenode: check that dfshealth is present
2. datanode: check that all the datanode JSPs load
3. GET the standard servlets.
The initial checks can just use httpclient to GET the pages; no need (yet) for HtmlUnit.
If the tests were designed to take optional URLs (e.g test.namenode.url and test.datanode.url) they could be run against processes brought up externally/remotely
They would
- help test that the JSP pages are being compiled down and bundled into the JARS
- verify the classpath is getting set up right
- check that the Jasper engine is working
- check the servlets are all registering
I've effectively had to do this in my own code; having a set of these tests inside hadoop would make it easier to point the blame at the classpath setup or something else.