Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7d2b61ef
Commit
7d2b61ef
authored
Mar 05, 2016
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more cleanup in xt/
parent
86fb87f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
REST.pm
xt/lib/QA/REST.pm
+2
-0
JSONRPC.pm
xt/lib/QA/RPC/JSONRPC.pm
+10
-1
XMLRPC.pm
xt/lib/QA/RPC/XMLRPC.pm
+1
-3
Tests.pm
xt/lib/QA/Tests.pm
+2
-1
No files found.
xt/lib/QA/REST.pm
View file @
7d2b61ef
...
@@ -63,3 +63,5 @@ sub call {
...
@@ -63,3 +63,5 @@ sub call {
die
'error '
.
$res
->
{
code
}
.
': '
.
$res
->
{
message
}
.
"\n"
;
die
'error '
.
$res
->
{
code
}
.
': '
.
$res
->
{
message
}
.
"\n"
;
}
}
}
}
1
;
xt/lib/QA/RPC/JSONRPC.pm
View file @
7d2b61ef
...
@@ -126,7 +126,10 @@ sub _get {
...
@@ -126,7 +126,10 @@ sub _get {
1
;
1
;
package
QA::RPC::JSONRPC::
ReturnObject
;
package
QA::RPC::JSONRPC::
ReturnObject
;
use
5.14.0
;
use
strict
;
use
strict
;
use
warnings
;
BEGIN
{
BEGIN
{
if
(
eval
{
require
JSON::RPC::
Client
})
{
if
(
eval
{
require
JSON::RPC::
Client
})
{
...
@@ -149,8 +152,12 @@ sub fault { $_[0]->is_error }
...
@@ -149,8 +152,12 @@ sub fault { $_[0]->is_error }
1
;
1
;
package
QA::RPC::
UserAgent
;
package
QA::RPC::
UserAgent
;
use
5.14.0
;
use
strict
;
use
strict
;
use
base
qw(LWP::UserAgent)
;
use
warnings
;
use
parent
qw(LWP::UserAgent)
;
########################################
########################################
# Consistency with XMLRPC::Lite's ->ua #
# Consistency with XMLRPC::Lite's ->ua #
...
@@ -172,3 +179,5 @@ sub http_response {
...
@@ -172,3 +179,5 @@ sub http_response {
if
(
@_
)
{
$self
->
{
'_http_response'
}
=
shift
;
return
$self
}
if
(
@_
)
{
$self
->
{
'_http_response'
}
=
shift
;
return
$self
}
return
$self
->
{
'_http_response'
};
return
$self
->
{
'_http_response'
};
}
}
1
;
xt/lib/QA/RPC/XMLRPC.pm
View file @
7d2b61ef
...
@@ -16,11 +16,9 @@ use warnings;
...
@@ -16,11 +16,9 @@ use warnings;
use
FindBin
qw($RealBin)
;
use
FindBin
qw($RealBin)
;
use
lib
"$RealBin/../../../lib"
,
"$RealBin/../../../../local/lib/perl5"
;
use
lib
"$RealBin/../../../lib"
,
"$RealBin/../../../../local/lib/perl5"
;
use
base
qw(QA::RPC XMLRPC::Lite)
;
use
parent
qw(QA::RPC XMLRPC::Lite)
;
use
constant
TYPE
=>
'XML-RPC'
;
use
constant
TYPE
=>
'XML-RPC'
;
use
constant
DATETIME_REGEX
=>
qr/^\d{8}T\d\d:\d\d:\d\d$/
;
use
constant
DATETIME_REGEX
=>
qr/^\d{8}T\d\d:\d\d:\d\d$/
;
1
;
1
;
__END__
xt/lib/QA/Tests.pm
View file @
7d2b61ef
...
@@ -16,7 +16,8 @@ use warnings;
...
@@ -16,7 +16,8 @@ use warnings;
use
FindBin
qw($RealBin)
;
use
FindBin
qw($RealBin)
;
use
lib
"$RealBin/../../lib"
,
"$RealBin/../../../local/lib/perl5"
;
use
lib
"$RealBin/../../lib"
,
"$RealBin/../../../local/lib/perl5"
;
use
base
qw(Exporter)
;
use
parent
qw(Exporter)
;
our
@EXPORT_OK
=
qw(
our
@EXPORT_OK
=
qw(
PRIVATE_BUG_USER
PRIVATE_BUG_USER
STANDARD_BUG_TESTS
STANDARD_BUG_TESTS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment