2013-05-25 05:07:33 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'jira';
|
2014-10-06 03:55:05 -07:00
|
|
|
zci is_cached => 1;
|
2013-05-25 05:07:33 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
|
|
|
|
[qw( DDG::Goodie::Jira)],
|
|
|
|
'ACE-230' => test_zci(
|
2014-10-06 03:55:05 -07:00
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
input => ['ACE-230'],
|
|
|
|
operation => 'JIRA ticket lookup',
|
|
|
|
result => qq(ACE (Apache JIRA Bugtracker): see ticket <a href="https://issues.apache.org/jira/browse/ACE-230">ACE-230</a>.)
|
|
|
|
},
|
2013-05-25 05:07:33 -07:00
|
|
|
),
|
2013-06-08 01:10:59 -07:00
|
|
|
'ace-230' => test_zci(
|
2014-10-06 03:55:05 -07:00
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
input => ['ACE-230'],
|
|
|
|
operation => 'JIRA ticket lookup',
|
|
|
|
result => qq(ACE (Apache JIRA Bugtracker): see ticket <a href="https://issues.apache.org/jira/browse/ACE-230">ACE-230</a>.)
|
|
|
|
},
|
2013-06-08 01:10:59 -07:00
|
|
|
),
|
2013-06-07 07:38:17 -07:00
|
|
|
'jira random AJLIB-230 bug random' => test_zci(
|
2014-10-06 03:55:05 -07:00
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
input => ['AJLIB-230'],
|
|
|
|
operation => 'JIRA ticket lookup',
|
|
|
|
result => qq(ajlib incubator (Codehaus JIRA Bugtracker): see ticket <a href="https://jira.codehaus.org/browse/AJLIB-230">AJLIB-230</a>.)
|
|
|
|
},
|
2013-06-08 01:10:59 -07:00
|
|
|
),
|
|
|
|
'jira random ajlib-230 bug random' => test_zci(
|
2014-10-06 03:55:05 -07:00
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
input => ['AJLIB-230'],
|
|
|
|
operation => 'JIRA ticket lookup',
|
|
|
|
result => qq(ajlib incubator (Codehaus JIRA Bugtracker): see ticket <a href="https://jira.codehaus.org/browse/AJLIB-230">AJLIB-230</a>.)
|
|
|
|
},
|
2014-02-10 13:24:52 -08:00
|
|
|
),
|
|
|
|
'SOLR-4530' => test_zci(
|
2014-10-06 03:55:05 -07:00
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
input => ['SOLR-4530'],
|
|
|
|
operation => 'JIRA ticket lookup',
|
|
|
|
result => 'Solr (Apache JIRA Bugtracker): see ticket <a href="https://issues.apache.org/jira/browse/SOLR-4530">SOLR-4530</a>.'
|
|
|
|
},
|
2014-02-10 13:24:52 -08:00
|
|
|
),
|
|
|
|
'IdentityHtmlMapper solr-4530' => test_zci(
|
2014-10-06 03:55:05 -07:00
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
input => ['SOLR-4530'],
|
|
|
|
operation => 'JIRA ticket lookup',
|
|
|
|
result => 'Solr (Apache JIRA Bugtracker): see ticket <a href="https://issues.apache.org/jira/browse/SOLR-4530">SOLR-4530</a>.'
|
|
|
|
},
|
2014-02-10 13:24:52 -08:00
|
|
|
),
|
2013-05-25 05:07:33 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|