def test_p2d_jira(self): issueInfo = fetchIssueInfo("https://jira.p2d.com.br/browse/PORTAL-300") assert (issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'PORTAL-300') assert (issueInfo.project_trackerURL == 'https://jira.p2d.com.br/browse/PORTAL')
def test_gittip_github(self): issueInfo = fetchIssueInfo("https://github.com/whit537/www.gittip.com/issues/14") assert(not issueInfo.error) assert(issueInfo.tracker == 'GITHUB') assert(issueInfo.key == '14') assert(issueInfo.project_trackerURL == 'https://github.com/whit537/www.gittip.com/issues') assert(issueInfo.project_name == 'www.gittip.com') assert(issueInfo.issue_title == 'pay with bitcoin, litecoin')
def test_hibernate_jira(self): issueInfo = fetchIssueInfo("https://hibernate.onjira.com/browse/HHH-1050") assert(not issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'HHH-1050') assert(issueInfo.project_trackerURL == 'https://hibernate.onjira.com/browse/HHH') assert(issueInfo.project_name == 'Hibernate ORM') assert(issueInfo.issue_title == 'HQL Unions')
def test_jenkins_jira(self): issueInfo = fetchIssueInfo("https://issues.jenkins-ci.org/browse/JENKINS-9216") assert(not issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'JENKINS-9216') assert(issueInfo.project_trackerURL == 'https://issues.jenkins-ci.org/browse/JENKINS') assert(issueInfo.project_name == 'Jenkins') assert(issueInfo.issue_title == 'Make OpenID work with Google Apps accounts')
def test_axis_jira(self): issueInfo = fetchIssueInfo("https://issues.apache.org/jira/browse/AXIS-66") assert(not issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'AXIS-66') assert(issueInfo.project_trackerURL == 'https://issues.apache.org/jira/browse/AXIS') assert(issueInfo.project_name == 'Axis') assert(issueInfo.issue_title == '[xsd:list] WSDL2Java doesn\'t handle schema <list> enumerations')
def test_coveragepy_bitbucket(self): issueInfo = fetchIssueInfo("https://bitbucket.org/ned/coveragepy/issue/193/unicodedecodeerror-on-htmlpy") assert(not issueInfo.error) assert(issueInfo.tracker == 'BITBUCKET') assert(issueInfo.key == '193') assert(issueInfo.project_trackerURL == 'https://bitbucket.org/ned/coveragepy/issues') assert(issueInfo.project_name == 'coveragepy') assert(issueInfo.issue_title == 'UnicodeDecodeError on html.py')
def test_easymock_jira(self): issueInfo = fetchIssueInfo("http://jira.codehaus.org/browse/EASYMOCK-111") assert(not issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'EASYMOCK-111') assert(issueInfo.project_trackerURL == 'http://jira.codehaus.org/browse/EASYMOCK') assert(issueInfo.project_name == 'EasyMock') assert(issueInfo.issue_title == 'Calling behaviour more than expected number of times does not assert failure when the call is from multiple threads')
def test_maven_jira(self): issueInfo = fetchIssueInfo("https://issues.apache.org/jira/browse/MNG-5121") assert(not issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'MNG-5121') assert(issueInfo.project_trackerURL == 'https://issues.apache.org/jira/browse/MNG') assert(issueInfo.project_name == 'Maven') assert(issueInfo.issue_title == 'maven seems to lose transitive dependencies from the list of compilation dependencies')
def test_ant_bugzilla(self): issueInfo = fetchIssueInfo("https://issues.apache.org/bugzilla/show_bug.cgi?id=32089") assert(not issueInfo.error) assert(issueInfo.tracker == 'BUGZILLA') assert(issueInfo.key == '32089') assert(issueInfo.project_trackerURL == 'https://issues.apache.org/bugzilla/buglist.cgi?product=Ant') assert(issueInfo.project_name == 'Ant') assert(issueInfo.issue_title == 'stcheckout sometimes creates folders instead of files then throws exception')
def test_freedomsponsors_github(self): issueInfo = fetchIssueInfo("https://github.com/freedomsponsors/www.freedomsponsors.org/issues/1") assert(not issueInfo.error) assert(issueInfo.tracker == 'GITHUB') assert(issueInfo.key == '1') assert(issueInfo.project_trackerURL == 'https://github.com/freedomsponsors/www.freedomsponsors.org/issues') assert(issueInfo.project_name == 'www.freedomsponsors.org') assert(issueInfo.issue_title == 'Make freedomsponsors web application open sourced')
def test_chromium_googlecode(self): issueInfo = fetchIssueInfo("http://code.google.com/p/chromium/issues/detail?id=140028") assert not issueInfo.error assert issueInfo.tracker == 'GOOGLECODE' assert issueInfo.key == '140028' assert issueInfo.project_trackerURL == 'http://code.google.com/p/chromium/issues/list' assert issueInfo.project_name == 'chromium' assert issueInfo.issue_title == 'Slow memory leak seen when Google Analytics loaded in Chrome with Real Time view'
def test_chromium_googlecode(self): issueInfo = fetchIssueInfo( "http://code.google.com/p/chromium/issues/detail?id=140028") assert not issueInfo.error assert issueInfo.tracker == 'GOOGLECODE' assert issueInfo.key == '140028' assert issueInfo.project_trackerURL == 'http://code.google.com/p/chromium/issues/list' assert issueInfo.project_name == 'chromium' assert issueInfo.issue_title == 'Slow memory leak seen when Google Analytics loaded in Chrome with Real Time view'
def test_gittip_github(self): issueInfo = fetchIssueInfo( "https://github.com/gittip/www.gittip.com/issues/14") assert (not issueInfo.error) assert (issueInfo.tracker == 'GITHUB') assert (issueInfo.key == '14') assert (issueInfo.project_trackerURL == 'https://github.com/gittip/www.gittip.com/issues') assert (issueInfo.project_name == 'www.gittip.com') assert (issueInfo.issue_title == 'pay in with bitcoin')
def test_hibernate_jira(self): issueInfo = fetchIssueInfo( "https://hibernate.onjira.com/browse/HHH-1050") assert (not issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'HHH-1050') assert (issueInfo.project_trackerURL == 'https://hibernate.onjira.com/browse/HHH') assert (issueInfo.project_name == 'Hibernate ORM') assert (issueInfo.issue_title == 'HQL Unions')
def test_coveragepy_bitbucket(self): issueInfo = fetchIssueInfo( "https://bitbucket.org/ned/coveragepy/issue/193/unicodedecodeerror-on-htmlpy" ) assert (not issueInfo.error) assert (issueInfo.tracker == 'BITBUCKET') assert (issueInfo.key == '193') assert (issueInfo.project_trackerURL == 'https://bitbucket.org/ned/coveragepy/issues') assert (issueInfo.project_name == 'coveragepy') assert (issueInfo.issue_title == 'UnicodeDecodeError on html.py')
def test_jenkins_jira(self): issueInfo = fetchIssueInfo( "https://issues.jenkins-ci.org/browse/JENKINS-9216") assert (not issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'JENKINS-9216') assert (issueInfo.project_trackerURL == 'https://issues.jenkins-ci.org/browse/JENKINS') assert (issueInfo.project_name == 'Jenkins') assert (issueInfo.issue_title == 'Make OpenID work with Google Apps accounts')
def test_axis_jira(self): issueInfo = fetchIssueInfo( "https://issues.apache.org/jira/browse/AXIS-66") assert (not issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'AXIS-66') assert (issueInfo.project_trackerURL == 'https://issues.apache.org/jira/browse/AXIS') assert (issueInfo.project_name == 'Axis') assert ( issueInfo.issue_title == '[xsd:list] WSDL2Java doesn\'t handle schema <list> enumerations')
def test_maven_jira(self): issueInfo = fetchIssueInfo("http://jira.codehaus.org/browse/MNG-5121") assert (not issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'MNG-5121') assert (issueInfo.project_trackerURL == 'http://jira.codehaus.org/browse/MNG') assert (issueInfo.project_name == 'Maven') assert ( issueInfo.issue_title == 'maven seems to lose transitive dependencies from the list of compilation dependencies' )
def handle_noargs(self, **options): issues = Issue.objects.filter(description='', project__isnull=False) for issue in issues: logger.info('processing issue: %s' % issue.id) info = fetchIssueInfo(issue.trackerURL) if not info.error: logger.info('fetched info from: %s' % issue.trackerURL) issue.description = strip_tags(info.description) logger.info('set description: %s (...)' % issue.description[0:100]) issue.save() else: logger.info('error fetching from: %s - %s' % (issue.trackerURL, info.error)) sleep(60)
def test_easymock_jira(self): issueInfo = fetchIssueInfo( "http://jira.codehaus.org/browse/EASYMOCK-111") assert (not issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'EASYMOCK-111') assert (issueInfo.project_trackerURL == 'http://jira.codehaus.org/browse/EASYMOCK') assert (issueInfo.project_name == 'EasyMock') assert ( issueInfo.issue_title == 'Calling behaviour more than expected number of times does not assert failure when the call is from multple threads' )
def test_ant_bugzilla(self): issueInfo = fetchIssueInfo( "https://issues.apache.org/bugzilla/show_bug.cgi?id=32089") assert (not issueInfo.error) assert (issueInfo.tracker == 'BUGZILLA') assert (issueInfo.key == '32089') assert (issueInfo.project_trackerURL == 'https://issues.apache.org/bugzilla/buglist.cgi?product=Ant') assert (issueInfo.project_name == 'Ant') assert ( issueInfo.issue_title == 'stcheckout sometimes creates folders instead of files then throws exception' )
def test_freedomsponsors_github(self): issueInfo = fetchIssueInfo( "https://github.com/freedomsponsors/www.freedomsponsors.org/issues/1" ) assert (not issueInfo.error) assert (issueInfo.tracker == 'GITHUB') assert (issueInfo.key == '1') assert ( issueInfo.project_trackerURL == 'https://github.com/freedomsponsors/www.freedomsponsors.org/issues' ) assert (issueInfo.project_name == 'www.freedomsponsors.org') assert (issueInfo.issue_title == 'Make freedomsponsors web application open sourced')
def process_issue_url(trackerURL, user): result = {"urlValidationError": validateIssueURL(trackerURL)} if not result["urlValidationError"]: issues = Issue.objects.filter(trackerURL__iexact=trackerURL) issue_already_exists = issues.count() >= 1 if issues.count() > 1: logger.warning("Database inconsistency: more than one issue found with url = %s"%trackerURL) if issue_already_exists: result["issue"] = {"id": issues[0].id} return result else: issueInfo = fetchIssueInfo(trackerURL) _append_project_id_and_update_db_if_needed(issueInfo, trackerURL, user) result["issueInfo"] = issueInfo.__dict__ return result
def test_nowhere(self): issueInfo = fetchIssueInfo( "https://theres.nothing.here/jira/browse/NOTHING-123") assert (issueInfo.error)
def test_nowhere(self): issueInfo = fetchIssueInfo("https://theres.nothing.here/jira/browse/NOTHING-123") assert(issueInfo.error)
from core.utils.trackers_adapter import fetchIssueInfo issueInfo = fetchIssueInfo("https://issues.apache.org/jira/browse/AXIS-66") assert(not issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'AXIS-66') assert(issueInfo.project_url == 'https://issues.apache.org/jira/browse/AXIS') assert(issueInfo.project_name == 'Axis') assert(issueInfo.issue_title == '[xsd:list] WSDL2Java doesn\'t handle schema <list> enumerations')
from core.utils.trackers_adapter import fetchIssueInfo issueInfo = fetchIssueInfo("https://issues.apache.org/jira/browse/AXIS-66") assert (not issueInfo.error) assert (issueInfo.tracker == 'JIRA') assert (issueInfo.key == 'AXIS-66') assert (issueInfo.project_url == 'https://issues.apache.org/jira/browse/AXIS') assert (issueInfo.project_name == 'Axis') assert (issueInfo.issue_title == '[xsd:list] WSDL2Java doesn\'t handle schema <list> enumerations')
def test_p2d_jira(self): issueInfo = fetchIssueInfo("https://jira.p2d.com.br/browse/PORTAL-300") assert(issueInfo.error) assert(issueInfo.tracker == 'JIRA') assert(issueInfo.key == 'PORTAL-300') assert(issueInfo.project_trackerURL == 'https://jira.p2d.com.br/browse/PORTAL')