TestRailMock.pm 84 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682
  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/add_run/10';
  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' => '654',
  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":8675309,"suite_id":9,"name":"TestingSuite2","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/9';
  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:09 GMT',
  526. 'content-type' => 'application/json; charset=utf-8',
  527. 'server' => 'Apache/2.4.7 (Ubuntu)'
  528. }, 'HTTP::Headers' );
  529. $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"}]';
  530. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  531. }
  532. {
  533. $VAR1 = 'index.php?/api/v2/get_runs/10';
  534. $VAR2 = '200';
  535. $VAR3 = 'OK';
  536. $VAR4 = bless( {
  537. 'connection' => 'close',
  538. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  539. 'client-response-num' => 1,
  540. 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
  541. 'client-peer' => '192.168.122.217:80',
  542. 'content-length' => '656',
  543. '::std_case' => {
  544. 'client-date' => 'Client-Date',
  545. 'x-powered-by' => 'X-Powered-By',
  546. 'client-response-num' => 'Client-Response-Num',
  547. 'client-peer' => 'Client-Peer'
  548. },
  549. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  550. 'content-type' => 'application/json; charset=utf-8',
  551. 'server' => 'Apache/2.4.7 (Ubuntu)'
  552. }, 'HTTP::Headers' );
  553. $VAR5 = '[
  554. {"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"},
  555. {"id":2,"suite_id":9,"name":"OtherOtherSuite","description":"bah","completed_on":null}
  556. ]';
  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/22';
  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":"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"}';
  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/24';
  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":"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"}';
  605. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  606. }
  607. {
  608. $VAR1 = 'index.php?/api/v2/get_run/1';
  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' => '654',
  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":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"}';
  629. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  630. }
  631. {
  632. $VAR1 = 'index.php?/api/v2/add_milestone/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' => '244',
  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_milestones/9';
  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' => '246',
  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/get_milestone/8';
  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' => '244',
  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":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"}';
  725. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  726. }
  727. {
  728. $VAR1 = 'index.php?/api/v2/add_plan/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' => '1289',
  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","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"}]}]}';
  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/9';
  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_plans/10';
  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' => '554',
  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"},
  797. {"id":24,"name":"mah dubz plan","description":"bogozone","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\\/24"}]';
  798. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  799. }
  800. {
  801. $VAR1 = 'index.php?/api/v2/get_plan/23';
  802. $VAR2 = '200';
  803. $VAR3 = 'OK';
  804. $VAR4 = bless( {
  805. 'connection' => 'close',
  806. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  807. 'client-response-num' => 1,
  808. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  809. 'client-peer' => '192.168.122.217:80',
  810. 'content-length' => '1289',
  811. '::std_case' => {
  812. 'client-date' => 'Client-Date',
  813. 'x-powered-by' => 'X-Powered-By',
  814. 'client-response-num' => 'Client-Response-Num',
  815. 'client-peer' => 'Client-Peer'
  816. },
  817. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  818. 'content-type' => 'application/json; charset=utf-8',
  819. 'server' => 'Apache/2.4.7 (Ubuntu)'
  820. }, 'HTTP::Headers' );
  821. $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"}]}]}';
  822. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  823. }
  824. {
  825. $VAR1 = 'index.php?/api/v2/get_plan/24';
  826. $VAR2 = '200';
  827. $VAR3 = 'OK';
  828. $VAR4 = bless( {
  829. 'connection' => 'close',
  830. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  831. 'client-response-num' => 1,
  832. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  833. 'client-peer' => '192.168.122.217:80',
  834. 'content-length' => '1289',
  835. '::std_case' => {
  836. 'client-date' => 'Client-Date',
  837. 'x-powered-by' => 'X-Powered-By',
  838. 'client-response-num' => 'Client-Response-Num',
  839. 'client-peer' => 'Client-Peer'
  840. },
  841. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  842. 'content-type' => 'application/json; charset=utf-8',
  843. 'server' => 'Apache/2.4.7 (Ubuntu)'
  844. }, 'HTTP::Headers' );
  845. $VAR5 = '{"id":24,"name":"mah dubz plan","description":"bogoplan","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\\/24","entries":[{"id":"271443a5-aacf-467e-8993-b4f7001195cf","suite_id":9,"name":"Executing the great plan","runs":[{"id":1,"suite_id":9,"name":"TestingSuite","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":[2],"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/24"}]}]}';
  846. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  847. }
  848. {
  849. $VAR1 = 'index.php?/api/v2/get_tests/22';
  850. $VAR2 = '200';
  851. $VAR3 = 'OK';
  852. $VAR4 = bless( {
  853. 'connection' => 'close',
  854. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  855. 'client-response-num' => 1,
  856. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  857. 'client-peer' => '192.168.122.217:80',
  858. 'content-length' => '276',
  859. '::std_case' => {
  860. 'client-date' => 'Client-Date',
  861. 'x-powered-by' => 'X-Powered-By',
  862. 'client-response-num' => 'Client-Response-Num',
  863. 'client-peer' => 'Client-Peer'
  864. },
  865. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  866. 'content-type' => 'application/json; charset=utf-8',
  867. 'server' => 'Apache/2.4.7 (Ubuntu)'
  868. }, 'HTTP::Headers' );
  869. $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}]';
  870. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  871. }
  872. {
  873. $VAR1 = 'index.php?/api/v2/get_tests/2';
  874. $VAR2 = '200';
  875. $VAR3 = 'OK';
  876. $VAR4 = bless( {
  877. 'connection' => 'close',
  878. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  879. 'client-response-num' => 1,
  880. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  881. 'client-peer' => '192.168.122.217:80',
  882. 'content-length' => '276',
  883. '::std_case' => {
  884. 'client-date' => 'Client-Date',
  885. 'x-powered-by' => 'X-Powered-By',
  886. 'client-response-num' => 'Client-Response-Num',
  887. 'client-peer' => 'Client-Peer'
  888. },
  889. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  890. 'content-type' => 'application/json; charset=utf-8',
  891. 'server' => 'Apache/2.4.7 (Ubuntu)'
  892. }, 'HTTP::Headers' );
  893. $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}]';
  894. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  895. }
  896. {
  897. $VAR1 = 'index.php?/api/v2/get_tests/1';
  898. $VAR2 = '200';
  899. $VAR3 = 'OK';
  900. $VAR4 = bless( {
  901. 'connection' => 'close',
  902. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  903. 'client-response-num' => 1,
  904. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  905. 'client-peer' => '192.168.122.217:80',
  906. 'content-length' => '276',
  907. '::std_case' => {
  908. 'client-date' => 'Client-Date',
  909. 'x-powered-by' => 'X-Powered-By',
  910. 'client-response-num' => 'Client-Response-Num',
  911. 'client-peer' => 'Client-Peer'
  912. },
  913. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  914. 'content-type' => 'application/json; charset=utf-8',
  915. 'server' => 'Apache/2.4.7 (Ubuntu)'
  916. }, 'HTTP::Headers' );
  917. $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"} ]';
  918. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  919. }
  920. {
  921. $VAR1 = 'index.php?/api/v2/get_tests/8675309';
  922. $VAR2 = '200';
  923. $VAR3 = 'OK';
  924. $VAR4 = bless( {
  925. 'connection' => 'close',
  926. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  927. 'client-response-num' => 1,
  928. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  929. 'client-peer' => '192.168.122.217:80',
  930. 'content-length' => '276',
  931. '::std_case' => {
  932. 'client-date' => 'Client-Date',
  933. 'x-powered-by' => 'X-Powered-By',
  934. 'client-response-num' => 'Client-Response-Num',
  935. 'client-peer' => 'Client-Peer'
  936. },
  937. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  938. 'content-type' => 'application/json; charset=utf-8',
  939. 'server' => 'Apache/2.4.7 (Ubuntu)'
  940. }, 'HTTP::Headers' );
  941. $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"} ]';
  942. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  943. }
  944. {
  945. $VAR1 = 'index.php?/api/v2/get_test/15';
  946. $VAR2 = '200';
  947. $VAR3 = 'OK';
  948. $VAR4 = bless( {
  949. 'connection' => 'close',
  950. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  951. 'client-response-num' => 1,
  952. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  953. 'client-peer' => '192.168.122.217:80',
  954. 'content-length' => '274',
  955. '::std_case' => {
  956. 'client-date' => 'Client-Date',
  957. 'x-powered-by' => 'X-Powered-By',
  958. 'client-response-num' => 'Client-Response-Num',
  959. 'client-peer' => 'Client-Peer'
  960. },
  961. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  962. 'content-type' => 'application/json; charset=utf-8',
  963. 'server' => 'Apache/2.4.7 (Ubuntu)'
  964. }, 'HTTP::Headers' );
  965. $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}';
  966. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  967. }
  968. {
  969. $VAR1 = 'index.php?/api/v2/get_result_fields';
  970. $VAR2 = '200';
  971. $VAR3 = 'OK';
  972. $VAR4 = bless( {
  973. 'connection' => 'close',
  974. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  975. 'client-response-num' => 1,
  976. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  977. 'client-peer' => '192.168.122.217:80',
  978. 'content-length' => '2',
  979. '::std_case' => {
  980. 'client-date' => 'Client-Date',
  981. 'x-powered-by' => 'X-Powered-By',
  982. 'client-response-num' => 'Client-Response-Num',
  983. 'client-peer' => 'Client-Peer'
  984. },
  985. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  986. 'content-type' => 'application/json; charset=utf-8',
  987. 'server' => 'Apache/2.4.7 (Ubuntu)'
  988. }, 'HTTP::Headers' );
  989. $VAR5 = '[]';
  990. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  991. }
  992. {
  993. $VAR1 = 'index.php?/api/v2/get_statuses';
  994. $VAR2 = '200';
  995. $VAR3 = 'OK';
  996. $VAR4 = bless( {
  997. 'connection' => 'close',
  998. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  999. 'client-response-num' => 1,
  1000. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1001. 'client-peer' => '192.168.122.217:80',
  1002. 'content-length' => '830',
  1003. '::std_case' => {
  1004. 'client-date' => 'Client-Date',
  1005. 'x-powered-by' => 'X-Powered-By',
  1006. 'client-response-num' => 'Client-Response-Num',
  1007. 'client-peer' => 'Client-Peer'
  1008. },
  1009. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1010. 'content-type' => 'application/json; charset=utf-8',
  1011. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1012. }, 'HTTP::Headers' );
  1013. $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)"}]';
  1014. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1015. }
  1016. {
  1017. $VAR1 = 'index.php?/api/v2/add_result/15';
  1018. $VAR2 = '200';
  1019. $VAR3 = 'OK';
  1020. $VAR4 = bless( {
  1021. 'connection' => 'close',
  1022. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1023. 'client-response-num' => 1,
  1024. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1025. 'client-peer' => '192.168.122.217:80',
  1026. 'content-length' => '174',
  1027. '::std_case' => {
  1028. 'client-date' => 'Client-Date',
  1029. 'x-powered-by' => 'X-Powered-By',
  1030. 'client-response-num' => 'Client-Response-Num',
  1031. 'client-peer' => 'Client-Peer'
  1032. },
  1033. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1034. 'content-type' => 'application/json; charset=utf-8',
  1035. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1036. }, 'HTTP::Headers' );
  1037. $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}';
  1038. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1039. }
  1040. {
  1041. $VAR1 = 'index.php?/api/v2/add_result/10';
  1042. $VAR2 = '200';
  1043. $VAR3 = 'OK';
  1044. $VAR4 = bless( {
  1045. 'connection' => 'close',
  1046. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1047. 'client-response-num' => 1,
  1048. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1049. 'client-peer' => '192.168.122.217:80',
  1050. 'content-length' => '174',
  1051. '::std_case' => {
  1052. 'client-date' => 'Client-Date',
  1053. 'x-powered-by' => 'X-Powered-By',
  1054. 'client-response-num' => 'Client-Response-Num',
  1055. 'client-peer' => 'Client-Peer'
  1056. },
  1057. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1058. 'content-type' => 'application/json; charset=utf-8',
  1059. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1060. }, 'HTTP::Headers' );
  1061. $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}';
  1062. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1063. }
  1064. {
  1065. $VAR1 = 'index.php?/api/v2/add_result/11';
  1066. $VAR2 = '200';
  1067. $VAR3 = 'OK';
  1068. $VAR4 = bless( {
  1069. 'connection' => 'close',
  1070. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1071. 'client-response-num' => 1,
  1072. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1073. 'client-peer' => '192.168.122.217:80',
  1074. 'content-length' => '174',
  1075. '::std_case' => {
  1076. 'client-date' => 'Client-Date',
  1077. 'x-powered-by' => 'X-Powered-By',
  1078. 'client-response-num' => 'Client-Response-Num',
  1079. 'client-peer' => 'Client-Peer'
  1080. },
  1081. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1082. 'content-type' => 'application/json; charset=utf-8',
  1083. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1084. }, 'HTTP::Headers' );
  1085. $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}';
  1086. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1087. }
  1088. {
  1089. $VAR1 = 'index.php?/api/v2/get_results/15';
  1090. $VAR2 = '200';
  1091. $VAR3 = 'OK';
  1092. $VAR4 = bless( {
  1093. 'connection' => 'close',
  1094. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1095. 'client-response-num' => 1,
  1096. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1097. 'client-peer' => '192.168.122.217:80',
  1098. 'content-length' => '176',
  1099. '::std_case' => {
  1100. 'client-date' => 'Client-Date',
  1101. 'x-powered-by' => 'X-Powered-By',
  1102. 'client-response-num' => 'Client-Response-Num',
  1103. 'client-peer' => 'Client-Peer'
  1104. },
  1105. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1106. 'content-type' => 'application/json; charset=utf-8',
  1107. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1108. }, 'HTTP::Headers' );
  1109. $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}]';
  1110. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1111. }
  1112. {
  1113. $VAR1 = 'index.php?/api/v2/get_results/1';
  1114. $VAR2 = '200';
  1115. $VAR3 = 'OK';
  1116. $VAR4 = bless( {
  1117. 'connection' => 'close',
  1118. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1119. 'client-response-num' => 1,
  1120. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1121. 'client-peer' => '192.168.122.217:80',
  1122. 'content-length' => '176',
  1123. '::std_case' => {
  1124. 'client-date' => 'Client-Date',
  1125. 'x-powered-by' => 'X-Powered-By',
  1126. 'client-response-num' => 'Client-Response-Num',
  1127. 'client-peer' => 'Client-Peer'
  1128. },
  1129. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1130. 'content-type' => 'application/json; charset=utf-8',
  1131. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1132. }, 'HTTP::Headers' );
  1133. $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}]';
  1134. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1135. }
  1136. {
  1137. $VAR1 = 'index.php?/api/v2/delete_plan/23';
  1138. $VAR2 = '200';
  1139. $VAR3 = 'OK';
  1140. $VAR4 = bless( {
  1141. 'connection' => 'close',
  1142. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1143. 'client-response-num' => 1,
  1144. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1145. 'client-peer' => '192.168.122.217:80',
  1146. 'content-length' => '0',
  1147. '::std_case' => {
  1148. 'client-date' => 'Client-Date',
  1149. 'x-powered-by' => 'X-Powered-By',
  1150. 'client-response-num' => 'Client-Response-Num',
  1151. 'client-peer' => 'Client-Peer'
  1152. },
  1153. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1154. 'content-type' => 'application/json; charset=utf-8',
  1155. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1156. }, 'HTTP::Headers' );
  1157. $VAR5 = '';
  1158. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1159. }
  1160. {
  1161. $VAR1 = 'index.php?/api/v2/delete_milestone/8';
  1162. $VAR2 = '200';
  1163. $VAR3 = 'OK';
  1164. $VAR4 = bless( {
  1165. 'connection' => 'close',
  1166. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1167. 'client-response-num' => 1,
  1168. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1169. 'client-peer' => '192.168.122.217:80',
  1170. 'content-length' => '0',
  1171. '::std_case' => {
  1172. 'client-date' => 'Client-Date',
  1173. 'x-powered-by' => 'X-Powered-By',
  1174. 'client-response-num' => 'Client-Response-Num',
  1175. 'client-peer' => 'Client-Peer'
  1176. },
  1177. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1178. 'content-type' => 'application/json; charset=utf-8',
  1179. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1180. }, 'HTTP::Headers' );
  1181. $VAR5 = '';
  1182. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1183. }
  1184. {
  1185. $VAR1 = 'index.php?/api/v2/delete_run/22';
  1186. $VAR2 = '200';
  1187. $VAR3 = 'OK';
  1188. $VAR4 = bless( {
  1189. 'connection' => 'close',
  1190. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1191. 'client-response-num' => 1,
  1192. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1193. 'client-peer' => '192.168.122.217:80',
  1194. 'content-length' => '0',
  1195. '::std_case' => {
  1196. 'client-date' => 'Client-Date',
  1197. 'x-powered-by' => 'X-Powered-By',
  1198. 'client-response-num' => 'Client-Response-Num',
  1199. 'client-peer' => 'Client-Peer'
  1200. },
  1201. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1202. 'content-type' => 'application/json; charset=utf-8',
  1203. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1204. }, 'HTTP::Headers' );
  1205. $VAR5 = '';
  1206. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1207. }
  1208. {
  1209. $VAR1 = 'index.php?/api/v2/delete_case/8';
  1210. $VAR2 = '200';
  1211. $VAR3 = 'OK';
  1212. $VAR4 = bless( {
  1213. 'connection' => 'close',
  1214. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1215. 'client-response-num' => 1,
  1216. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1217. 'client-peer' => '192.168.122.217:80',
  1218. 'content-length' => '0',
  1219. '::std_case' => {
  1220. 'client-date' => 'Client-Date',
  1221. 'x-powered-by' => 'X-Powered-By',
  1222. 'client-response-num' => 'Client-Response-Num',
  1223. 'client-peer' => 'Client-Peer'
  1224. },
  1225. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1226. 'content-type' => 'application/json; charset=utf-8',
  1227. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1228. }, 'HTTP::Headers' );
  1229. $VAR5 = '';
  1230. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1231. }
  1232. {
  1233. $VAR1 = 'index.php?/api/v2/delete_section/9';
  1234. $VAR2 = '200';
  1235. $VAR3 = 'OK';
  1236. $VAR4 = bless( {
  1237. 'connection' => 'close',
  1238. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1239. 'client-response-num' => 1,
  1240. 'date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1241. 'client-peer' => '192.168.122.217:80',
  1242. 'content-length' => '0',
  1243. '::std_case' => {
  1244. 'client-date' => 'Client-Date',
  1245. 'x-powered-by' => 'X-Powered-By',
  1246. 'client-response-num' => 'Client-Response-Num',
  1247. 'client-peer' => 'Client-Peer'
  1248. },
  1249. 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
  1250. 'content-type' => 'application/json; charset=utf-8',
  1251. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1252. }, 'HTTP::Headers' );
  1253. $VAR5 = '';
  1254. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1255. }
  1256. {
  1257. $VAR1 = 'index.php?/api/v2/delete_suite/9';
  1258. $VAR2 = '200';
  1259. $VAR3 = 'OK';
  1260. $VAR4 = bless( {
  1261. 'connection' => 'close',
  1262. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1263. 'client-response-num' => 1,
  1264. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1265. 'client-peer' => '192.168.122.217:80',
  1266. 'content-length' => '0',
  1267. '::std_case' => {
  1268. 'client-date' => 'Client-Date',
  1269. 'x-powered-by' => 'X-Powered-By',
  1270. 'client-response-num' => 'Client-Response-Num',
  1271. 'client-peer' => 'Client-Peer'
  1272. },
  1273. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1274. 'content-type' => 'application/json; charset=utf-8',
  1275. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1276. }, 'HTTP::Headers' );
  1277. $VAR5 = '';
  1278. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1279. }
  1280. {
  1281. $VAR1 = 'index.php?/api/v2/delete_project/9';
  1282. $VAR2 = '200';
  1283. $VAR3 = 'OK';
  1284. $VAR4 = bless( {
  1285. 'connection' => 'close',
  1286. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1287. 'client-response-num' => 1,
  1288. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1289. 'client-peer' => '192.168.122.217:80',
  1290. 'content-length' => '0',
  1291. '::std_case' => {
  1292. 'client-date' => 'Client-Date',
  1293. 'x-powered-by' => 'X-Powered-By',
  1294. 'client-response-num' => 'Client-Response-Num',
  1295. 'client-peer' => 'Client-Peer'
  1296. },
  1297. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1298. 'content-type' => 'application/json; charset=utf-8',
  1299. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1300. }, 'HTTP::Headers' );
  1301. $VAR5 = '';
  1302. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1303. }
  1304. {
  1305. $VAR1 = 'index.php?/api/v2/get_configs/9';
  1306. $VAR2 = '200';
  1307. $VAR3 = 'OK';
  1308. $VAR4 = bless( {
  1309. 'connection' => 'close',
  1310. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1311. 'client-response-num' => 1,
  1312. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1313. 'client-peer' => '192.168.122.217:80',
  1314. 'content-length' => '0',
  1315. '::std_case' => {
  1316. 'client-date' => 'Client-Date',
  1317. 'x-powered-by' => 'X-Powered-By',
  1318. 'client-response-num' => 'Client-Response-Num',
  1319. 'client-peer' => 'Client-Peer'
  1320. },
  1321. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1322. 'content-type' => 'application/json; charset=utf-8',
  1323. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1324. }, 'HTTP::Headers' );
  1325. #Ripped from the headlines, lol -- see TR documentation
  1326. $VAR5 = '[
  1327. {
  1328. "configs": [
  1329. {
  1330. "group_id": 1,
  1331. "id": 1,
  1332. "name": "Chrome"
  1333. },
  1334. {
  1335. "group_id": 1,
  1336. "id": 2,
  1337. "name": "Firefox"
  1338. },
  1339. {
  1340. "group_id": 1,
  1341. "id": 3,
  1342. "name": "Internet Explorer"
  1343. }
  1344. ],
  1345. "id": 1,
  1346. "name": "Browsers",
  1347. "project_id": 1
  1348. },
  1349. {
  1350. "configs": [
  1351. {
  1352. "group_id": 2,
  1353. "id": 6,
  1354. "name": "Ubuntu 12"
  1355. },
  1356. {
  1357. "group_id": 2,
  1358. "id": 4,
  1359. "name": "Windows 7"
  1360. },
  1361. {
  1362. "group_id": 2,
  1363. "id": 5,
  1364. "name": "Windows 8"
  1365. }
  1366. ],
  1367. "id": 2,
  1368. "name": "Operating Systems",
  1369. "project_id": 1
  1370. }
  1371. ]';
  1372. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1373. }
  1374. {
  1375. $VAR1 = 'index.php?/api/v2/get_configs/10';
  1376. $VAR2 = '200';
  1377. $VAR3 = 'OK';
  1378. $VAR4 = bless( {
  1379. 'connection' => 'close',
  1380. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1381. 'client-response-num' => 1,
  1382. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1383. 'client-peer' => '192.168.122.217:80',
  1384. 'content-length' => '0',
  1385. '::std_case' => {
  1386. 'client-date' => 'Client-Date',
  1387. 'x-powered-by' => 'X-Powered-By',
  1388. 'client-response-num' => 'Client-Response-Num',
  1389. 'client-peer' => 'Client-Peer'
  1390. },
  1391. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1392. 'content-type' => 'application/json; charset=utf-8',
  1393. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1394. }, 'HTTP::Headers' );
  1395. $VAR5 = '[{
  1396. "configs": [
  1397. {
  1398. "group_id": 1,
  1399. "id": 1,
  1400. "name": "testConfig"
  1401. },
  1402. {
  1403. "group_id": 1,
  1404. "id": 2,
  1405. "name": "testPlatform1"
  1406. }
  1407. ],
  1408. "id": 1,
  1409. "name": "Bullpucky",
  1410. "project_id": 1
  1411. }
  1412. ]';
  1413. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1414. }
  1415. {
  1416. $VAR1 = 'index.php?/api/v2/add_plan_entry/23';
  1417. $VAR2 = '200';
  1418. $VAR3 = 'OK';
  1419. $VAR4 = bless( {
  1420. 'connection' => 'close',
  1421. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1422. 'client-response-num' => 1,
  1423. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1424. 'client-peer' => '192.168.122.217:80',
  1425. 'content-length' => '0',
  1426. '::std_case' => {
  1427. 'client-date' => 'Client-Date',
  1428. 'x-powered-by' => 'X-Powered-By',
  1429. 'client-response-num' => 'Client-Response-Num',
  1430. 'client-peer' => 'Client-Peer'
  1431. },
  1432. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1433. 'content-type' => 'application/json; charset=utf-8',
  1434. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1435. }, 'HTTP::Headers' );
  1436. $VAR5 = '{"runs": [{"id":666}]}';
  1437. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1438. }
  1439. {
  1440. $VAR1 = 'index.php?/api/v2/add_plan_entry/24';
  1441. $VAR2 = '200';
  1442. $VAR3 = 'OK';
  1443. $VAR4 = bless( {
  1444. 'connection' => 'close',
  1445. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1446. 'client-response-num' => 1,
  1447. 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1448. 'client-peer' => '192.168.122.217:80',
  1449. 'content-length' => '0',
  1450. '::std_case' => {
  1451. 'client-date' => 'Client-Date',
  1452. 'x-powered-by' => 'X-Powered-By',
  1453. 'client-response-num' => 'Client-Response-Num',
  1454. 'client-peer' => 'Client-Peer'
  1455. },
  1456. 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
  1457. 'content-type' => 'application/json; charset=utf-8',
  1458. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1459. }, 'HTTP::Headers' );
  1460. $VAR5 = '{"runs": [{"id":8675309}]}';
  1461. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1462. }
  1463. {
  1464. $VAR1 = 'index.php?/api/v2/get_run/666';
  1465. $VAR2 = '200';
  1466. $VAR3 = 'OK';
  1467. $VAR4 = bless( {
  1468. 'connection' => 'close',
  1469. 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
  1470. 'client-response-num' => 1,
  1471. 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  1472. 'client-peer' => '192.168.122.217:80',
  1473. 'content-length' => '654',
  1474. '::std_case' => {
  1475. 'client-date' => 'Client-Date',
  1476. 'x-powered-by' => 'X-Powered-By',
  1477. 'client-response-num' => 'Client-Response-Num',
  1478. 'client-peer' => 'Client-Peer'
  1479. },
  1480. 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
  1481. 'content-type' => 'application/json; charset=utf-8',
  1482. 'server' => 'Apache/2.4.7 (Ubuntu)'
  1483. }, 'HTTP::Headers' );
  1484. $VAR5 = '{"id":666,"suite_id":9,"name":"Dynamic Plan Run","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":23,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
  1485. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1486. }
  1487. 1;