From: <st...@us...> - 2009-06-12 16:43:20
|
Revision: 7661 http://smartfrog.svn.sourceforge.net/smartfrog/?rev=7661&view=rev Author: steve_l Date: 2009-06-12 16:43:03 +0000 (Fri, 12 Jun 2009) Log Message: ----------- SFOS-780: more servlet tests Modified Paths: -------------- trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/jsppages.sf Added Paths: ----------- trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/namenodepages.sf Modified: trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/jsppages.sf =================================================================== --- trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/jsppages.sf 2009-06-12 15:43:40 UTC (rev 7660) +++ trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/jsppages.sf 2009-06-12 16:43:03 UTC (rev 7661) @@ -18,25 +18,9 @@ */ -#include "/org/smartfrog/services/www/components.sf"; +#include "/org/smartfrog/services/hadoop/examples/namenodepages.sf"; -WAIT_FOR_JSP_PAGE_TIMEOUT 5000; -WAIT_FOR_JSP_PAGE_CHECK_FREQUENCY 50; -WaitForLocalSomething extends WaitForPage { - timeout WAIT_FOR_JSP_PAGE_TIMEOUT; - checkFrequency WAIT_FOR_JSP_PAGE_CHECK_FREQUENCY; - fetchErrorText true; -} - -WaitForLocalJSP extends WaitForLocalSomething { -// dfs.http.address TBD; - //hostname now needs to be set - webapp TBD; - page TBD; - url (dfs.http.address ++ webapp ++ page); -} - WaitForDatanodeJSP extends WaitForLocalJSP { webapp "webapps/hdfs/"; dfshealth.jsp "dfshealth.jsp"; Copied: trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/namenodepages.sf (from rev 7649, trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/jsppages.sf) =================================================================== --- trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/namenodepages.sf (rev 0) +++ trunk/core/components/hadoop/src/org/smartfrog/services/hadoop/examples/namenodepages.sf 2009-06-12 16:43:03 UTC (rev 7661) @@ -0,0 +1,57 @@ +/* (C) Copyright 2009 Hewlett-Packard Development Company, LP + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +For more information: www.smartfrog.org + +*/ + +#include "/org/smartfrog/services/www/components.sf"; + +WAIT_FOR_JSP_PAGE_TIMEOUT 5000; +WAIT_FOR_JSP_PAGE_CHECK_FREQUENCY 50; + +WaitForLocalSomething extends WaitForPage { + timeout WAIT_FOR_JSP_PAGE_TIMEOUT; + checkFrequency WAIT_FOR_JSP_PAGE_CHECK_FREQUENCY; + fetchErrorText true; +} + +WaitForLocalJSP extends WaitForLocalSomething { + webapp TBD; + page TBD; + url (dfs.http.address ++ webapp ++ page); +} + +WaitForPath extends WaitForLocalSomething { + serverpath TBD; + url (dfs.http.address ++ serverpath); +} + +WaitForFsck extends WaitForPath { + serverpath "fsck"; +} + +WaitForListPath extends WaitForPath { + pathToList TBD; + serverpath ("listPaths/" ++ pathToList); +} + + +WaitForChecksumPath extends WaitForPath { + pathToList TBD; + serverpath ("fileChecksum/" ++ pathToList); +} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |