/**
 * Basic status object, containing null for all properties.
 */
const defaultStatus = {
  issueKey: null,
  link: null,
  origin: null,
  result: null,
  timestamp: null
};

const StatusResult = {
  SUCCESS: 'success',
  FAILURE: 'failure',
  RUNNING: 'running',
  UNKNOWN: 'unknown',
};

module.exports = function(attributes){
  return Object.assign({}, defaultStatus, attributes);
};

module.exports.StatusResult = StatusResult;

@@ -210,15 +210,15 @@
 S: '
-success
+SUCCESS
 ',%0A 
@@ -232,15 +232,15 @@
 E: '
-failure
+FAILURE
 ',%0A 
@@ -254,15 +254,15 @@
 G: '
-running
+RUNNING
 ',%0A 
@@ -276,15 +276,15 @@
 N: '
-unknown
+UNKNOWN
 ',%0A%7D

Make status result all caps