TestRailMock.pm 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454
  1. # ABSTRACT: Provides an interface to something like TestRail's REST api in a bogus fashion
  2. # PODNAME: Test::LWP::UserAgent::TestRailMock
  3. package Test::LWP::UserAgent::TestRailMock;
  4. use strict;
  5. use warnings;
  6. use Test::LWP::UserAgent;
  7. use HTTP::Response;
  8. use HTTP::Request;
  9. use HTTP::Headers;
  10. =head1 DESCRIPTION
  11. Provides a Test::LWP::UserAgent with mappings defined for all the requests made by this module's main test.
  12. More or less provides a successful response with bogus data for every API call exposed by TestRail::API.
  13. Used primarily by said module's tests (whenever the test environment does not provide a TestRail server to test against).
  14. You probably won't need/want to use it, but you can by following the SYNOPSIS.
  15. The module was mostly auto-generated, with a few manual tweaks.
  16. =head1 SYNOPSIS
  17. use Test::LWP::UserAgent::TestRailMock;
  18. use TestRail::API;
  19. my $tr = TestRail::API->new('http://testrail.local','teodesian@cpan.org','bogus',0);
  20. $tr->{'browser'} = $Test::LWP::UserAgent::TestRailMock::mockObject;
  21. =cut
  22. #Use this as the ->{'browser'} param of the TestRail::API object
  23. our $mockObject = Test::LWP::UserAgent->new();
  24. my ($VAR1,$VAR2,$VAR3,$VAR4,$VAR5);
  25. {
  26. $VAR1 = 'http://hokum.bogus/index.php?/api/v2/get_users';
  27. $VAR2 = 500;
  28. $VAR3 = 'Can\'t connect to hokum.bogus:80 (Bad hostname)';
  29. $VAR4 = bless( {
  30. 'client-warning' => 'Internal response',
  31. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  32. 'content-type' => 'text/plain',
  33. '::std_case' => {
  34. 'client-warning' => 'Client-Warning',
  35. 'client-date' => 'Client-Date'
  36. }
  37. }, 'HTTP::Headers' );
  38. $VAR5 = 'Can\'t connect to hokum.bogus:80 (Bad hostname)
  39. LWP::Protocol::http::Socket: Bad hostname \'hokum.bogus\' at /usr/share/perl5/LWP/Protocol/http.pm line 51.
  40. ';
  41. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  42. }
  43. {
  44. $VAR1 = 'index.php?/api/v2/get_users';
  45. $VAR2 = '200';
  46. $VAR3 = 'OK';
  47. $VAR4 = bless( {
  48. 'connection' => 'close',
  49. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  50. 'client-response-num' => 1,
  51. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  52. 'client-peer' => '192.168.122.217:80',
  53. 'content-length' => '70',
  54. '::std_case' => {
  55. 'client-date' => 'Client-Date',
  56. 'x-powered-by' => 'X-Powered-By',
  57. 'client-response-num' => 'Client-Response-Num',
  58. 'client-peer' => 'Client-Peer'
  59. },
  60. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  61. 'content-type' => 'application/json; charset=utf-8',
  62. 'server' => 'Apache/2.4.7 (Ubuntu)'
  63. }, 'HTTP::Headers' );
  64. $VAR5 = '[{"id":1,"name":"teodesian","email":"teodesian@cpan.org","is_active":true}]';
  65. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  66. }
  67. {
  68. $VAR1 = 'noSuchMethod';
  69. $VAR2 = '404';
  70. $VAR3 = 'Not Found';
  71. $VAR4 = bless( {
  72. 'connection' => 'close',
  73. 'client-response-num' => 1,
  74. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  75. 'client-peer' => '192.168.122.217:80',
  76. 'content-length' => '289',
  77. '::std_case' => {
  78. 'client-date' => 'Client-Date',
  79. 'client-response-num' => 'Client-Response-Num',
  80. 'title' => 'Title',
  81. 'client-peer' => 'Client-Peer'
  82. },
  83. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  84. 'content-type' => 'text/html; charset=iso-8859-1',
  85. 'title' => '404 Not Found',
  86. 'server' => 'Apache/2.4.7 (Ubuntu)'
  87. }, 'HTTP::Headers' );
  88. $VAR5 = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  89. <html><head>
  90. <title>404 Not Found</title>
  91. </head><body>
  92. <h1>Not Found</h1>
  93. <p>The requested URL /noSuchMethod was not found on this server.</p>
  94. <hr>
  95. <address>Apache/2.4.7 (Ubuntu) Server at testrail.local Port 80</address>
  96. </body></html>
  97. ';
  98. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  99. }
  100. {
  101. $VAR1 = 'index.php?/api/v2/add_project';
  102. $VAR2 = '200';
  103. $VAR3 = 'OK';
  104. $VAR4 = bless( {
  105. 'connection' => 'close',
  106. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  107. 'client-response-num' => 1,
  108. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  109. 'client-peer' => '192.168.122.217:80',
  110. 'content-length' => '236',
  111. '::std_case' => {
  112. 'client-date' => 'Client-Date',
  113. 'x-powered-by' => 'X-Powered-By',
  114. 'client-response-num' => 'Client-Response-Num',
  115. 'client-peer' => 'Client-Peer'
  116. },
  117. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  118. 'content-type' => 'application/json; charset=utf-8',
  119. 'server' => 'Apache/2.4.7 (Ubuntu)'
  120. }, 'HTTP::Headers' );
  121. $VAR5 = '{"id":9,"name":"CRUSH ALL HUMANS","announcement":"Robo-Signed Soviet 5 Year Project","show_announcement":false,"is_completed":false,"completed_on":null,"suite_mode":3,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/projects\\/overview\\/9"}';
  122. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  123. }
  124. {
  125. $VAR1 = 'index.php?/api/v2/get_projects';
  126. $VAR2 = '200';
  127. $VAR3 = 'OK';
  128. $VAR4 = bless( {
  129. 'connection' => 'close',
  130. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  131. 'client-response-num' => 1,
  132. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  133. 'client-peer' => '192.168.122.217:80',
  134. 'content-length' => '238',
  135. '::std_case' => {
  136. 'client-date' => 'Client-Date',
  137. 'x-powered-by' => 'X-Powered-By',
  138. 'client-response-num' => 'Client-Response-Num',
  139. 'client-peer' => 'Client-Peer'
  140. },
  141. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  142. 'content-type' => 'application/json; charset=utf-8',
  143. 'server' => 'Apache/2.4.7 (Ubuntu)'
  144. }, 'HTTP::Headers' );
  145. $VAR5 = '[{"id":9,"name":"CRUSH ALL HUMANS","announcement":"Robo-Signed Soviet 5 Year Project","show_announcement":false,"is_completed":false,"completed_on":null,"suite_mode":3,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/projects\\/overview\\/9"},{"id":10,"name":"TestProject","is_completed":false}]';
  146. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  147. }
  148. {
  149. $VAR1 = 'index.php?/api/v2/add_suite/9';
  150. $VAR2 = '200';
  151. $VAR3 = 'OK';
  152. $VAR4 = bless( {
  153. 'connection' => 'close',
  154. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  155. 'client-response-num' => 1,
  156. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  157. 'client-peer' => '192.168.122.217:80',
  158. 'content-length' => '254',
  159. '::std_case' => {
  160. 'client-date' => 'Client-Date',
  161. 'x-powered-by' => 'X-Powered-By',
  162. 'client-response-num' => 'Client-Response-Num',
  163. 'client-peer' => 'Client-Peer'
  164. },
  165. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  166. 'content-type' => 'application/json; charset=utf-8',
  167. 'server' => 'Apache/2.4.7 (Ubuntu)'
  168. }, 'HTTP::Headers' );
  169. $VAR5 = '{"id":9,"name":"HAMBURGER-IZE HUMANITY","description":"Robo-Signed Patriotic People\'s TestSuite","project_id":9,"is_master":false,"is_baseline":false,"is_completed":false,"completed_on":null,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/suites\\/view\\/9"}';
  170. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  171. }
  172. {
  173. $VAR1 = 'index.php?/api/v2/get_suites/9';
  174. $VAR2 = '200';
  175. $VAR3 = 'OK';
  176. $VAR4 = bless( {
  177. 'connection' => 'close',
  178. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  179. 'client-response-num' => 1,
  180. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  181. 'client-peer' => '192.168.122.217:80',
  182. 'content-length' => '256',
  183. '::std_case' => {
  184. 'client-date' => 'Client-Date',
  185. 'x-powered-by' => 'X-Powered-By',
  186. 'client-response-num' => 'Client-Response-Num',
  187. 'client-peer' => 'Client-Peer'
  188. },
  189. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  190. 'content-type' => 'application/json; charset=utf-8',
  191. 'server' => 'Apache/2.4.7 (Ubuntu)'
  192. }, 'HTTP::Headers' );
  193. $VAR5 = '[{"id":9,"name":"HAMBURGER-IZE HUMANITY","description":"Robo-Signed Patriotic People\'s TestSuite","project_id":9,"is_master":false,"is_baseline":false,"is_completed":false,"completed_on":null,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/suites\\/view\\/9"}]';
  194. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  195. }
  196. {
  197. $VAR1 = 'index.php?/api/v2/get_suites/9';
  198. $VAR2 = '200';
  199. $VAR3 = 'OK';
  200. $VAR4 = bless( {
  201. 'connection' => 'close',
  202. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  203. 'client-response-num' => 1,
  204. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  205. 'client-peer' => '192.168.122.217:80',
  206. 'content-length' => '256',
  207. '::std_case' => {
  208. 'client-date' => 'Client-Date',
  209. 'x-powered-by' => 'X-Powered-By',
  210. 'client-response-num' => 'Client-Response-Num',
  211. 'client-peer' => 'Client-Peer'
  212. },
  213. 'client-date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  214. 'content-type' => 'application/json; charset=utf-8',
  215. 'server' => 'Apache/2.4.7 (Ubuntu)'
  216. }, 'HTTP::Headers' );
  217. $VAR5 = '[{"id":9,"name":"HAMBURGER-IZE HUMANITY","description":"Robo-Signed Patriotic People\'s TestSuite","project_id":9,"is_master":false,"is_baseline":false,"is_completed":false,"completed_on":null,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/suites\\/view\\/9"}]';
  218. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  219. }
  220. {
  221. $VAR1 = 'index.php?/api/v2/get_suite/9';
  222. $VAR2 = '200';
  223. $VAR3 = 'OK';
  224. $VAR4 = bless( {
  225. 'connection' => 'close',
  226. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  227. 'client-response-num' => 1,
  228. 'date' => 'Tue, 23 Dec 2014 20:02:08 GMT',
  229. 'client-peer' => '192.168.122.217:80',
  230. 'content-length' => '254',
  231. '::std_case' => {
  232. 'client-date' => 'Client-Date',
  233. 'x-powered-by' => 'X-Powered-By',
  234. 'client-response-num' => 'Client-Response-Num',
  235. 'client-peer' => 'Client-Peer'
  236. },
  237. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  238. 'content-type' => 'application/json; charset=utf-8',
  239. 'server' => 'Apache/2.4.7 (Ubuntu)'
  240. }, 'HTTP::Headers' );
  241. $VAR5 = '{"id":9,"name":"HAMBURGER-IZE HUMANITY","description":"Robo-Signed Patriotic People\'s TestSuite","project_id":9,"is_master":false,"is_baseline":false,"is_completed":false,"completed_on":null,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/suites\\/view\\/9"}';
  242. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  243. }
  244. {
  245. $VAR1 = 'index.php?/api/v2/add_section/9';
  246. $VAR2 = '200';
  247. $VAR3 = 'OK';
  248. $VAR4 = bless( {
  249. 'connection' => 'close',
  250. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  251. 'client-response-num' => 1,
  252. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  253. 'client-peer' => '192.168.122.217:80',
  254. 'content-length' => '114',
  255. '::std_case' => {
  256. 'client-date' => 'Client-Date',
  257. 'x-powered-by' => 'X-Powered-By',
  258. 'client-response-num' => 'Client-Response-Num',
  259. 'client-peer' => 'Client-Peer'
  260. },
  261. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  262. 'content-type' => 'application/json; charset=utf-8',
  263. 'server' => 'Apache/2.4.7 (Ubuntu)'
  264. }, 'HTTP::Headers' );
  265. $VAR5 = '{"id":9,"suite_id":9,"name":"CARBON LIQUEFACTION","description":null,"parent_id":null,"display_order":1,"depth":0}';
  266. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  267. }
  268. {
  269. $VAR1 = 'index.php?/api/v2/get_sections/9&suite_id=9';
  270. $VAR2 = '200';
  271. $VAR3 = 'OK';
  272. $VAR4 = bless( {
  273. 'connection' => 'close',
  274. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  275. 'client-response-num' => 1,
  276. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  277. 'client-peer' => '192.168.122.217:80',
  278. 'content-length' => '116',
  279. '::std_case' => {
  280. 'client-date' => 'Client-Date',
  281. 'x-powered-by' => 'X-Powered-By',
  282. 'client-response-num' => 'Client-Response-Num',
  283. 'client-peer' => 'Client-Peer'
  284. },
  285. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  286. 'content-type' => 'application/json; charset=utf-8',
  287. 'server' => 'Apache/2.4.7 (Ubuntu)'
  288. }, 'HTTP::Headers' );
  289. $VAR5 = '[{"id":9,"suite_id":9,"name":"CARBON LIQUEFACTION","description":null,"parent_id":null,"display_order":1,"depth":0},{"id":10,"suite_id":9,"name":"fake.test","description":"Fake as it gets","parent_id":null}]';
  290. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  291. }
  292. {
  293. $VAR1 = 'index.php?/api/v2/get_sections/10&suite_id=9';
  294. $VAR2 = '200';
  295. $VAR3 = 'OK';
  296. $VAR4 = bless( {
  297. 'connection' => 'close',
  298. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  299. 'client-response-num' => 1,
  300. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  301. 'client-peer' => '192.168.122.217:80',
  302. 'content-length' => '116',
  303. '::std_case' => {
  304. 'client-date' => 'Client-Date',
  305. 'x-powered-by' => 'X-Powered-By',
  306. 'client-response-num' => 'Client-Response-Num',
  307. 'client-peer' => 'Client-Peer'
  308. },
  309. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  310. 'content-type' => 'application/json; charset=utf-8',
  311. 'server' => 'Apache/2.4.7 (Ubuntu)'
  312. }, 'HTTP::Headers' );
  313. $VAR5 = '[{"id":9,"suite_id":9,"name":"CARBON LIQUEFACTION","description":null,"parent_id":null,"display_order":1,"depth":0},{"id":10,"suite_id":9,"name":"fake.test","description":"Fake as it gets","parent_id":null}]';
  314. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  315. }
  316. {
  317. $VAR1 = 'index.php?/api/v2/get_section/9';
  318. $VAR2 = '200';
  319. $VAR3 = 'OK';
  320. $VAR4 = bless( {
  321. 'connection' => 'close',
  322. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  323. 'client-response-num' => 1,
  324. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  325. 'client-peer' => '192.168.122.217:80',
  326. 'content-length' => '114',
  327. '::std_case' => {
  328. 'client-date' => 'Client-Date',
  329. 'x-powered-by' => 'X-Powered-By',
  330. 'client-response-num' => 'Client-Response-Num',
  331. 'client-peer' => 'Client-Peer'
  332. },
  333. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  334. 'content-type' => 'application/json; charset=utf-8',
  335. 'server' => 'Apache/2.4.7 (Ubuntu)'
  336. }, 'HTTP::Headers' );
  337. $VAR5 = '{"id":9,"suite_id":9,"name":"CARBON LIQUEFACTION","description":null,"parent_id":null,"display_order":1,"depth":0}';
  338. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  339. }
  340. {
  341. $VAR1 = 'index.php?/api/v2/add_case/9';
  342. $VAR2 = '200';
  343. $VAR3 = 'OK';
  344. $VAR4 = bless( {
  345. 'connection' => 'close',
  346. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  347. 'client-response-num' => 1,
  348. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  349. 'client-peer' => '192.168.122.217:80',
  350. 'content-length' => '320',
  351. '::std_case' => {
  352. 'client-date' => 'Client-Date',
  353. 'x-powered-by' => 'X-Powered-By',
  354. 'client-response-num' => 'Client-Response-Num',
  355. 'client-peer' => 'Client-Peer'
  356. },
  357. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  358. 'content-type' => 'application/json; charset=utf-8',
  359. 'server' => 'Apache/2.4.7 (Ubuntu)'
  360. }, 'HTTP::Headers' );
  361. $VAR5 = '{"id":8,"title":"STROGGIFY POPULATION CENTERS","section_id":9,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null}';
  362. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  363. }
  364. {
  365. $VAR1 = 'index.php?/api/v2/get_cases/9&suite_id=9&section_id=9';
  366. $VAR2 = '200';
  367. $VAR3 = 'OK';
  368. $VAR4 = bless( {
  369. 'connection' => 'close',
  370. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  371. 'client-response-num' => 1,
  372. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  373. 'client-peer' => '192.168.122.217:80',
  374. 'content-length' => '322',
  375. '::std_case' => {
  376. 'client-date' => 'Client-Date',
  377. 'x-powered-by' => 'X-Powered-By',
  378. 'client-response-num' => 'Client-Response-Num',
  379. 'client-peer' => 'Client-Peer'
  380. },
  381. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  382. 'content-type' => 'application/json; charset=utf-8',
  383. 'server' => 'Apache/2.4.7 (Ubuntu)'
  384. }, 'HTTP::Headers' );
  385. $VAR5 = '[{"id":8,"title":"STROGGIFY POPULATION CENTERS","section_id":9,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null}]';
  386. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  387. }
  388. {
  389. $VAR1 = 'index.php?/api/v2/get_cases/9&suite_id=9&section_id=10';
  390. $VAR2 = '200';
  391. $VAR3 = 'OK';
  392. $VAR4 = bless( {
  393. 'connection' => 'close',
  394. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  395. 'client-response-num' => 1,
  396. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  397. 'client-peer' => '192.168.122.217:80',
  398. 'content-length' => '322',
  399. '::std_case' => {
  400. 'client-date' => 'Client-Date',
  401. 'x-powered-by' => 'X-Powered-By',
  402. 'client-response-num' => 'Client-Response-Num',
  403. 'client-peer' => 'Client-Peer'
  404. },
  405. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  406. 'content-type' => 'application/json; charset=utf-8',
  407. 'server' => 'Apache/2.4.7 (Ubuntu)'
  408. }, 'HTTP::Headers' );
  409. $VAR5 = '[{"id":10,"title":"STORAGE TANKS SEARED","section_id":10,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null},{"id":11,"title":"NOT SO SEARED AFTER ARR","section_id":10,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null}]';
  410. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  411. }
  412. {
  413. $VAR1 = 'index.php?/api/v2/get_cases/10&suite_id=9&section_id=10';
  414. $VAR2 = '200';
  415. $VAR3 = 'OK';
  416. $VAR4 = bless( {
  417. 'connection' => 'close',
  418. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  419. 'client-response-num' => 1,
  420. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  421. 'client-peer' => '192.168.122.217:80',
  422. 'content-length' => '322',
  423. '::std_case' => {
  424. 'client-date' => 'Client-Date',
  425. 'x-powered-by' => 'X-Powered-By',
  426. 'client-response-num' => 'Client-Response-Num',
  427. 'client-peer' => 'Client-Peer'
  428. },
  429. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  430. 'content-type' => 'application/json; charset=utf-8',
  431. 'server' => 'Apache/2.4.7 (Ubuntu)'
  432. }, 'HTTP::Headers' );
  433. $VAR5 = '[{"id":10,"title":"STORAGE TANKS SEARED","section_id":10,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null},{"id":11,"title":"NOT SO SEARED AFTER ARR","section_id":10,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null}]';
  434. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  435. }
  436. {
  437. $VAR1 = 'index.php?/api/v2/get_case/8';
  438. $VAR2 = '200';
  439. $VAR3 = 'OK';
  440. $VAR4 = bless( {
  441. 'connection' => 'close',
  442. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  443. 'client-response-num' => 1,
  444. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  445. 'client-peer' => '192.168.122.217:80',
  446. 'content-length' => '320',
  447. '::std_case' => {
  448. 'client-date' => 'Client-Date',
  449. 'x-powered-by' => 'X-Powered-By',
  450. 'client-response-num' => 'Client-Response-Num',
  451. 'client-peer' => 'Client-Peer'
  452. },
  453. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  454. 'content-type' => 'application/json; charset=utf-8',
  455. 'server' => 'Apache/2.4.7 (Ubuntu)'
  456. }, 'HTTP::Headers' );
  457. $VAR5 = '{"id":8,"title":"STROGGIFY POPULATION CENTERS","section_id":9,"type_id":6,"priority_id":4,"milestone_id":null,"refs":null,"created_by":1,"created_on":1419364929,"updated_by":1,"updated_on":1419364929,"estimate":null,"estimate_forecast":null,"suite_id":9,"custom_preconds":null,"custom_steps":null,"custom_expected":null}';
  458. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  459. }
  460. {
  461. $VAR1 = 'index.php?/api/v2/add_run/9';
  462. $VAR2 = '200';
  463. $VAR3 = 'OK';
  464. $VAR4 = bless( {
  465. 'connection' => 'close',
  466. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  467. 'client-response-num' => 1,
  468. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  469. 'client-peer' => '192.168.122.217:80',
  470. 'content-length' => '654',
  471. '::std_case' => {
  472. 'client-date' => 'Client-Date',
  473. 'x-powered-by' => 'X-Powered-By',
  474. 'client-response-num' => 'Client-Response-Num',
  475. 'client-peer' => 'Client-Peer'
  476. },
  477. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  478. 'content-type' => 'application/json; charset=utf-8',
  479. 'server' => 'Apache/2.4.7 (Ubuntu)'
  480. }, 'HTTP::Headers' );
  481. $VAR5 = '{"id":22,"suite_id":9,"name":"SEND T-1000 INFILTRATION UNITS BACK IN TIME","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
  482. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  483. }
  484. {
  485. $VAR1 = 'index.php?/api/v2/get_runs/9';
  486. $VAR2 = '200';
  487. $VAR3 = 'OK';
  488. $VAR4 = bless( {
  489. 'connection' => 'close',
  490. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  491. 'client-response-num' => 1,
  492. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  493. 'client-peer' => '192.168.122.217:80',
  494. 'content-length' => '656',
  495. '::std_case' => {
  496. 'client-date' => 'Client-Date',
  497. 'x-powered-by' => 'X-Powered-By',
  498. 'client-response-num' => 'Client-Response-Num',
  499. 'client-peer' => 'Client-Peer'
  500. },
  501. 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  502. 'content-type' => 'application/json; charset=utf-8',
  503. 'server' => 'Apache/2.4.7 (Ubuntu)'
  504. }, 'HTTP::Headers' );
  505. $VAR5 = '[{"id":22,"suite_id":9,"name":"SEND T-1000 INFILTRATION UNITS BACK IN TIME","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}]';
  506. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  507. }
  508. {
  509. $VAR1 = 'index.php?/api/v2/get_runs/10';
  510. $VAR2 = '200';
  511. $VAR3 = 'OK';
  512. $VAR4 = bless( {
  513. 'connection' => 'close',
  514. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  515. 'client-response-num' => 1,
  516. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  517. 'client-peer' => '192.168.122.217:80',
  518. 'content-length' => '656',
  519. '::std_case' => {
  520. 'client-date' => 'Client-Date',
  521. 'x-powered-by' => 'X-Powered-By',
  522. 'client-response-num' => 'Client-Response-Num',
  523. 'client-peer' => 'Client-Peer'
  524. },
  525. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  526. 'content-type' => 'application/json; charset=utf-8',
  527. 'server' => 'Apache/2.4.7 (Ubuntu)'
  528. }, 'HTTP::Headers' );
  529. $VAR5 = '[
  530. {"id":1,"suite_id":9,"name":"TestingSuite","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"},
  531. {"id":2,"suite_id":9,"name":"OtherOtherSuite","description":"bah","completed_on":null}
  532. ]';
  533. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  534. }
  535. {
  536. $VAR1 = 'index.php?/api/v2/get_run/22';
  537. $VAR2 = '200';
  538. $VAR3 = 'OK';
  539. $VAR4 = bless( {
  540. 'connection' => 'close',
  541. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  542. 'client-response-num' => 1,
  543. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  544. 'client-peer' => '192.168.122.217:80',
  545. 'content-length' => '654',
  546. '::std_case' => {
  547. 'client-date' => 'Client-Date',
  548. 'x-powered-by' => 'X-Powered-By',
  549. 'client-response-num' => 'Client-Response-Num',
  550. 'client-peer' => 'Client-Peer'
  551. },
  552. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  553. 'content-type' => 'application/json; charset=utf-8',
  554. 'server' => 'Apache/2.4.7 (Ubuntu)'
  555. }, 'HTTP::Headers' );
  556. $VAR5 = '{"id":22,"suite_id":9,"name":"SEND T-1000 INFILTRATION UNITS BACK IN TIME","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
  557. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  558. }
  559. {
  560. $VAR1 = 'index.php?/api/v2/get_run/24';
  561. $VAR2 = '200';
  562. $VAR3 = 'OK';
  563. $VAR4 = bless( {
  564. 'connection' => 'close',
  565. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  566. 'client-response-num' => 1,
  567. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  568. 'client-peer' => '192.168.122.217:80',
  569. 'content-length' => '654',
  570. '::std_case' => {
  571. 'client-date' => 'Client-Date',
  572. 'x-powered-by' => 'X-Powered-By',
  573. 'client-response-num' => 'Client-Response-Num',
  574. 'client-peer' => 'Client-Peer'
  575. },
  576. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  577. 'content-type' => 'application/json; charset=utf-8',
  578. 'server' => 'Apache/2.4.7 (Ubuntu)'
  579. }, 'HTTP::Headers' );
  580. $VAR5 = '{"id":22,"suite_id":9,"name":"Executing the great plan","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
  581. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  582. }
  583. {
  584. $VAR1 = 'index.php?/api/v2/get_run/1';
  585. $VAR2 = '200';
  586. $VAR3 = 'OK';
  587. $VAR4 = bless( {
  588. 'connection' => 'close',
  589. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  590. 'client-response-num' => 1,
  591. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  592. 'client-peer' => '192.168.122.217:80',
  593. 'content-length' => '654',
  594. '::std_case' => {
  595. 'client-date' => 'Client-Date',
  596. 'x-powered-by' => 'X-Powered-By',
  597. 'client-response-num' => 'Client-Response-Num',
  598. 'client-peer' => 'Client-Peer'
  599. },
  600. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  601. 'content-type' => 'application/json; charset=utf-8',
  602. 'server' => 'Apache/2.4.7 (Ubuntu)'
  603. }, 'HTTP::Headers' );
  604. $VAR5 = '{"id":22,"suite_id":9,"name":"SEND T-1000 INFILTRATION UNITS BACK IN TIME","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
  605. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  606. }
  607. {
  608. $VAR1 = 'index.php?/api/v2/add_milestone/9';
  609. $VAR2 = '200';
  610. $VAR3 = 'OK';
  611. $VAR4 = bless( {
  612. 'connection' => 'close',
  613. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  614. 'client-response-num' => 1,
  615. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  616. 'client-peer' => '192.168.122.217:80',
  617. 'content-length' => '244',
  618. '::std_case' => {
  619. 'client-date' => 'Client-Date',
  620. 'x-powered-by' => 'X-Powered-By',
  621. 'client-response-num' => 'Client-Response-Num',
  622. 'client-peer' => 'Client-Peer'
  623. },
  624. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  625. 'content-type' => 'application/json; charset=utf-8',
  626. 'server' => 'Apache/2.4.7 (Ubuntu)'
  627. }, 'HTTP::Headers' );
  628. $VAR5 = '{"id":8,"name":"Humanity Exterminated","description":"Kill quota reached if not achieved in 5 years","due_on":1577152930,"is_completed":false,"completed_on":null,"project_id":9,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/milestones\\/view\\/8"}';
  629. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  630. }
  631. {
  632. $VAR1 = 'index.php?/api/v2/get_milestones/9';
  633. $VAR2 = '200';
  634. $VAR3 = 'OK';
  635. $VAR4 = bless( {
  636. 'connection' => 'close',
  637. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  638. 'client-response-num' => 1,
  639. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  640. 'client-peer' => '192.168.122.217:80',
  641. 'content-length' => '246',
  642. '::std_case' => {
  643. 'client-date' => 'Client-Date',
  644. 'x-powered-by' => 'X-Powered-By',
  645. 'client-response-num' => 'Client-Response-Num',
  646. 'client-peer' => 'Client-Peer'
  647. },
  648. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  649. 'content-type' => 'application/json; charset=utf-8',
  650. 'server' => 'Apache/2.4.7 (Ubuntu)'
  651. }, 'HTTP::Headers' );
  652. $VAR5 = '[{"id":8,"name":"Humanity Exterminated","description":"Kill quota reached if not achieved in 5 years","due_on":1577152930,"is_completed":false,"completed_on":null,"project_id":9,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/milestones\\/view\\/8"}]';
  653. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  654. }
  655. {
  656. $VAR1 = 'index.php?/api/v2/get_milestones/9';
  657. $VAR2 = '200';
  658. $VAR3 = 'OK';
  659. $VAR4 = bless( {
  660. 'connection' => 'close',
  661. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  662. 'client-response-num' => 1,
  663. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  664. 'client-peer' => '192.168.122.217:80',
  665. 'content-length' => '246',
  666. '::std_case' => {
  667. 'client-date' => 'Client-Date',
  668. 'x-powered-by' => 'X-Powered-By',
  669. 'client-response-num' => 'Client-Response-Num',
  670. 'client-peer' => 'Client-Peer'
  671. },
  672. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  673. 'content-type' => 'application/json; charset=utf-8',
  674. 'server' => 'Apache/2.4.7 (Ubuntu)'
  675. }, 'HTTP::Headers' );
  676. $VAR5 = '[{"id":8,"name":"Humanity Exterminated","description":"Kill quota reached if not achieved in 5 years","due_on":1577152930,"is_completed":false,"completed_on":null,"project_id":9,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/milestones\\/view\\/8"}]';
  677. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  678. }
  679. {
  680. $VAR1 = 'index.php?/api/v2/get_milestone/8';
  681. $VAR2 = '200';
  682. $VAR3 = 'OK';
  683. $VAR4 = bless( {
  684. 'connection' => 'close',
  685. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  686. 'client-response-num' => 1,
  687. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  688. 'client-peer' => '192.168.122.217:80',
  689. 'content-length' => '244',
  690. '::std_case' => {
  691. 'client-date' => 'Client-Date',
  692. 'x-powered-by' => 'X-Powered-By',
  693. 'client-response-num' => 'Client-Response-Num',
  694. 'client-peer' => 'Client-Peer'
  695. },
  696. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  697. 'content-type' => 'application/json; charset=utf-8',
  698. 'server' => 'Apache/2.4.7 (Ubuntu)'
  699. }, 'HTTP::Headers' );
  700. $VAR5 = '{"id":8,"name":"Humanity Exterminated","description":"Kill quota reached if not achieved in 5 years","due_on":1577152930,"is_completed":false,"completed_on":null,"project_id":9,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/milestones\\/view\\/8"}';
  701. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  702. }
  703. {
  704. $VAR1 = 'index.php?/api/v2/add_plan/9';
  705. $VAR2 = '200';
  706. $VAR3 = 'OK';
  707. $VAR4 = bless( {
  708. 'connection' => 'close',
  709. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  710. 'client-response-num' => 1,
  711. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  712. 'client-peer' => '192.168.122.217:80',
  713. 'content-length' => '1289',
  714. '::std_case' => {
  715. 'client-date' => 'Client-Date',
  716. 'x-powered-by' => 'X-Powered-By',
  717. 'client-response-num' => 'Client-Response-Num',
  718. 'client-peer' => 'Client-Peer'
  719. },
  720. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  721. 'content-type' => 'application/json; charset=utf-8',
  722. 'server' => 'Apache/2.4.7 (Ubuntu)'
  723. }, 'HTTP::Headers' );
  724. $VAR5 = '{"id":23,"name":"GosPlan","description":"Soviet 5-year agriculture plan to liquidate Kulaks","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/23","entries":[{"id":"271443a5-aacf-467e-8993-b4f7001195cf","suite_id":9,"name":"Executing the great plan","runs":[{"id":24,"suite_id":9,"name":"Executing the great plan","description":null,"milestone_id":8,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":23,"entry_index":1,"entry_id":"271443a5-aacf-467e-8993-b4f7001195cf","config":null,"config_ids":[],"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/24"}]}]}';
  725. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  726. }
  727. {
  728. $VAR1 = 'index.php?/api/v2/get_plans/9';
  729. $VAR2 = '200';
  730. $VAR3 = 'OK';
  731. $VAR4 = bless( {
  732. 'connection' => 'close',
  733. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  734. 'client-response-num' => 1,
  735. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  736. 'client-peer' => '192.168.122.217:80',
  737. 'content-length' => '554',
  738. '::std_case' => {
  739. 'client-date' => 'Client-Date',
  740. 'x-powered-by' => 'X-Powered-By',
  741. 'client-response-num' => 'Client-Response-Num',
  742. 'client-peer' => 'Client-Peer'
  743. },
  744. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  745. 'content-type' => 'application/json; charset=utf-8',
  746. 'server' => 'Apache/2.4.7 (Ubuntu)'
  747. }, 'HTTP::Headers' );
  748. $VAR5 = '[{"id":23,"name":"GosPlan","description":"Soviet 5-year agriculture plan to liquidate Kulaks","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/23"}]';
  749. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  750. }
  751. {
  752. $VAR1 = 'index.php?/api/v2/get_plans/10';
  753. $VAR2 = '200';
  754. $VAR3 = 'OK';
  755. $VAR4 = bless( {
  756. 'connection' => 'close',
  757. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  758. 'client-response-num' => 1,
  759. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  760. 'client-peer' => '192.168.122.217:80',
  761. 'content-length' => '554',
  762. '::std_case' => {
  763. 'client-date' => 'Client-Date',
  764. 'x-powered-by' => 'X-Powered-By',
  765. 'client-response-num' => 'Client-Response-Num',
  766. 'client-peer' => 'Client-Peer'
  767. },
  768. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  769. 'content-type' => 'application/json; charset=utf-8',
  770. 'server' => 'Apache/2.4.7 (Ubuntu)'
  771. }, 'HTTP::Headers' );
  772. $VAR5 = '[{"id":23,"name":"GosPlan","description":"Soviet 5-year agriculture plan to liquidate Kulaks","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/23"}]';
  773. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  774. }
  775. {
  776. $VAR1 = 'index.php?/api/v2/get_plan/23';
  777. $VAR2 = '200';
  778. $VAR3 = 'OK';
  779. $VAR4 = bless( {
  780. 'connection' => 'close',
  781. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  782. 'client-response-num' => 1,
  783. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  784. 'client-peer' => '192.168.122.217:80',
  785. 'content-length' => '1289',
  786. '::std_case' => {
  787. 'client-date' => 'Client-Date',
  788. 'x-powered-by' => 'X-Powered-By',
  789. 'client-response-num' => 'Client-Response-Num',
  790. 'client-peer' => 'Client-Peer'
  791. },
  792. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  793. 'content-type' => 'application/json; charset=utf-8',
  794. 'server' => 'Apache/2.4.7 (Ubuntu)'
  795. }, 'HTTP::Headers' );
  796. $VAR5 = '{"id":23,"name":"GosPlan","description":"Soviet 5-year agriculture plan to liquidate Kulaks","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/23","entries":[{"id":"271443a5-aacf-467e-8993-b4f7001195cf","suite_id":9,"name":"Executing the great plan","runs":[{"id":1,"suite_id":9,"name":"Executing the great plan","description":null,"milestone_id":8,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":23,"entry_index":1,"entry_id":"271443a5-aacf-467e-8993-b4f7001195cf","config":"testConfig","config_ids":[1],"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/24"}]}]}';
  797. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  798. }
  799. {
  800. $VAR1 = 'index.php?/api/v2/get_tests/22';
  801. $VAR2 = '200';
  802. $VAR3 = 'OK';
  803. $VAR4 = bless( {
  804. 'connection' => 'close',
  805. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  806. 'client-response-num' => 1,
  807. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  808. 'client-peer' => '192.168.122.217:80',
  809. 'content-length' => '276',
  810. '::std_case' => {
  811. 'client-date' => 'Client-Date',
  812. 'x-powered-by' => 'X-Powered-By',
  813. 'client-response-num' => 'Client-Response-Num',
  814. 'client-peer' => 'Client-Peer'
  815. },
  816. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  817. 'content-type' => 'application/json; charset=utf-8',
  818. 'server' => 'Apache/2.4.7 (Ubuntu)'
  819. }, 'HTTP::Headers' );
  820. $VAR5 = '[{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"STROGGIFY POPULATION CENTERS","type_id":6,"priority_id":4,"estimate":null,"estimate_forecast":null,"refs":null,"milestone_id":null,"custom_preconds":null,"custom_steps":null,"custom_expected":null}]';
  821. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  822. }
  823. {
  824. $VAR1 = 'index.php?/api/v2/get_tests/2';
  825. $VAR2 = '200';
  826. $VAR3 = 'OK';
  827. $VAR4 = bless( {
  828. 'connection' => 'close',
  829. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  830. 'client-response-num' => 1,
  831. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  832. 'client-peer' => '192.168.122.217:80',
  833. 'content-length' => '276',
  834. '::std_case' => {
  835. 'client-date' => 'Client-Date',
  836. 'x-powered-by' => 'X-Powered-By',
  837. 'client-response-num' => 'Client-Response-Num',
  838. 'client-peer' => 'Client-Peer'
  839. },
  840. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  841. 'content-type' => 'application/json; charset=utf-8',
  842. 'server' => 'Apache/2.4.7 (Ubuntu)'
  843. }, 'HTTP::Headers' );
  844. $VAR5 = '[{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"faker.test","type_id":6,"priority_id":4,"estimate":null,"estimate_forecast":null,"refs":null,"milestone_id":null,"custom_preconds":null,"custom_steps":null,"custom_expected":null}]';
  845. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  846. }
  847. {
  848. $VAR1 = 'index.php?/api/v2/get_tests/1';
  849. $VAR2 = '200';
  850. $VAR3 = 'OK';
  851. $VAR4 = bless( {
  852. 'connection' => 'close',
  853. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  854. 'client-response-num' => 1,
  855. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  856. 'client-peer' => '192.168.122.217:80',
  857. 'content-length' => '276',
  858. '::std_case' => {
  859. 'client-date' => 'Client-Date',
  860. 'x-powered-by' => 'X-Powered-By',
  861. 'client-response-num' => 'Client-Response-Num',
  862. 'client-peer' => 'Client-Peer'
  863. },
  864. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  865. 'content-type' => 'application/json; charset=utf-8',
  866. 'server' => 'Apache/2.4.7 (Ubuntu)'
  867. }, 'HTTP::Headers' );
  868. $VAR5 = '[{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"STORAGE TANKS SEARED","type_id":6,"priority_id":4,"estimate":null,"estimate_forecast":null,"refs":null,"milestone_id":null,"custom_preconds":null,"custom_steps":null,"custom_expected":null},{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"NOT SO SEARED AFTER ARR"},{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"skipall.test"} ]';
  869. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  870. }
  871. {
  872. $VAR1 = 'index.php?/api/v2/get_test/15';
  873. $VAR2 = '200';
  874. $VAR3 = 'OK';
  875. $VAR4 = bless( {
  876. 'connection' => 'close',
  877. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  878. 'client-response-num' => 1,
  879. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  880. 'client-peer' => '192.168.122.217:80',
  881. 'content-length' => '274',
  882. '::std_case' => {
  883. 'client-date' => 'Client-Date',
  884. 'x-powered-by' => 'X-Powered-By',
  885. 'client-response-num' => 'Client-Response-Num',
  886. 'client-peer' => 'Client-Peer'
  887. },
  888. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  889. 'content-type' => 'application/json; charset=utf-8',
  890. 'server' => 'Apache/2.4.7 (Ubuntu)'
  891. }, 'HTTP::Headers' );
  892. $VAR5 = '{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"STROGGIFY POPULATION CENTERS","type_id":6,"priority_id":4,"estimate":null,"estimate_forecast":null,"refs":null,"milestone_id":null,"custom_preconds":null,"custom_steps":null,"custom_expected":null}';
  893. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  894. }
  895. {
  896. $VAR1 = 'index.php?/api/v2/get_result_fields';
  897. $VAR2 = '200';
  898. $VAR3 = 'OK';
  899. $VAR4 = bless( {
  900. 'connection' => 'close',
  901. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  902. 'client-response-num' => 1,
  903. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  904. 'client-peer' => '192.168.122.217:80',
  905. 'content-length' => '2',
  906. '::std_case' => {
  907. 'client-date' => 'Client-Date',
  908. 'x-powered-by' => 'X-Powered-By',
  909. 'client-response-num' => 'Client-Response-Num',
  910. 'client-peer' => 'Client-Peer'
  911. },
  912. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  913. 'content-type' => 'application/json; charset=utf-8',
  914. 'server' => 'Apache/2.4.7 (Ubuntu)'
  915. }, 'HTTP::Headers' );
  916. $VAR5 = '[]';
  917. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  918. }
  919. {
  920. $VAR1 = 'index.php?/api/v2/get_statuses';
  921. $VAR2 = '200';
  922. $VAR3 = 'OK';
  923. $VAR4 = bless( {
  924. 'connection' => 'close',
  925. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  926. 'client-response-num' => 1,
  927. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  928. 'client-peer' => '192.168.122.217:80',
  929. 'content-length' => '830',
  930. '::std_case' => {
  931. 'client-date' => 'Client-Date',
  932. 'x-powered-by' => 'X-Powered-By',
  933. 'client-response-num' => 'Client-Response-Num',
  934. 'client-peer' => 'Client-Peer'
  935. },
  936. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  937. 'content-type' => 'application/json; charset=utf-8',
  938. 'server' => 'Apache/2.4.7 (Ubuntu)'
  939. }, 'HTTP::Headers' );
  940. $VAR5 = '[{"id":1,"name":"passed","label":"Passed","color_dark":6667107,"color_medium":9820525,"color_bright":12709313,"is_system":true,"is_untested":false,"is_final":true},{"id":2,"name":"blocked","label":"Blocked","color_dark":9474192,"color_medium":13684944,"color_bright":14737632,"is_system":true,"is_untested":false,"is_final":true},{"id":3,"name":"untested","label":"Untested","color_dark":11579568,"color_medium":15395562,"color_bright":15790320,"is_system":true,"is_untested":true,"is_final":false},{"id":4,"name":"retest","label":"Retest","color_dark":13026868,"color_medium":15593088,"color_bright":16448182,"is_system":true,"is_untested":false,"is_final":false},{"id":5,"name":"failed","label":"Failed","color_dark":14250867,"color_medium":15829135,"color_bright":16631751,"is_system":true,"is_untested":false,"is_final":true},{"id":6,"name":"skip","label":"Skipped"},{"id":7,"name":"todo_fail","label":"TODO (failed)"},{"id":8,"name":"todo_pass","label":"TODO (passed)"}]';
  941. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  942. }
  943. {
  944. $VAR1 = 'index.php?/api/v2/add_result/15';
  945. $VAR2 = '200';
  946. $VAR3 = 'OK';
  947. $VAR4 = bless( {
  948. 'connection' => 'close',
  949. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  950. 'client-response-num' => 1,
  951. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  952. 'client-peer' => '192.168.122.217:80',
  953. 'content-length' => '174',
  954. '::std_case' => {
  955. 'client-date' => 'Client-Date',
  956. 'x-powered-by' => 'X-Powered-By',
  957. 'client-response-num' => 'Client-Response-Num',
  958. 'client-peer' => 'Client-Peer'
  959. },
  960. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  961. 'content-type' => 'application/json; charset=utf-8',
  962. 'server' => 'Apache/2.4.7 (Ubuntu)'
  963. }, 'HTTP::Headers' );
  964. $VAR5 = '{"id":8,"test_id":15,"status_id":1,"created_by":1,"created_on":1419364931,"assignedto_id":null,"comment":"REAPER FORCES INBOUND","version":null,"elapsed":null,"defects":null}';
  965. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  966. }
  967. {
  968. $VAR1 = 'index.php?/api/v2/add_result/10';
  969. $VAR2 = '200';
  970. $VAR3 = 'OK';
  971. $VAR4 = bless( {
  972. 'connection' => 'close',
  973. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  974. 'client-response-num' => 1,
  975. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  976. 'client-peer' => '192.168.122.217:80',
  977. 'content-length' => '174',
  978. '::std_case' => {
  979. 'client-date' => 'Client-Date',
  980. 'x-powered-by' => 'X-Powered-By',
  981. 'client-response-num' => 'Client-Response-Num',
  982. 'client-peer' => 'Client-Peer'
  983. },
  984. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  985. 'content-type' => 'application/json; charset=utf-8',
  986. 'server' => 'Apache/2.4.7 (Ubuntu)'
  987. }, 'HTTP::Headers' );
  988. $VAR5 = '{"id":9,"test_id":10,"status_id":1,"created_by":1,"created_on":1419364931,"assignedto_id":null,"comment":"REAPER FORCES INBOUND","version":null,"elapsed":null,"defects":null}';
  989. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  990. }
  991. {
  992. $VAR1 = 'index.php?/api/v2/add_result/11';
  993. $VAR2 = '200';
  994. $VAR3 = 'OK';
  995. $VAR4 = bless( {
  996. 'connection' => 'close',
  997. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  998. 'client-response-num' => 1,
  999. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1000. 'client-peer' => '192.168.122.217:80',
  1001. 'content-length' => '174',
  1002. '::std_case' => {
  1003. 'client-date' => 'Client-Date',
  1004. 'x-powered-by' => 'X-Powered-By',
  1005. 'client-response-num' => 'Client-Response-Num',
  1006. 'client-peer' => 'Client-Peer'
  1007. },
  1008. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1009. 'content-type' => 'application/json; charset=utf-8',
  1010. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1011. }, 'HTTP::Headers' );
  1012. $VAR5 = '{"id":9,"test_id":10,"status_id":1,"created_by":1,"created_on":1419364931,"assignedto_id":null,"comment":"REAPER FORCES INBOUND","version":null,"elapsed":null,"defects":null}';
  1013. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1014. }
  1015. {
  1016. $VAR1 = 'index.php?/api/v2/get_results/15';
  1017. $VAR2 = '200';
  1018. $VAR3 = 'OK';
  1019. $VAR4 = bless( {
  1020. 'connection' => 'close',
  1021. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1022. 'client-response-num' => 1,
  1023. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1024. 'client-peer' => '192.168.122.217:80',
  1025. 'content-length' => '176',
  1026. '::std_case' => {
  1027. 'client-date' => 'Client-Date',
  1028. 'x-powered-by' => 'X-Powered-By',
  1029. 'client-response-num' => 'Client-Response-Num',
  1030. 'client-peer' => 'Client-Peer'
  1031. },
  1032. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1033. 'content-type' => 'application/json; charset=utf-8',
  1034. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1035. }, 'HTTP::Headers' );
  1036. $VAR5 = '[{"id":8,"test_id":15,"status_id":1,"created_by":1,"created_on":1419364931,"assignedto_id":null,"comment":"REAPER FORCES INBOUND","version":null,"elapsed":null,"defects":null}]';
  1037. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1038. }
  1039. {
  1040. $VAR1 = 'index.php?/api/v2/get_results/1';
  1041. $VAR2 = '200';
  1042. $VAR3 = 'OK';
  1043. $VAR4 = bless( {
  1044. 'connection' => 'close',
  1045. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1046. 'client-response-num' => 1,
  1047. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1048. 'client-peer' => '192.168.122.217:80',
  1049. 'content-length' => '176',
  1050. '::std_case' => {
  1051. 'client-date' => 'Client-Date',
  1052. 'x-powered-by' => 'X-Powered-By',
  1053. 'client-response-num' => 'Client-Response-Num',
  1054. 'client-peer' => 'Client-Peer'
  1055. },
  1056. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1057. 'content-type' => 'application/json; charset=utf-8',
  1058. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1059. }, 'HTTP::Headers' );
  1060. $VAR5 = '[{"id":8,"test_id":15,"status_id":1,"created_by":1,"created_on":1419364931,"assignedto_id":null,"comment":"REAPER FORCES INBOUND","version":null,"elapsed":"2s","defects":null}]';
  1061. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1062. }
  1063. {
  1064. $VAR1 = 'index.php?/api/v2/delete_plan/23';
  1065. $VAR2 = '200';
  1066. $VAR3 = 'OK';
  1067. $VAR4 = bless( {
  1068. 'connection' => 'close',
  1069. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1070. 'client-response-num' => 1,
  1071. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1072. 'client-peer' => '192.168.122.217:80',
  1073. 'content-length' => '0',
  1074. '::std_case' => {
  1075. 'client-date' => 'Client-Date',
  1076. 'x-powered-by' => 'X-Powered-By',
  1077. 'client-response-num' => 'Client-Response-Num',
  1078. 'client-peer' => 'Client-Peer'
  1079. },
  1080. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1081. 'content-type' => 'application/json; charset=utf-8',
  1082. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1083. }, 'HTTP::Headers' );
  1084. $VAR5 = '';
  1085. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1086. }
  1087. {
  1088. $VAR1 = 'index.php?/api/v2/delete_milestone/8';
  1089. $VAR2 = '200';
  1090. $VAR3 = 'OK';
  1091. $VAR4 = bless( {
  1092. 'connection' => 'close',
  1093. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1094. 'client-response-num' => 1,
  1095. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1096. 'client-peer' => '192.168.122.217:80',
  1097. 'content-length' => '0',
  1098. '::std_case' => {
  1099. 'client-date' => 'Client-Date',
  1100. 'x-powered-by' => 'X-Powered-By',
  1101. 'client-response-num' => 'Client-Response-Num',
  1102. 'client-peer' => 'Client-Peer'
  1103. },
  1104. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1105. 'content-type' => 'application/json; charset=utf-8',
  1106. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1107. }, 'HTTP::Headers' );
  1108. $VAR5 = '';
  1109. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1110. }
  1111. {
  1112. $VAR1 = 'index.php?/api/v2/delete_run/22';
  1113. $VAR2 = '200';
  1114. $VAR3 = 'OK';
  1115. $VAR4 = bless( {
  1116. 'connection' => 'close',
  1117. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1118. 'client-response-num' => 1,
  1119. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1120. 'client-peer' => '192.168.122.217:80',
  1121. 'content-length' => '0',
  1122. '::std_case' => {
  1123. 'client-date' => 'Client-Date',
  1124. 'x-powered-by' => 'X-Powered-By',
  1125. 'client-response-num' => 'Client-Response-Num',
  1126. 'client-peer' => 'Client-Peer'
  1127. },
  1128. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1129. 'content-type' => 'application/json; charset=utf-8',
  1130. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1131. }, 'HTTP::Headers' );
  1132. $VAR5 = '';
  1133. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1134. }
  1135. {
  1136. $VAR1 = 'index.php?/api/v2/delete_case/8';
  1137. $VAR2 = '200';
  1138. $VAR3 = 'OK';
  1139. $VAR4 = bless( {
  1140. 'connection' => 'close',
  1141. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1142. 'client-response-num' => 1,
  1143. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1144. 'client-peer' => '192.168.122.217:80',
  1145. 'content-length' => '0',
  1146. '::std_case' => {
  1147. 'client-date' => 'Client-Date',
  1148. 'x-powered-by' => 'X-Powered-By',
  1149. 'client-response-num' => 'Client-Response-Num',
  1150. 'client-peer' => 'Client-Peer'
  1151. },
  1152. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1153. 'content-type' => 'application/json; charset=utf-8',
  1154. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1155. }, 'HTTP::Headers' );
  1156. $VAR5 = '';
  1157. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1158. }
  1159. {
  1160. $VAR1 = 'index.php?/api/v2/delete_section/9';
  1161. $VAR2 = '200';
  1162. $VAR3 = 'OK';
  1163. $VAR4 = bless( {
  1164. 'connection' => 'close',
  1165. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1166. 'client-response-num' => 1,
  1167. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1168. 'client-peer' => '192.168.122.217:80',
  1169. 'content-length' => '0',
  1170. '::std_case' => {
  1171. 'client-date' => 'Client-Date',
  1172. 'x-powered-by' => 'X-Powered-By',
  1173. 'client-response-num' => 'Client-Response-Num',
  1174. 'client-peer' => 'Client-Peer'
  1175. },
  1176. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1177. 'content-type' => 'application/json; charset=utf-8',
  1178. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1179. }, 'HTTP::Headers' );
  1180. $VAR5 = '';
  1181. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1182. }
  1183. {
  1184. $VAR1 = 'index.php?/api/v2/delete_suite/9';
  1185. $VAR2 = '200';
  1186. $VAR3 = 'OK';
  1187. $VAR4 = bless( {
  1188. 'connection' => 'close',
  1189. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1190. 'client-response-num' => 1,
  1191. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1192. 'client-peer' => '192.168.122.217:80',
  1193. 'content-length' => '0',
  1194. '::std_case' => {
  1195. 'client-date' => 'Client-Date',
  1196. 'x-powered-by' => 'X-Powered-By',
  1197. 'client-response-num' => 'Client-Response-Num',
  1198. 'client-peer' => 'Client-Peer'
  1199. },
  1200. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1201. 'content-type' => 'application/json; charset=utf-8',
  1202. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1203. }, 'HTTP::Headers' );
  1204. $VAR5 = '';
  1205. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1206. }
  1207. {
  1208. $VAR1 = 'index.php?/api/v2/delete_project/9';
  1209. $VAR2 = '200';
  1210. $VAR3 = 'OK';
  1211. $VAR4 = bless( {
  1212. 'connection' => 'close',
  1213. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1214. 'client-response-num' => 1,
  1215. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1216. 'client-peer' => '192.168.122.217:80',
  1217. 'content-length' => '0',
  1218. '::std_case' => {
  1219. 'client-date' => 'Client-Date',
  1220. 'x-powered-by' => 'X-Powered-By',
  1221. 'client-response-num' => 'Client-Response-Num',
  1222. 'client-peer' => 'Client-Peer'
  1223. },
  1224. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1225. 'content-type' => 'application/json; charset=utf-8',
  1226. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1227. }, 'HTTP::Headers' );
  1228. $VAR5 = '';
  1229. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1230. }
  1231. {
  1232. $VAR1 = 'index.php?/api/v2/get_configs/9';
  1233. $VAR2 = '200';
  1234. $VAR3 = 'OK';
  1235. $VAR4 = bless( {
  1236. 'connection' => 'close',
  1237. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1238. 'client-response-num' => 1,
  1239. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1240. 'client-peer' => '192.168.122.217:80',
  1241. 'content-length' => '0',
  1242. '::std_case' => {
  1243. 'client-date' => 'Client-Date',
  1244. 'x-powered-by' => 'X-Powered-By',
  1245. 'client-response-num' => 'Client-Response-Num',
  1246. 'client-peer' => 'Client-Peer'
  1247. },
  1248. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1249. 'content-type' => 'application/json; charset=utf-8',
  1250. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1251. }, 'HTTP::Headers' );
  1252. $VAR5 = '[]';
  1253. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1254. }
  1255. {
  1256. $VAR1 = 'index.php?/api/v2/get_configs/10';
  1257. $VAR2 = '200';
  1258. $VAR3 = 'OK';
  1259. $VAR4 = bless( {
  1260. 'connection' => 'close',
  1261. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1262. 'client-response-num' => 1,
  1263. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1264. 'client-peer' => '192.168.122.217:80',
  1265. 'content-length' => '0',
  1266. '::std_case' => {
  1267. 'client-date' => 'Client-Date',
  1268. 'x-powered-by' => 'X-Powered-By',
  1269. 'client-response-num' => 'Client-Response-Num',
  1270. 'client-peer' => 'Client-Peer'
  1271. },
  1272. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1273. 'content-type' => 'application/json; charset=utf-8',
  1274. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1275. }, 'HTTP::Headers' );
  1276. $VAR5 = '["testConfig"]';
  1277. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1278. }
  1279. 1;