Added 'cloneonestorage' test credentials and environment-specific settings for the host URL at which StoreTweetsController should be called

This commit is contained in:
Andrew Phillips 2011-06-29 22:55:52 -04:00
parent 4aa9bcb82e
commit 0448fcaa9f
2 changed files with 33 additions and 20 deletions

View File

@ -32,9 +32,10 @@
<properties> <properties>
<bees.appid>jclouds/tweetstore</bees.appid> <bees.appid>jclouds/tweetstore</bees.appid>
<bees.environment>run</bees.environment> <!-- first part of the live URL, used in cloudbees-web.xml -->
<bees.address>localhost</bees.address> <bees.apptitle>tweetstore</bees.apptitle>
<bees.port>8088</bees.port> <test.bees.address>localhost</test.bees.address>
<test.bees.port>8088</test.bees.port>
<jclouds.tweetstore.container>jclouds-tweetstore-runatcloud</jclouds.tweetstore.container> <jclouds.tweetstore.container>jclouds-tweetstore-runatcloud</jclouds.tweetstore.container>
</properties> </properties>
@ -75,15 +76,11 @@
<systemProperties> <systemProperties>
<property> <property>
<name>bees.address</name> <name>bees.address</name>
<value>${bees.address}</value> <value>${test.bees.address}</value>
</property> </property>
<property> <property>
<name>bees.port</name> <name>bees.port</name>
<value>${bees.port}</value> <value>${test.bees.port}</value>
</property>
<property>
<name>bees.environment</name>
<value>${bees.environment}</value>
</property> </property>
<property> <property>
<name>bees.basedir</name> <name>bees.basedir</name>
@ -171,17 +168,21 @@
<name>test.aws-s3.credential</name> <name>test.aws-s3.credential</name>
<value>${test.aws-s3.credential}</value> <value>${test.aws-s3.credential}</value>
</property> </property>
<property>
<name>test.cloudonestorage.identity</name>
<value>${test.cloudonestorage.identity}</value>
</property>
<property>
<name>test.cloudonestorage.credential</name>
<value>${test.cloudonestorage.credential}</value>
</property>
<property> <property>
<name>bees.address</name> <name>bees.address</name>
<value>${bees.address}</value> <value>${test.bees.address}</value>
</property> </property>
<property> <property>
<name>bees.port</name> <name>bees.port</name>
<value>${bees.port}</value> <value>${test.bees.port}</value>
</property>
<property>
<name>bees.environment</name>
<value>${bees.environment}</value>
</property> </property>
<property> <property>
<name>jclouds.tweetstore.blobstores</name> <name>jclouds.tweetstore.blobstores</name>
@ -233,7 +234,7 @@
<artifactId>bees-maven-plugin</artifactId> <artifactId>bees-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<configuration> <configuration>
<environment>${bees.environment}</environment> <environment>run</environment>
<apikey>${bees.apikey}</apikey> <apikey>${bees.apikey}</apikey>
<secret>${bees.secret}</secret> <secret>${bees.secret}</secret>
</configuration> </configuration>

View File

@ -1,8 +1,20 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<cloudbees-web-app xmlns="http://www.cloudbees.com/xml/webapp/1"> <cloudbees-web-app xmlns="http://www.cloudbees.com/xml/webapp/1">
<appid>${bees.appid}</appid> <appid>${bees.appid}</appid>
<context-param>
<param-name>application.environment</param-name> <environment name="itest">
<param-value>${bees.environment}</param-value> <context-param>
</context-param> <param-name>application.host</param-name>
<param-value>${test.bees.address}:${test.bees.port}</param-value>
</context-param>
</environment>
<environment name="run">
<context-param>
<!-- this value could better be retrieved programmatically using the RUN@cloud API, see
https://cloudbees.zendesk.com/entries/417046-cloudbees-api-for-run-cloud -->
<param-name>application.host</param-name>
<param-value>${bees.apptitle}.jclouds.cloudbees.net</param-value>
</context-param>
</environment>
</cloudbees-web-app> </cloudbees-web-app>