Skip to content

Instantly share code, notes, and snippets.

@wwannemacher
wwannemacher / http.conf
Created May 9, 2014 18:20
httpd.conf file for ubuntu
#
# This is the apache config for eucalyptus: we use it only to load the
# axis2c module which will take care of the WebServices
#
ServerTokens OS
ServerRoot "/tmp"
ServerName 127.0.0.1
public class FrobnosticatorTests {
@Test
public void basicFrobnosticationTest() throws Exception {
Frobnosticator frobnosticator = new Frobnosticator();
Frobnosticatee frobnosticatee = new Frobnosticatee();
frobnosticator.frobnosticate( frobnosticatee );
assertTrue("expecting frobnosticatee to be frobnosticated after the call to frobnosticate",
frobnosticatee.isFrobnosticated() );
}
#!/usr/bin/groovy
import com.eucalyptus.objectstorage.LifecycleCleanupJob;
def runIt() {
LifecycleCleanupJob job = new LifecycleCleanupJob();
job.execute(null);
}
return runIt();
2014-12-10 13:31:55 INFO 000001004 LifecycleReaperJob | beginning Object Lifecycle processing
2014-12-10 13:31:55 DEBUG 000001004 LifecycleReaperJob | retrieving Object Lifecycle rules from the database
2014-12-10 13:31:55 DEBUG 000001004 LifecycleReaperJob | found 2 Object Lifecycle rules
2014-12-10 13:31:55 DEBUG 000001004 LifecycleReaperJob | rule id - lifecycle-rule-access-logs-hasp-euca-lb-435e09fa on bucket 265adebb-b5df-4930-af7b-b5cb162371b9 processing
2014-12-10 13:31:55 INFO 000001004 LifecycleReaperJob | processing phase one for ruleId 'lifecycle-rule-access-logs-hasp-euca-lb-435e09fa' for bucket access-logs-hasp-euca-lb-435e09fa against objects pre
fixed 'lifecycle-prefix-access-logs-hasp-euca-lb-435e09fa', marking matches for expiration if they are older than 1 days old
2014-12-10 13:31:55 DEBUG 000001004 LifecycleReaperJob | there were no objects in bucket access-logs-hasp-euca-lb-435e09fa with prefix lifecycle-prefix-access-logs-hasp-euca-lb-435e09fa older
@wwannemacher
wwannemacher / foo.groovy
Created July 20, 2017 16:08
MarkupBuilder in groovy for surefire report
def makeSurefireReport(Map reportData) {
def testSuiteName = 'HA clustered node database comparison'
def reportErrors = reportData['errors'] ? reportData['errors'] : '0'
def reportFailures = reportData['failures'] ? reportData['failures'] : '0'
def testFailed = reportData['errors'] || reportData['failures']
def surefireReport = new MarkupBuilder()
surefireReport.encoding = 'UTF-8'
if (testFailed) {
surefireReport.
testsuite(name: testSuiteName, tests: '1', skipped: '0', errors: reportErrors, failures: reportFailures) {