added possibility for personalized development
(e.g. sharing a system between multiple developers)
This commit is contained in:
parent
7b09d7d251
commit
66bd876f08
130 changed files with 2742 additions and 2210 deletions
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE authenticationClientFactory [
|
||||
|
||||
<!ELEMENT authenticationClientFactory (testAuthentication|
|
||||
webAuthentication)>
|
||||
|
||||
<!ELEMENT webAuthentication (location) >
|
||||
|
||||
<!ELEMENT location EMPTY >
|
||||
<!ATTLIST location server CDATA #REQUIRED >
|
||||
<!ATTLIST location port NMTOKEN #REQUIRED >
|
||||
<!ATTLIST location path CDATA #REQUIRED >
|
||||
]>
|
||||
<authenticationClientFactory>
|
||||
<webAuthentication>
|
||||
<location server="ls_php_host" port="ls_php_port"
|
||||
path="/ls_php_urlPrefix/storageServer/var/ls_alib_xmlRpcPrefix"/>
|
||||
</webAuthentication>
|
||||
</authenticationClientFactory>
|
16
livesupport/modules/storage/etc/webStorage.xml.template
Normal file
16
livesupport/modules/storage/etc/webStorage.xml.template
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE webStorage [
|
||||
|
||||
<!ELEMENT webStorage (location) >
|
||||
<!ATTLIST webStorage tempFiles CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT location EMPTY >
|
||||
<!ATTLIST location server CDATA #REQUIRED >
|
||||
<!ATTLIST location port NMTOKEN #REQUIRED >
|
||||
<!ATTLIST location path CDATA #REQUIRED >
|
||||
|
||||
]>
|
||||
<webStorage tempFiles="file:///ls_install_dir/tmp/webStorageClient" >
|
||||
<location server="ls_php_host" port="ls_php_port"
|
||||
path="/ls_php_urlPrefix/storageServer/var/ls_alib_xmlRpcPrefix"/>
|
||||
</webStorage>
|
|
@ -21,8 +21,8 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.38 $
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.39 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/src/WebStorageClientTest.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -71,13 +71,13 @@ CPPUNIT_TEST_SUITE_REGISTRATION(WebStorageClientTest);
|
|||
/**
|
||||
* The name of the configuration file for the web storage client.
|
||||
*/
|
||||
static const std::string storageConfigFileName = "etc/webStorage.xml";
|
||||
static const std::string storageConfigFileName = "webStorage.xml";
|
||||
|
||||
/**
|
||||
* The name of the configuration file for the authentication factory.
|
||||
*/
|
||||
static const std::string authenticationFactoryConfigFileName
|
||||
= "etc/webAuthenticationClient.xml";
|
||||
= "webAuthenticationClient.xml";
|
||||
|
||||
|
||||
/* =============================================== local function prototypes */
|
||||
|
@ -94,9 +94,9 @@ WebStorageClientTest :: setUp(void) throw ()
|
|||
Ptr<AuthenticationClientFactory>::Ref acf;
|
||||
acf = AuthenticationClientFactory::getInstance();
|
||||
try {
|
||||
Ptr<xmlpp::DomParser>::Ref parser(
|
||||
new xmlpp::DomParser(authenticationFactoryConfigFileName, true));
|
||||
const xmlpp::Document * document = parser->get_document();
|
||||
xmlpp::DomParser parser;
|
||||
const xmlpp::Document * document = getConfigDocument(parser,
|
||||
authenticationFactoryConfigFileName);
|
||||
const xmlpp::Element * root = document->get_root_node();
|
||||
|
||||
acf->configure(*root);
|
||||
|
@ -109,9 +109,9 @@ WebStorageClientTest :: setUp(void) throw ()
|
|||
authentication = acf->getAuthenticationClient();
|
||||
|
||||
try {
|
||||
Ptr<xmlpp::DomParser>::Ref parser(
|
||||
new xmlpp::DomParser(storageConfigFileName, true));
|
||||
const xmlpp::Document * document = parser->get_document();
|
||||
xmlpp::DomParser parser;
|
||||
const xmlpp::Document * document = getConfigDocument(parser,
|
||||
storageConfigFileName);
|
||||
const xmlpp::Element * root = document->get_root_node();
|
||||
|
||||
wsc.reset(new WebStorageClient());
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.8 $
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.9 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/src/WebStorageClientTest.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
#include "LiveSupport/Core/BaseTestMethod.h"
|
||||
#include "LiveSupport/Authentication/AuthenticationClientInterface.h"
|
||||
#include "LiveSupport/Authentication/AuthenticationClientFactory.h"
|
||||
|
||||
|
@ -62,11 +63,11 @@ using namespace LiveSupport::Authentication;
|
|||
/**
|
||||
* Unit test for the UploadPlaylistMetohd class.
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.8 $
|
||||
* @author $Author: maroy $
|
||||
* @version $Revision: 1.9 $
|
||||
* @see WebStorageClient
|
||||
*/
|
||||
class WebStorageClientTest : public CPPUNIT_NS::TestFixture
|
||||
class WebStorageClientTest : public BaseTestMethod
|
||||
{
|
||||
CPPUNIT_TEST_SUITE(WebStorageClientTest);
|
||||
CPPUNIT_TEST(firstTest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue