Skip to content

Commit

Permalink
add docker checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed Feb 11, 2018
1 parent eb78bf4 commit e66df05
Show file tree
Hide file tree
Showing 91 changed files with 262 additions and 264 deletions.
4 changes: 2 additions & 2 deletions api/cas-server-core-api-events/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn">
<Logger name="org.apereo" level="off">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
3 changes: 2 additions & 1 deletion ci/run-couchbase-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ until $(curl --output /dev/null --silent --head --fail http://localhost:8091); d
done

echo -e "\nCreating default Couchbase bucket..."
curl -X POST -d name=default -d ramQuotaMB=120 -d authType=none -d proxyPort=11216 http://localhost:8091/pools/default/buckets
curl -X POST -d 'name=default' -d 'ramQuotaMB=120' -d 'authType=none' -d 'proxyPort=11216' http://localhost:8091/pools/default/buckets
curl -X POST -d 'name=casbucket' -d 'ramQuotaMB=120' -d 'authType=none' -d 'proxyPort=11217' http://localhost:8091/pools/default/buckets


4 changes: 2 additions & 2 deletions core/cas-server-core-audit/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn">
<Logger name="org.apereo" level="off">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-events/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn">
<Logger name="org.apereo" level="off">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-logging/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-logout/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-monitor/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-services/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-tickets/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-util/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core-validation/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
4 changes: 2 additions & 2 deletions core/cas-server-core/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<Logger name="org.slf4j.impl" level="trace">
<AppenderRef ref="slf4j"/>
</Logger>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo.cas" level="warn">
<Logger name="org.apereo.cas" level="off">
<AppenderRef ref="console"/>
</Logger>

<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="org.ldaptive" level="warn" additivity="false">
<Logger name="org.ldaptive" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="com.unboundid" level="debug" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,17 @@ private void createDesignDocumentAndViewIfNeeded() {
private void openBucket() {
try {
LOGGER.debug("Trying to connect to couchbase bucket [{}]", this.bucketName);
this.bucket = this.cluster.openBucket(this.bucketName, this.bucketPassword, this.timeout, TimeUnit.SECONDS);
if (StringUtils.isBlank(this.bucketPassword)) {
this.bucket = this.cluster.openBucket(this.bucketName, this.timeout, TimeUnit.MILLISECONDS);
} else {
this.bucket = this.cluster.openBucket(this.bucketName, this.bucketPassword, this.timeout, TimeUnit.MILLISECONDS);
}
} catch (final Exception e) {
throw new IllegalArgumentException("Failed to connect to Couchbase bucket " + this.bucketName, e);
}
LOGGER.info("Connected to Couchbase bucket [{}]", this.bucketName);
}

/**
* Remove default bucket.
*/
public static void removeDefaultBucket() {
HttpUtils.execute("http://localhost:8091/pools/default/buckets/default", "DELETE");
}


/**
* Create default bucket http servlet response.
*
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="debug" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="com.couchbase" level="warn" additivity="false">
<Logger name="com.couchbase" level="debug" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Logger name="com.couchbase" level="debug" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="com.amazonaws" level="warn" additivity="false">
<Logger name="com.amazonaws" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn" additivity="false">
<Root level="off" additivity="false">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="com.amazonaws" level="warn" additivity="false">
<Logger name="com.amazonaws" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn" additivity="false">
<Root level="off" additivity="false">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<Logger name="org.apache.xml.security" level="off" />
<Logger name="org.springframework.test" level="off" />

<Logger name="org.apereo" level="warn">
<Logger name="org.apereo" level="off">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<Logger name="org.apache.xml.security" level="off" />
<Logger name="org.springframework.test" level="off" />

<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apereo" level="warn" additivity="false">
<Logger name="org.apereo" level="off" additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Root level="warn">
<Root level="off">
<AppenderRef ref="console"/>
</Root>
</Loggers>
Expand Down
Loading

0 comments on commit e66df05

Please sign in to comment.