edu.samplu.common
Class JiraAwareFailureUtil

java.lang.Object
  extended by edu.samplu.common.JiraAwareFailureUtil

public class JiraAwareFailureUtil
extends Object

Created as a way to link Rice Smoke Test failures to existing Jiras as a html link in Jenkins. The more failures the more useful it is to not have to keep tracking down the same Jiras. Having this feature for Integration Tests as well would be a huge help for the QA team. TODO:

  1. Integration Test integration. ITs often fail by the 10s tracking down existing Jiras is a huge time sink.
  2. Possible Extraction of jiraMatches data to property file.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String JIRA_BROWSE_URL
          https://jira.kuali.org/browse/
static String KULRICE_8823_FIX_BROKEN_SMOKE_TESTS_IN_CI
          KULRICE-8823 Fix broken smoke tests in CI
 
Constructor Summary
JiraAwareFailureUtil()
           
 
Method Summary
static void failOnMatchedJira(String contents, Failable failable)
          If the contents contents the jiraMatches key, call fail on failable passing in the jiraMatches value for the matched key.
static void failOnMatchedJira(String contents, String message, Failable failable)
          Calls failOnMatchedJira with the contents and if no match is detected then the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KULRICE_8823_FIX_BROKEN_SMOKE_TESTS_IN_CI

public static final String KULRICE_8823_FIX_BROKEN_SMOKE_TESTS_IN_CI
KULRICE-8823 Fix broken smoke tests in CI

See Also:
Constant Field Values

JIRA_BROWSE_URL

public static final String JIRA_BROWSE_URL
https://jira.kuali.org/browse/

See Also:
Constant Field Values
Constructor Detail

JiraAwareFailureUtil

public JiraAwareFailureUtil()
Method Detail

failOnMatchedJira

public static void failOnMatchedJira(String contents,
                                     Failable failable)
If the contents contents the jiraMatches key, call fail on failable passing in the jiraMatches value for the matched key.

Parameters:
contents - to check for containing of the jiraMatches keys.
failable - to fail with the jiraMatches value if the jiraMatches key is contained in the contents

failOnMatchedJira

public static void failOnMatchedJira(String contents,
                                     String message,
                                     Failable failable)
Calls failOnMatchedJira with the contents and if no match is detected then the message.

Parameters:
contents - to check for containing of the jiraMatches keys.
message - to check for containing of the jiraMatches keys if contents doesn't
failable - to fail with the jiraMatches value if the contents or message is detected


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.