PageRenderTime 61ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/spec/fakeweb/declaration.rb

https://github.com/RevolutionPrep/kokopelli
Ruby | 1392 lines | 1295 code | 97 blank | 0 comment | 0 complexity | 208b5381ae032d6d9fa26308c3939e2e MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. module FakeWeb
  2. module Declaration
  3. def self.http_request_internal_error
  4. FakeWeb.register_uri(:get, "https://example.com/internal_error&session=na1breezaspo5qded43ka7fh",
  5. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  6. <results>
  7. <status code=\"internal-error\" />
  8. <exception>
  9. Exception Backtrace
  10. </exception>
  11. </results>",
  12. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  13. end
  14. def self.http_request_indeterminant
  15. FakeWeb.register_uri(:get, "https://example.com/indeterminant&session=na1breezaspo5qded43ka7fh",
  16. :body => "",
  17. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  18. end
  19. def self.http_request_invalid
  20. FakeWeb.register_uri(:get, "https://example.com/invalid&session=na1breezaspo5qded43ka7fh",
  21. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  22. <results>
  23. <status code=\"invalid\">
  24. <invalid field=\"action\" type=\"enum\" subcode=\"no-such-item\"/>
  25. </status>
  26. </results>",
  27. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  28. end
  29. def self.http_request_failure
  30. FakeWeb.register_uri(:get, "https://example.com/failure&session=na1breezaspo5qded43ka7fh",
  31. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  32. <results>
  33. <status code=\"no-data\" />
  34. </results>",
  35. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  36. end
  37. def self.http_request_success
  38. FakeWeb.register_uri(:get, "https://example.com/success&session=na1breezaspo5qded43ka7fh",
  39. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  40. <results>
  41. <status code=\"ok\" />
  42. </results>",
  43. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  44. end
  45. def self.principal_update_Base_Obj
  46. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-update&account-id=1030182041&name=Base%20Obj&login=user@test.com&type=user&has-children=false&is-primary=false&is-hidden=false&session=na1breezaspo5qded43ka7fh",
  47. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  48. <results>
  49. <status code=\"ok\"/>
  50. <principal is-primary=\"false\" account-id=\"1030182041\" principal-id=\"1035770400\" has-children=\"false\" type=\"user\" is-hidden=\"false\">
  51. <ext-login>user@test.com</ext-login>
  52. <name>Base Obj</name>
  53. <login>user@test.com</login>
  54. </principal>
  55. </results>",
  56. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  57. end
  58. def self.principal_update_Base_Obj_for_User
  59. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-update&account-id=1030182041&name=Base%20Obj&login=user@test.com&type=user&has-children=false&is-primary=false&is-hidden=false&password=password&email=user@test.com&session=na1breezaspo5qded43ka7fh",
  60. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  61. <results>
  62. <status code=\"ok\"/>
  63. <principal has-children=\"false\" type=\"user\" is-hidden=\"false\" account-id=\"1030182041\" is-primary=\"false\" principal-id=\"1035814880\">
  64. <ext-login>user@test.com</ext-login>
  65. <name>Base Obj</name>
  66. <login>user@test.com</login>
  67. </principal>
  68. </results>",
  69. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  70. end
  71. def self.principal_update_Other_Obj_for_User
  72. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-update&principal-id=1035814880&account-id=1030182041&training-group-id=1234&name=Other%20Obj&login=other_user@test.com&has-children=true&is-primary=true&is-hidden=true&password=newpassword&email=other_user@test.com&session=na1breezaspo5qded43ka7fh",
  73. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  74. <results>
  75. <status code=\"ok\"/>
  76. </results>",
  77. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  78. end
  79. def self.principal_update_Other_Obj
  80. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-update&principal-id=1035770400&account-id=1030182041&training-group-id=1234&name=Other%20Obj&login=other_user@test.com&has-children=true&is-primary=true&is-hidden=true&session=na1breezaspo5qded43ka7fh",
  81. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  82. <results>
  83. <status code=\"ok\"/>
  84. </results>",
  85. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  86. end
  87. def self.principal_list
  88. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&session=na1breezaspo5qded43ka7fh",
  89. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  90. <results>
  91. <status code=\"ok\"/>
  92. <principal-list>
  93. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  94. <name>Ryan Moran</name>
  95. <login>ryan.moran@gmail.com</login>
  96. <email>ryan.moran@gmail.com</email>
  97. </principal>
  98. <principal principal-id=\"1030182055\" account-id=\"1030182041\" type=\"admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  99. <name>Administrators</name>
  100. <login>Administrators</login>
  101. <description>Administrators group</description>
  102. </principal>
  103. <principal principal-id=\"1030182056\" account-id=\"1030182041\" type=\"authors\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  104. <name>Authors</name>
  105. <login>Authors</login>
  106. <description>Authors group</description>
  107. </principal>
  108. <principal principal-id=\"1030182057\" account-id=\"1030182041\" type=\"live-admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  109. <name>Meeting Hosts</name>
  110. <login>Meeting Hosts</login>
  111. <description>Meeting hosts group</description>
  112. </principal>
  113. <principal principal-id=\"1030182058\" account-id=\"1030182041\" type=\"course-admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  114. <name>Training Managers</name>
  115. <login>Training Managers</login>
  116. <description>Training managers group</description>
  117. </principal>
  118. <principal principal-id=\"1030182059\" account-id=\"1030182041\" type=\"event-admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  119. <name>Event Managers</name>
  120. <login>Event Managers</login>
  121. <description>Event managers group</description>
  122. </principal>
  123. <principal principal-id=\"1030182061\" account-id=\"1030182041\" type=\"learners\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  124. <name>Learners</name>
  125. <login>Learners</login>
  126. <description>All learners in this account</description>
  127. </principal>
  128. <principal principal-id=\"1030182062\" account-id=\"1030182041\" type=\"admins-limited\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  129. <name>Administrators - Limited</name>
  130. <login>Administrators - Limited</login>
  131. <description>Limited Administrators group</description>
  132. </principal>
  133. </principal-list>
  134. </results>",
  135. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  136. end
  137. def self.principal_list_filter_users
  138. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-type=user&session=na1breezaspo5qded43ka7fh",
  139. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  140. <results>
  141. <status code=\"ok\"/>
  142. <principal-list>
  143. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  144. <name>Ryan Moran</name>
  145. <login>ryan.moran@gmail.com</login>
  146. <email>ryan.moran@gmail.com</email>
  147. </principal>
  148. </principal-list>
  149. </results>",
  150. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  151. end
  152. def self.principal_list_filter_users_empty
  153. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-type=user&session=na1breezaspo5qded43ka7fh",
  154. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  155. <results>
  156. <status code=\"ok\"/>
  157. <principal-list/>
  158. </results>",
  159. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  160. end
  161. def self.principal_list_1035770400
  162. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1035770400&session=na1breezaspo5qded43ka7fh",
  163. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  164. <results>
  165. <status code=\"ok\"/>
  166. <principal-list>
  167. <principal principal-id=\"1035770400\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  168. <name>Base Obj</name>
  169. <login>user@test.com</login>
  170. </principal>
  171. </principal-list>
  172. </results>",
  173. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  174. end
  175. def self.principal_list_1030094617_for_User
  176. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1030094617&filter-type=user&session=na1breezaspo5qded43ka7fh",
  177. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  178. <results>
  179. <status code=\"ok\"/>
  180. <principal-list>
  181. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  182. <name>Ryan Moran</name>
  183. <login>ryan.moran@gmail.com</login>
  184. <email>ryan.moran@gmail.com</email>
  185. </principal>
  186. </principal-list>
  187. </results>",
  188. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  189. end
  190. def self.principal_list_1030094617
  191. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1030094617&session=na1breezaspo5qded43ka7fh",
  192. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  193. <results>
  194. <status code=\"ok\"/>
  195. <principal-list>
  196. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  197. <name>Ryan Moran</name>
  198. <login>ryan.moran@gmail.com</login>
  199. <email>ryan.moran@gmail.com</email>
  200. </principal>
  201. </principal-list>
  202. </results>",
  203. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  204. end
  205. def self.principal_list_1030182057
  206. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1030182057&session=na1breezaspo5qded43ka7fh",
  207. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  208. <results>
  209. <status code=\"ok\"/>
  210. <principal-list>
  211. <principal principal-id=\"1030182057\" account-id=\"1030182041\" type=\"live-admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  212. <name>Meeting Hosts</name>
  213. <login>Meeting Hosts</login>
  214. <description>Meeting hosts group</description>
  215. </principal>
  216. </principal-list>
  217. </results>",
  218. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  219. end
  220. def self.principal_list_1035814880_for_User
  221. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1035814880&filter-type=user&session=na1breezaspo5qded43ka7fh",
  222. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  223. <results>
  224. <status code=\"ok\"/>
  225. <principal-list>
  226. <principal principal-id=\"1035814880\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  227. <name>Base Obj</name>
  228. <login>user@test.com</login>
  229. <email>user@test.com</email>
  230. </principal>
  231. </principal-list>
  232. </results>",
  233. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  234. end
  235. def self.principal_list_1035770400_empty
  236. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1035770400&session=na1breezaspo5qded43ka7fh",
  237. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  238. <results>
  239. <status code=\"ok\"/>
  240. <principal-list/>
  241. </results>",
  242. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  243. end
  244. def self.principal_list_1035814880_for_User_empty
  245. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1035814880&filter-type=user&session=na1breezaspo5qded43ka7fh",
  246. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  247. <results>
  248. <status code=\"ok\"/>
  249. <principal-list/>
  250. </results>",
  251. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  252. end
  253. def self.principal_list_members_of_1030182057
  254. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-is-member=true&group-id=1030182057&session=na1breezaspo5qded43ka7fh",
  255. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  256. <results>
  257. <status code=\"ok\"/>
  258. <principal-list>
  259. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  260. <name>Ryan Moran</name>
  261. <login>ryan.moran@gmail.com</login>
  262. <email>ryan.moran@gmail.com</email>
  263. <is-member>true</is-member>
  264. </principal>
  265. </principal-list>
  266. </results>",
  267. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  268. end
  269. def self.principal_list_members_of_1030182057_1030094617
  270. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-is-member=true&group-id=1030182057&filter-principal-id=1030094617&session=na1breezaspo5qded43ka7fh",
  271. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  272. <results>
  273. <status code=\"ok\"/>
  274. <principal-list>
  275. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  276. <name>Ryan Moran</name>
  277. <login>ryan.moran@gmail.com</login>
  278. <email>ryan.moran@gmail.com</email>
  279. <is-member>true</is-member>
  280. </principal>
  281. </principal-list>
  282. </results>",
  283. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  284. end
  285. def self.principals_delete_1035770400
  286. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principals-delete&principal-id=1035770400&session=na1breezaspo5qded43ka7fh",
  287. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  288. <results>
  289. <status code=\"ok\"/>
  290. </results>",
  291. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  292. end
  293. def self.principals_delete_1035814880
  294. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principals-delete&principal-id=1035814880&session=na1breezaspo5qded43ka7fh",
  295. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  296. <results>
  297. <status code=\"ok\"/>
  298. </results>",
  299. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  300. end
  301. def self.login_user
  302. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=login&login=user@test.com&password=password",
  303. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  304. <results>
  305. <status code=\"ok\"/>
  306. </results>",
  307. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  308. end
  309. def self.login_admin
  310. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=login&login=ryan.moran@gmail.com&password=revprep123",
  311. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  312. <results>
  313. <status code=\"ok\"/>
  314. </results>",
  315. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  316. end
  317. def self.login_other_user
  318. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=login&login=other_user@test.com&password=newpassword",
  319. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  320. <results>
  321. <status code=\"no-data\"/>
  322. </results>",
  323. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  324. end
  325. def self.logout
  326. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=logout&session=na1breezaspo5qded43ka7fh",
  327. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  328. <results>
  329. <status code=\"ok\"/>
  330. </results>",
  331. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  332. end
  333. def self.principal_update_Base_Obj_for_Guest
  334. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-update&account-id=1030182041&name=Base%20Obj&login=user@test.com&type=user&has-children=false&is-primary=false&is-hidden=false&password=password&email=user@test.com&session=na1breezaspo5qded43ka7fh",
  335. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  336. <results>
  337. <status code=\"ok\"/>
  338. <principal has-children=\"false\" type=\"guest\" is-hidden=\"false\" account-id=\"1030182041\" is-primary=\"false\" principal-id=\"1035816176\">
  339. <ext-login>user@test.com</ext-login>
  340. <name>Base Obj</name>
  341. <login>user@test.com</login>
  342. </principal>
  343. </results>",
  344. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  345. end
  346. def self.principal_update_Other_Obj_for_Guest
  347. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-update&principal-id=1035816176&account-id=1030182041&training-group-id=1234&name=Other%20Obj&login=other_user@test.com&has-children=true&is-primary=true&is-hidden=true&password=newpassword&email=other_user@test.com&session=na1breezaspo5qded43ka7fh",
  348. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  349. <results>
  350. <status code=\"ok\"/>
  351. </results>",
  352. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  353. end
  354. def self.principals_delete_1035816176
  355. FakeWeb.register_uri(:get, "https://admin.acrobat.com/api/xml?action=principals-delete&principal-id=1035816176&session=na1breezaspo5qded43ka7fh",
  356. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  357. <results>
  358. <status code=\"ok\"/>
  359. </results>",
  360. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  361. end
  362. def self.principal_list_1035816176_for_Guest
  363. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1035816176&filter-type=user&session=na1breezaspo5qded43ka7fh",
  364. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  365. <results>
  366. <status code=\"ok\"/>
  367. <principal-list>
  368. <principal principal-id=\"1035816176\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  369. <name>Base Obj</name>
  370. <login>user@test.com</login>
  371. <email>user@test.com</email>
  372. </principal>
  373. </principal-list>
  374. </results>",
  375. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  376. end
  377. def self.principal_list_1035816176_for_Guest_empty
  378. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-principal-id=1035816176&filter-type=user&session=na1breezaspo5qded43ka7fh",
  379. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  380. <results>
  381. <status code=\"ok\"/>
  382. <principal-list/>
  383. </results>",
  384. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  385. end
  386. def self.principal_list_filter_guests
  387. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-type=guest&session=na1breezaspo5qded43ka7fh",
  388. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  389. <results>
  390. <status code=\"ok\"/>
  391. <principal-list>
  392. <principal principal-id=\"1035780294\" account-id=\"1030182041\" type=\"guest\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  393. <name>Other Obj</name>
  394. <login>other_user@test.com</login>
  395. <email>other_user@test.com</email>
  396. </principal>
  397. <principal principal-id=\"1035863641\" account-id=\"1030182041\" type=\"guest\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  398. <name>Base Obj</name>
  399. <login>user@test.com</login>
  400. <email>user@test.com</email>
  401. </principal>
  402. </principal-list>
  403. </results>",
  404. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  405. end
  406. def self.principal_list_filter_guests_empty
  407. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-type=guest&session=na1breezaspo5qded43ka7fh",
  408. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  409. <results>
  410. <status code=\"ok\"/>
  411. <principal-list/>
  412. </results>",
  413. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  414. end
  415. def self.principal_list_filter_admins
  416. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-type=admins&session=na1breezaspo5qded43ka7fh",
  417. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  418. <results>
  419. <status code=\"ok\"/>
  420. <principal-list>
  421. <principal principal-id=\"1030182055\" account-id=\"1030182041\" type=\"admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  422. <name>Administrators</name>
  423. <login>Administrators</login>
  424. <description>Administrators group</description>
  425. </principal>
  426. </principal-list>
  427. </results>",
  428. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  429. end
  430. def self.principal_list_is_member_of_1030182055
  431. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182055&filter-is-member=true&session=na1breezaspo5qded43ka7fh",
  432. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  433. <results>
  434. <status code=\"ok\"/>
  435. <principal-list>
  436. <principal principal-id=\"1035814880\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  437. <name>Ryan Moran</name>
  438. <login>ryan.moran@gmail.com</login>
  439. <email>ryan.moran@gmail.com</email>
  440. <is-member>true</is-member>
  441. </principal>
  442. <principal-list>
  443. <principal principal-id=\"1035814880\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  444. <name>Base Obj</name>
  445. <login>user@test.com</login>
  446. <email>user@test.com</email>
  447. <is-member>true</is-member>
  448. </principal>
  449. </principal-list>
  450. </results>",
  451. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  452. end
  453. def self.principal_list_is_member_of_1030182055_empty
  454. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182055&filter-is-member=true&session=na1breezaspo5qded43ka7fh",
  455. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  456. <results>
  457. <status code=\"ok\"/>
  458. <principal-list/>
  459. </results>",
  460. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  461. end
  462. def self.principal_list_is_member_of_1030182055_1035814880_empty
  463. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182055&filter-is-member=true&filter-principal-id=1035814880&session=na1breezaspo5qded43ka7fh",
  464. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  465. <results>
  466. <status code=\"ok\"/>
  467. <principal-list/>
  468. </results>",
  469. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  470. end
  471. def self.principal_list_is_member_of_1030182055_1035814880
  472. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182055&filter-is-member=true&filter-principal-id=1035814880&session=na1breezaspo5qded43ka7fh",
  473. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  474. <results>
  475. <status code=\"ok\"/>
  476. <principal-list>
  477. <principal principal-id=\"1035814880\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  478. <name>Base Obj</name>
  479. <login>user@test.com</login>
  480. <email>user@test.com</email>
  481. <is-member>true</is-member>
  482. </principal>
  483. </principal-list>
  484. </results>",
  485. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  486. end
  487. def self.principal_list_filter_live_admins
  488. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&filter-type=live-admins&session=na1breezaspo5qded43ka7fh",
  489. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  490. <results>
  491. <status code=\"ok\"/>
  492. <principal-list>
  493. <principal principal-id=\"1030182057\" account-id=\"1030182041\" type=\"live-admins\" has-children=\"true\" is-primary=\"true\" is-hidden=\"false\" training-group-id=\"\">
  494. <name>Meeting Hosts</name>
  495. <login>Meeting Hosts</login>
  496. <description>Meeting hosts group</description>
  497. </principal>
  498. </principal-list>
  499. </results>",
  500. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  501. end
  502. def self.principal_list_is_member_of_1030182057
  503. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182057&filter-is-member=true&session=na1breezaspo5qded43ka7fh",
  504. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  505. <results>
  506. <status code=\"ok\"/>
  507. <principal-list>
  508. <principal principal-id=\"1035814880\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  509. <name>Base Obj</name>
  510. <login>user@test.com</login>
  511. <email>user@test.com</email>
  512. <is-member>true</is-member>
  513. </principal>
  514. <principal principal-id=\"1030094617\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  515. <name>Ryan Moran</name>
  516. <login>ryan.moran@gmail.com</login>
  517. <email>ryan.moran@gmail.com</email>
  518. <is-member>true</is-member>
  519. </principal>
  520. </principal-list>
  521. </results>",
  522. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  523. end
  524. def self.principal_list_is_member_of_1030182057_empty
  525. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182057&filter-is-member=true&session=na1breezaspo5qded43ka7fh",
  526. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  527. <results>
  528. <status code=\"ok\"/>
  529. <principal-list/>
  530. </results>",
  531. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  532. end
  533. def self.group_membership_update_1030182057_1035814880
  534. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=group-membership-update&group-id=1030182057&principal-id=1035814880&is-member=true&session=na1breezaspo5qded43ka7fh",
  535. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  536. <results>
  537. <status code=\"ok\"/>
  538. </results>",
  539. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  540. end
  541. def self.principal_list_is_member_of_1030182057_1035814880
  542. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182057&filter-is-member=true&filter-principal-id=1035814880&session=na1breezaspo5qded43ka7fh",
  543. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  544. <results>
  545. <status code=\"ok\"/>
  546. <principal-list>
  547. <principal principal-id=\"1035814880\" account-id=\"1030182041\" type=\"user\" has-children=\"false\" is-primary=\"false\" is-hidden=\"false\" training-group-id=\"\">
  548. <name>Base Obj</name>
  549. <login>user@test.com</login>
  550. <email>user@test.com</email>
  551. <is-member>true</is-member>
  552. </principal>
  553. </principal-list>
  554. </results>",
  555. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  556. end
  557. def self.principal_list_is_member_of_1030182057_1035814880_empty
  558. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=principal-list&group-id=1030182057&filter-is-member=true&filter-principal-id=1035814880&session=na1breezaspo5qded43ka7fh",
  559. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  560. <results>
  561. <status code=\"ok\"/>
  562. <principal-list/>
  563. </results>",
  564. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  565. end
  566. def self.sco_update_SCO
  567. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-update&date-begin=2010-02-04T18:03:38-08:00&date-end=2010-02-04T19:03:38-08:00&description=this%20is%20some%20description&folder-id=1030182069&name=SCO&source-sco-id=1030182073&type=meeting&url-path=sco_path&session=na1breezaspo5qded43ka7fh",
  568. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  569. <results>
  570. <status code=\"ok\"/>
  571. <sco account-id=\"1030182041\" disabled=\"\" display-seq=\"0\" folder-id=\"1030182069\" icon=\"meeting\" lang=\"en\" max-retries=\"\" sco-id=\"1036115664\" source-sco-id=\"1030182073\" type=\"meeting\" version=\"0\">
  572. <date-begin>2010-02-04T18:03:38.000-08:00</date-begin>
  573. <date-created>2010-02-23T12:08:24.700-08:00</date-created>
  574. <date-end>2010-02-04T19:03:38.000-08:00</date-end>
  575. <date-modified>2010-02-23T12:08:24.700-08:00</date-modified>
  576. <description>this is some description</description>
  577. <name>SCO</name>
  578. <url-path>/sco_path/</url-path>
  579. </sco>
  580. </results>",
  581. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  582. end
  583. def self.sco_update_SCO_New
  584. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-update&sco-id=1036115664&date-begin=2010-02-04T20:03:38-08:00&date-end=2010-02-04T21:03:38-08:00&description=this%20is%20some%20new%20description&name=SCO%20New&session=na1breezaspo5qded43ka7fh",
  585. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  586. <results>
  587. <status code=\"ok\"/>
  588. </results>",
  589. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  590. end
  591. def self.sco_delete_1036115664
  592. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-delete&sco-id=1036115664&session=na1breezaspo5qded43ka7fh",
  593. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  594. <results>
  595. <status code=\"ok\"/>
  596. </results>",
  597. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  598. end
  599. def self.sco_shortcuts
  600. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-shortcuts&session=na1breezaspo5qded43ka7fh",
  601. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  602. <results>
  603. <status code=\"ok\"/>
  604. <shortcuts>
  605. <sco tree-id=\"1030182044\" sco-id=\"1030182076\" type=\"shared-training-templates\">
  606. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  607. </sco>
  608. <sco tree-id=\"1030182048\" sco-id=\"1030182068\" type=\"my-courses\">
  609. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  610. </sco>
  611. <sco tree-id=\"1030182045\" sco-id=\"1030182072\" type=\"shared-meeting-templates\">
  612. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  613. </sco>
  614. <sco tree-id=\"1030182046\" sco-id=\"1030182070\" type=\"my-meeting-templates\">
  615. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  616. </sco>
  617. <sco tree-id=\"1030182046\" sco-id=\"1030182069\" type=\"my-meetings\">
  618. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  619. </sco>
  620. <sco tree-id=\"1030182043\" sco-id=\"1030182067\" type=\"my-content\">
  621. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  622. </sco>
  623. <sco tree-id=\"1030182042\" sco-id=\"1030182042\" type=\"content\">
  624. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  625. </sco>
  626. <sco tree-id=\"1030182044\" sco-id=\"1030182044\" type=\"courses\">
  627. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  628. </sco>
  629. <sco tree-id=\"1030182043\" sco-id=\"1030182043\" type=\"user-content\">
  630. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  631. </sco>
  632. <sco tree-id=\"1030182045\" sco-id=\"1030182045\" type=\"meetings\">
  633. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  634. </sco>
  635. <sco tree-id=\"1030182046\" sco-id=\"1030182046\" type=\"user-meetings\">
  636. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  637. </sco>
  638. <sco tree-id=\"1030182047\" sco-id=\"1030182047\" type=\"account-custom\">
  639. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  640. </sco>
  641. <sco tree-id=\"1030182048\" sco-id=\"1030182048\" type=\"user-courses\">
  642. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  643. </sco>
  644. <sco tree-id=\"1030182049\" sco-id=\"1030182049\" type=\"events\">
  645. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  646. </sco>
  647. <sco tree-id=\"1030182050\" sco-id=\"1030182050\" type=\"user-events\">
  648. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  649. </sco>
  650. <sco tree-id=\"1030182054\" sco-id=\"1030182054\" type=\"training-catalog\">
  651. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  652. </sco>
  653. <sco tree-id=\"1030182052\" sco-id=\"1030182052\" type=\"forced-archives\">
  654. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  655. </sco>
  656. <sco tree-id=\"1030182053\" sco-id=\"1030182053\" type=\"chat-transcripts\">
  657. <domain-name>http://connectpro90536458.acrobat.com</domain-name>
  658. </sco>
  659. </shortcuts>
  660. </results>",
  661. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  662. end
  663. def self.sco_contents_1030182076
  664. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182076&session=na1breezaspo5qded43ka7fh",
  665. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  666. <results>
  667. <status code=\"ok\"/>
  668. <scos>
  669. <sco sco-id=\"1030182077\" source-sco-id=\"-8881\" folder-id=\"1030182076\" type=\"meeting\" icon=\"virtual-classroom\" display-seq=\"0\" is-folder=\"0\">
  670. <name>Default Virtual Classroom Template</name>
  671. <url-path>/defaultvirtualclassroomtemplate/</url-path>
  672. <date-created>2010-02-02T18:03:38.580-08:00</date-created>
  673. <date-modified>2010-02-02T18:03:38.580-08:00</date-modified>
  674. </sco>
  675. </scos>
  676. </results>",
  677. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  678. end
  679. def self.sco_contents_1030182068
  680. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182068&session=na1breezaspo5qded43ka7fh",
  681. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  682. <results>
  683. <status code=\"ok\"/>
  684. <scos/>
  685. </results>",
  686. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  687. end
  688. def self.sco_contents_1030182072
  689. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182072&session=na1breezaspo5qded43ka7fh",
  690. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  691. <results>
  692. <status code=\"ok\"/>
  693. <scos>
  694. <sco sco-id=\"1030182075\" source-sco-id=\"-8886\" folder-id=\"1030182072\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  695. <name>Default Event Template</name>
  696. <url-path>/defaulteventtemplate/</url-path>
  697. <date-created>2010-02-02T18:03:38.580-08:00</date-created>
  698. <date-modified>2010-02-02T18:03:38.580-08:00</date-modified>
  699. </sco>
  700. <sco sco-id=\"1030182073\" source-sco-id=\"-8888\" folder-id=\"1030182072\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  701. <name>Default Meeting Template</name>
  702. <url-path>/defaultmeetingtemplate/</url-path>
  703. <date-created>2010-02-02T18:03:38.580-08:00</date-created>
  704. <date-modified>2010-02-02T18:03:38.580-08:00</date-modified>
  705. </sco>
  706. <sco sco-id=\"1030182074\" source-sco-id=\"-8887\" folder-id=\"1030182072\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  707. <name>Default Training Template</name>
  708. <url-path>/defaulttrainingtemplate/</url-path>
  709. <date-created>2010-02-02T18:03:38.580-08:00</date-created>
  710. <date-modified>2010-02-02T18:03:38.580-08:00</date-modified>
  711. </sco>
  712. </scos>
  713. </results>",
  714. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  715. end
  716. def self.sco_contents_1030182070
  717. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182070&session=na1breezaspo5qded43ka7fh",
  718. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  719. <results>
  720. <status code=\"ok\"/>
  721. <scos/>
  722. </results>",
  723. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  724. end
  725. def self.sco_contents_1030182069
  726. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182069&session=na1breezaspo5qded43ka7fh",
  727. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  728. <results>
  729. <status code=\"ok\"/>
  730. <scos>
  731. <sco sco-id=\"1030182070\" source-sco-id=\"\" folder-id=\"1030182069\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  732. <name>My Templates</name>
  733. <url-path>/f1030182070/</url-path>
  734. <date-created>2010-02-02T18:03:30.023-08:00</date-created>
  735. <date-modified>2010-02-12T16:42:04.303-08:00</date-modified>
  736. </sco>
  737. <sco sco-id=\"1034518634\" source-sco-id=\"1030182073\" folder-id=\"1030182069\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  738. <name>blah blah</name>
  739. <url-path>/blah_blah/</url-path>
  740. <date-created>2010-02-17T17:01:39.110-08:00</date-created>
  741. <date-modified>2010-02-17T17:44:39.357-08:00</date-modified>
  742. </sco>
  743. <sco sco-id=\"1030726615\" source-sco-id=\"1030182073\" folder-id=\"1030182069\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  744. <name>Intro to Programming</name>
  745. <description>this is an intro to film</description>
  746. <url-path>/intro_to_film/</url-path>
  747. <date-begin>2010-02-04T11:30:00.000-08:00</date-begin>
  748. <date-end>2010-02-04T12:30:00.000-08:00</date-end>
  749. <date-created>2010-02-04T11:35:41.010-08:00</date-created>
  750. <date-modified>2010-02-17T17:26:22.300-08:00</date-modified>
  751. <duration>01:00:00.000</duration>
  752. </sco>
  753. <sco sco-id=\"1036115664\" source-sco-id=\"1030182073\" folder-id=\"1030182069\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  754. <name>SCO New</name>
  755. <description>this is some new description</description>
  756. <url-path>/sco_path/</url-path>
  757. <date-begin>2010-02-04T20:03:38.000-08:00</date-begin>
  758. <date-end>2010-02-04T21:03:38.000-08:00</date-end>
  759. <date-created>2010-02-23T12:08:24.700-08:00</date-created>
  760. <date-modified>2010-02-23T12:51:07.780-08:00</date-modified>
  761. <duration>01:00:00.000</duration>
  762. </sco>
  763. <sco sco-id=\"1034542690\" source-sco-id=\"1030182073\" folder-id=\"1030182069\" type=\"meeting\" icon=\"meeting\" display-seq=\"0\" is-folder=\"0\">
  764. <name>this is a test</name>
  765. <url-path>/something/</url-path>
  766. <date-created>2010-02-17T15:51:01.503-08:00</date-created>
  767. <date-modified>2010-02-17T15:51:01.503-08:00</date-modified>
  768. </sco>
  769. </scos>
  770. </results>",
  771. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  772. end
  773. def self.sco_contents_1030182067
  774. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182067&session=na1breezaspo5qded43ka7fh",
  775. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  776. <results>
  777. <status code=\"ok\"/>
  778. <scos/>
  779. </results>",
  780. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  781. end
  782. def self.sco_contents_1030182042
  783. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182042&session=na1breezaspo5qded43ka7fh",
  784. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  785. <results>
  786. <status code=\"ok\"/>
  787. <scos/>
  788. </results>",
  789. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  790. end
  791. def self.sco_contents_1030182044
  792. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182044&session=na1breezaspo5qded43ka7fh",
  793. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  794. <results>
  795. <status code=\"ok\"/>
  796. <scos>
  797. <sco sco-id=\"1030182076\" source-sco-id=\"\" folder-id=\"1030182044\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  798. <name>Shared Templates</name>
  799. <url-path>/f1030182076/</url-path>
  800. <date-created>2010-02-02T18:03:38.580-08:00</date-created>
  801. <date-modified>2010-02-02T18:03:38.580-08:00</date-modified>
  802. </sco>
  803. </scos>
  804. </results>",
  805. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  806. end
  807. def self.sco_contents_1030182043
  808. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182043&session=na1breezaspo5qded43ka7fh",
  809. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  810. <results>
  811. <status code=\"ok\"/>
  812. <scos>
  813. <sco sco-id=\"1033716516\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  814. <name>a@b.com</name>
  815. <url-path>/f1033716516/</url-path>
  816. <date-created>2010-02-15T10:30:34.053-08:00</date-created>
  817. <date-modified>2010-02-15T10:57:11.030-08:00</date-modified>
  818. </sco>
  819. <sco sco-id=\"1033765940\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  820. <name>host@host.com</name>
  821. <url-path>/f1033765940/</url-path>
  822. <date-created>2010-02-15T11:33:03.947-08:00</date-created>
  823. <date-modified>2010-02-15T11:40:51.590-08:00</date-modified>
  824. </sco>
  825. <sco sco-id=\"1033792235\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  826. <name>host@test.com</name>
  827. <url-path>/f1033792235/</url-path>
  828. <date-created>2010-02-15T10:42:41.557-08:00</date-created>
  829. <date-modified>2010-02-17T15:36:36.717-08:00</date-modified>
  830. </sco>
  831. <sco sco-id=\"1032225488\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  832. <name>host1@revolutionprep.com</name>
  833. <url-path>/f1032225488/</url-path>
  834. <date-created>2010-02-09T16:13:56.300-08:00</date-created>
  835. <date-modified>2010-02-09T16:13:56.300-08:00</date-modified>
  836. </sco>
  837. <sco sco-id=\"1032225508\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  838. <name>host2@revolutionprep.com</name>
  839. <url-path>/f1032225508/</url-path>
  840. <date-created>2010-02-09T16:14:58.210-08:00</date-created>
  841. <date-modified>2010-02-15T10:28:58.827-08:00</date-modified>
  842. </sco>
  843. <sco sco-id=\"1030182067\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  844. <name>ryan.moran@gmail.com</name>
  845. <url-path>/f1030182067/</url-path>
  846. <date-created>2010-02-02T18:03:30.023-08:00</date-created>
  847. <date-modified>2010-02-02T18:03:30.023-08:00</date-modified>
  848. </sco>
  849. <sco sco-id=\"1036041619\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  850. <name>someuser@test.com</name>
  851. <url-path>/f1036041619/</url-path>
  852. <date-created>2010-02-23T10:53:53.353-08:00</date-created>
  853. <date-modified>2010-02-23T10:53:53.353-08:00</date-modified>
  854. </sco>
  855. <sco sco-id=\"1036095929\" source-sco-id=\"\" folder-id=\"1030182043\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  856. <name>user@test.com</name>
  857. <url-path>/f1036095929/</url-path>
  858. <date-created>2010-02-23T11:15:11.390-08:00</date-created>
  859. <date-modified>2010-02-23T11:15:11.390-08:00</date-modified>
  860. </sco>
  861. </scos>
  862. </results>",
  863. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  864. end
  865. def self.sco_contents_1030182045
  866. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182045&session=na1breezaspo5qded43ka7fh",
  867. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  868. <results>
  869. <status code=\"ok\"/>
  870. <scos>
  871. <sco sco-id=\"1030182072\" source-sco-id=\"\" folder-id=\"1030182045\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  872. <name>Shared Templates</name>
  873. <url-path>/f1030182072/</url-path>
  874. <date-created>2010-02-02T18:03:38.580-08:00</date-created>
  875. <date-modified>2010-02-02T18:03:38.580-08:00</date-modified>
  876. </sco>
  877. </scos>
  878. </results>",
  879. :set_cookie => "BREEZESESSION=na1breezaspo5qded43ka7fh;HttpOnly;domain=.acrobat.com;path=/")
  880. end
  881. def self.sco_contents_1030182046
  882. FakeWeb.register_uri(:get, "https://" + KOKOPELLI[:domain] + "/api/xml?action=sco-contents&sco-id=1030182046&session=na1breezaspo5qded43ka7fh",
  883. :body => "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  884. <results>
  885. <status code=\"ok\"/>
  886. <scos>
  887. <sco sco-id=\"1033716517\" source-sco-id=\"\" folder-id=\"1030182046\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  888. <name>a@b.com</name>
  889. <url-path>/f1033716517/</url-path>
  890. <date-created>2010-02-15T10:30:34.053-08:00</date-created>
  891. <date-modified>2010-02-15T10:57:11.030-08:00</date-modified>
  892. </sco>
  893. <sco sco-id=\"1033765941\" source-sco-id=\"\" folder-id=\"1030182046\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  894. <name>host@host.com</name>
  895. <url-path>/f1033765941/</url-path>
  896. <date-created>2010-02-15T11:33:03.947-08:00</date-created>
  897. <date-modified>2010-02-15T11:40:51.590-08:00</date-modified>
  898. </sco>
  899. <sco sco-id=\"1033792236\" source-sco-id=\"\" folder-id=\"1030182046\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  900. <name>host@test.com</name>
  901. <url-path>/f1033792236/</url-path>
  902. <date-created>2010-02-15T10:42:41.557-08:00</date-created>
  903. <date-modified>2010-02-17T15:36:36.717-08:00</date-modified>
  904. </sco>
  905. <sco sco-id=\"1032225489\" source-sco-id=\"\" folder-id=\"1030182046\" type=\"folder\" icon=\"folder\" display-seq=\"0\" is-folder=\"1\">
  906. <name>host1@revolutionprep.com

Large files files are truncated, but you can click here to view the full file