TestRailMock.pm 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  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/1';
  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/add_milestone/9';
  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' => '244',
  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":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"}';
  605. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  606. }
  607. {
  608. $VAR1 = 'index.php?/api/v2/get_milestones/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' => '246',
  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_milestone/8';
  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' => '244',
  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/add_plan/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' => '1289',
  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":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"}]}]}';
  701. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  702. }
  703. {
  704. $VAR1 = 'index.php?/api/v2/get_plans/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' => '554',
  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"}]';
  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_plan/23';
  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' => '1289',
  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","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"}]}]}';
  773. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  774. }
  775. {
  776. $VAR1 = 'index.php?/api/v2/get_tests/22';
  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' => '276',
  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":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}]';
  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/2';
  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:11 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":"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}]';
  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/1';
  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":"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"} ]';
  845. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  846. }
  847. {
  848. $VAR1 = 'index.php?/api/v2/get_test/15';
  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:11 GMT',
  856. 'client-peer' => '192.168.122.217:80',
  857. 'content-length' => '274',
  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":"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}';
  869. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  870. }
  871. {
  872. $VAR1 = 'index.php?/api/v2/get_result_fields';
  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' => '2',
  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 = '[]';
  893. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  894. }
  895. {
  896. $VAR1 = 'index.php?/api/v2/get_statuses';
  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' => '830',
  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 = '[{"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)"}]';
  917. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  918. }
  919. {
  920. $VAR1 = 'index.php?/api/v2/add_result/15';
  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' => '174',
  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":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}';
  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/10';
  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":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}';
  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/11';
  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/get_results/15';
  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' => '176',
  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":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}]';
  1013. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1014. }
  1015. {
  1016. $VAR1 = 'index.php?/api/v2/delete_plan/23';
  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' => '0',
  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 = '';
  1037. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1038. }
  1039. {
  1040. $VAR1 = 'index.php?/api/v2/delete_milestone/8';
  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' => '0',
  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 = '';
  1061. $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
  1062. }
  1063. {
  1064. $VAR1 = 'index.php?/api/v2/delete_run/22';
  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_case/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_section/9';
  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_suite/9';
  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:12 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:12 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_project/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:12 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:12 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. 1;