studio_api 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/README +93 -0
  2. data/Rakefile +64 -0
  3. data/VERSION +1 -0
  4. data/lib/studio_api/appliance.rb +365 -0
  5. data/lib/studio_api/build.rb +17 -0
  6. data/lib/studio_api/connection.rb +102 -0
  7. data/lib/studio_api/file.rb +70 -0
  8. data/lib/studio_api/generic_request.rb +160 -0
  9. data/lib/studio_api/package.rb +12 -0
  10. data/lib/studio_api/pattern.rb +12 -0
  11. data/lib/studio_api/repository.rb +35 -0
  12. data/lib/studio_api/rpm.rb +33 -0
  13. data/lib/studio_api/running_build.rb +35 -0
  14. data/lib/studio_api/studio_resource.rb +70 -0
  15. data/lib/studio_api/template_set.rb +12 -0
  16. data/lib/studio_api/util.rb +38 -0
  17. data/lib/studio_api.rb +31 -0
  18. data/test/appliance_test.rb +189 -0
  19. data/test/build_test.rb +45 -0
  20. data/test/connection_test.rb +21 -0
  21. data/test/file_test.rb +52 -0
  22. data/test/generic_request_test.rb +66 -0
  23. data/test/repository_test.rb +42 -0
  24. data/test/resource_test.rb +49 -0
  25. data/test/responses/appliance.xml +27 -0
  26. data/test/responses/appliances.xml +199 -0
  27. data/test/responses/build.xml +17 -0
  28. data/test/responses/builds.xml +19 -0
  29. data/test/responses/file.xml +12 -0
  30. data/test/responses/files.xml +14 -0
  31. data/test/responses/gpg_key.xml +25 -0
  32. data/test/responses/gpg_keys.xml +77 -0
  33. data/test/responses/repositories.xml +42 -0
  34. data/test/responses/repository.xml +8 -0
  35. data/test/responses/rpm.xml +10 -0
  36. data/test/responses/rpms.xml +404 -0
  37. data/test/responses/running_build.xml +7 -0
  38. data/test/responses/running_builds.xml +23 -0
  39. data/test/responses/software.xml +50 -0
  40. data/test/responses/software_installed.xml +729 -0
  41. data/test/responses/software_search.xml +64 -0
  42. data/test/responses/status-broken.xml +9 -0
  43. data/test/responses/status.xml +4 -0
  44. data/test/responses/template_sets.xml +380 -0
  45. data/test/rpm_test.rb +59 -0
  46. data/test/running_build_test.rb +50 -0
  47. data/test/template_set_test.rb +35 -0
  48. metadata +181 -0
@@ -0,0 +1,404 @@
1
+ <rpms type="array" base_system="SLES11_SP1">
2
+ <rpm>
3
+ <id>27653</id>
4
+ <filename>
5
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-8.noarch.rpm
6
+ </filename>
7
+ <size>4585</size>
8
+ <archive>false</archive>
9
+ <checksum type="md5">111395637da8b6530b74953d2994c86f</checksum>
10
+ </rpm>
11
+ <rpm>
12
+ <id>27652</id>
13
+ <filename>
14
+ josefs_sles_11_sp1_slms_test_guest_i586-release-0.0.1-0.noarch.rpm
15
+ </filename>
16
+ <size>10484</size>
17
+ <archive>false</archive>
18
+ <checksum type="md5">2a5eb396f74f69f3db4c08da3b228a41</checksum>
19
+ </rpm>
20
+ <rpm>
21
+ <id>27646</id>
22
+ <filename>
23
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-7.noarch.rpm
24
+ </filename>
25
+ <size>4588</size>
26
+ <archive>false</archive>
27
+ <checksum type="md5">0ae0dfa0d17d8c29d39b8d5c2070f098</checksum>
28
+ </rpm>
29
+ <rpm>
30
+ <id>26948</id>
31
+ <filename>
32
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-14.noarch.rpm
33
+ </filename>
34
+ <size>4099</size>
35
+ <archive>false</archive>
36
+ <checksum type="md5">9545b8ca65618221c6199ba3784bc411</checksum>
37
+ </rpm>
38
+ <rpm>
39
+ <id>26946</id>
40
+ <filename>
41
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-13.noarch.rpm
42
+ </filename>
43
+ <size>4071</size>
44
+ <archive>false</archive>
45
+ <checksum type="md5">69ed176704bbc501d2d41ac1def1c848</checksum>
46
+ </rpm>
47
+ <rpm>
48
+ <id>26945</id>
49
+ <filename>
50
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-12.noarch.rpm
51
+ </filename>
52
+ <size>4101</size>
53
+ <archive>false</archive>
54
+ <checksum type="md5">2f5040683126bd8a407b3c6bbb46d9a0</checksum>
55
+ </rpm>
56
+ <rpm>
57
+ <id>26944</id>
58
+ <filename>
59
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-11.noarch.rpm
60
+ </filename>
61
+ <size>4071</size>
62
+ <archive>false</archive>
63
+ <checksum type="md5">dc8f9df63f653b89e5d8de94fc71fb2e</checksum>
64
+ </rpm>
65
+ <rpm>
66
+ <id>26941</id>
67
+ <filename>
68
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-10.noarch.rpm
69
+ </filename>
70
+ <size>4102</size>
71
+ <archive>false</archive>
72
+ <checksum type="md5">cac6b9feedee2556971d642d7213a5cf</checksum>
73
+ </rpm>
74
+ <rpm>
75
+ <id>26940</id>
76
+ <filename>
77
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-9.noarch.rpm
78
+ </filename>
79
+ <size>4066</size>
80
+ <archive>false</archive>
81
+ <checksum type="md5">44599fc49e91a08c3106e78203cf1833</checksum>
82
+ </rpm>
83
+ <rpm>
84
+ <id>26937</id>
85
+ <filename>
86
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-8.noarch.rpm
87
+ </filename>
88
+ <size>4066</size>
89
+ <archive>false</archive>
90
+ <checksum type="md5">0caf2885ea7e2bc45efc3fa696ea9241</checksum>
91
+ </rpm>
92
+ <rpm>
93
+ <id>26936</id>
94
+ <filename>
95
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-7.noarch.rpm
96
+ </filename>
97
+ <size>4138</size>
98
+ <archive>false</archive>
99
+ <checksum type="md5">85aa2f35d6d43193bd01566c2008cb46</checksum>
100
+ </rpm>
101
+ <rpm>
102
+ <id>26935</id>
103
+ <filename>
104
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-6.noarch.rpm
105
+ </filename>
106
+ <size>4067</size>
107
+ <archive>false</archive>
108
+ <checksum type="md5">028d70a42d7b8f5123a258719abb8f46</checksum>
109
+ </rpm>
110
+ <rpm>
111
+ <id>26780</id>
112
+ <filename>
113
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-5.noarch.rpm
114
+ </filename>
115
+ <size>4098</size>
116
+ <archive>false</archive>
117
+ <checksum type="md5">609812cd8c470f9e1f6e36f117506e57</checksum>
118
+ </rpm>
119
+ <rpm>
120
+ <id>26777</id>
121
+ <filename>
122
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-4.noarch.rpm
123
+ </filename>
124
+ <size>4067</size>
125
+ <archive>false</archive>
126
+ <checksum type="md5">3dad29101beed54a8f934b3319511256</checksum>
127
+ </rpm>
128
+ <rpm>
129
+ <id>26776</id>
130
+ <filename>
131
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-3.noarch.rpm
132
+ </filename>
133
+ <size>4087</size>
134
+ <archive>false</archive>
135
+ <checksum type="md5">e4c199ad058fdd17d9780ad21e1ed419</checksum>
136
+ </rpm>
137
+ <rpm>
138
+ <id>26775</id>
139
+ <filename>
140
+ josefs_sles_11_sp1_downgrade_test_i586-release-0.0.1-0.noarch.rpm
141
+ </filename>
142
+ <size>10470</size>
143
+ <archive>false</archive>
144
+ <checksum type="md5">e3b9ae3ebcefab216096ad0aae05d9e7</checksum>
145
+ </rpm>
146
+ <rpm>
147
+ <id>26771</id>
148
+ <filename>
149
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-2.noarch.rpm
150
+ </filename>
151
+ <size>4087</size>
152
+ <archive>false</archive>
153
+ <checksum type="md5">0d40d0748a7d2dba5b6310685ccb079e</checksum>
154
+ </rpm>
155
+ <rpm>
156
+ <id>26769</id>
157
+ <filename>
158
+ josefs_sles_11_sp1_downgrade_test_i586-update-0.0.1-1.noarch.rpm
159
+ </filename>
160
+ <size>3104</size>
161
+ <archive>false</archive>
162
+ <checksum type="md5">dc1d3ab59621f7f7bd840c110642f825</checksum>
163
+ </rpm>
164
+ <rpm>
165
+ <id>26763</id>
166
+ <filename>
167
+ josefs_sles_11_sp1_adapt_test_i586-update-0.0.1-2.noarch.rpm
168
+ </filename>
169
+ <size>4221</size>
170
+ <archive>false</archive>
171
+ <checksum type="md5">c59d0617eb414abf75a4c0cc6a147fd4</checksum>
172
+ </rpm>
173
+ <rpm>
174
+ <id>26624</id>
175
+ <filename>
176
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-6.noarch.rpm
177
+ </filename>
178
+ <size>4658</size>
179
+ <archive>false</archive>
180
+ <checksum type="md5">4a362e800e7b2042b623b8e8a7fc1c66</checksum>
181
+ </rpm>
182
+ <rpm>
183
+ <id>26623</id>
184
+ <filename>
185
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-5.noarch.rpm
186
+ </filename>
187
+ <size>4658</size>
188
+ <archive>false</archive>
189
+ <checksum type="md5">49680a772eb2a5a9d5d12bb1cc855d17</checksum>
190
+ </rpm>
191
+ <rpm>
192
+ <id>26621</id>
193
+ <filename>
194
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-4.noarch.rpm
195
+ </filename>
196
+ <size>4658</size>
197
+ <archive>false</archive>
198
+ <checksum type="md5">7d8020fc92a7059b3320f5812ad4b9ab</checksum>
199
+ </rpm>
200
+ <rpm>
201
+ <id>26616</id>
202
+ <filename>
203
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-3.noarch.rpm
204
+ </filename>
205
+ <size>4661</size>
206
+ <archive>false</archive>
207
+ <checksum type="md5">7c2d56bc7d42ce2a031926e95df038a9</checksum>
208
+ </rpm>
209
+ <rpm>
210
+ <id>26345</id>
211
+ <filename>
212
+ josefs_sles_11_sp1_adapt_test_i586-update-0.0.1-1.noarch.rpm
213
+ </filename>
214
+ <size>3065</size>
215
+ <archive>false</archive>
216
+ <checksum type="md5">4fafa05d437ad31f73661e2674cf32a3</checksum>
217
+ </rpm>
218
+ <rpm>
219
+ <id>26344</id>
220
+ <filename>
221
+ josefs_sles_11_sp1_adapt_test_i586-release-0.0.1-0.noarch.rpm
222
+ </filename>
223
+ <size>10434</size>
224
+ <archive>false</archive>
225
+ <checksum type="md5">a31bfdeec3015427d2051d5bda0fd866</checksum>
226
+ </rpm>
227
+ <rpm>
228
+ <id>26337</id>
229
+ <filename>
230
+ josefs_sles_11_sp1_testing_adapt_i586-update-0.0.1-1.noarch.rpm
231
+ </filename>
232
+ <size>3098</size>
233
+ <archive>false</archive>
234
+ <checksum type="md5">7e846965518e9b6bd0d73c1662b2596f</checksum>
235
+ </rpm>
236
+ <rpm>
237
+ <id>26336</id>
238
+ <filename>
239
+ josefs_sles_11_sp1_testing_adapt_i586-release-0.0.1-0.noarch.rpm
240
+ </filename>
241
+ <size>10459</size>
242
+ <archive>false</archive>
243
+ <checksum type="md5">868c5356aa362426feb4d7e5fe50ac76</checksum>
244
+ </rpm>
245
+ <rpm>
246
+ <id>26314</id>
247
+ <filename>
248
+ josefs_slms_test_updates_x86_64-update-0.0.1-1.noarch.rpm
249
+ </filename>
250
+ <size>3951</size>
251
+ <archive>false</archive>
252
+ <checksum type="md5">0cf39a47ac16d6716dfcb9ce99716766</checksum>
253
+ </rpm>
254
+ <rpm>
255
+ <id>26313</id>
256
+ <filename>
257
+ josefs_slms_test_updates_x86_64-release-0.0.1-0.noarch.rpm
258
+ </filename>
259
+ <size>10381</size>
260
+ <archive>false</archive>
261
+ <checksum type="md5">a4cea8983ae9b32fb5b996ccdfa1b129</checksum>
262
+ </rpm>
263
+ <rpm>
264
+ <id>25933</id>
265
+ <filename>
266
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-2.noarch.rpm
267
+ </filename>
268
+ <size>4639</size>
269
+ <archive>false</archive>
270
+ <checksum type="md5">0e1081e64f41af78e50cce61de5678ec</checksum>
271
+ </rpm>
272
+ <rpm>
273
+ <id>25908</id>
274
+ <filename>
275
+ josefs_sles_11_sp1_slms_test_guest_i586-update-0.0.1-1.noarch.rpm
276
+ </filename>
277
+ <size>4041</size>
278
+ <archive>false</archive>
279
+ <checksum type="md5">a3b916528b38f9dfc7e2d05658053576</checksum>
280
+ </rpm>
281
+ <rpm>
282
+ <id>25026</id>
283
+ <filename>josefs_slms_test_x86_64-update-0.0.1-1.noarch.rpm</filename>
284
+ <size>2956</size>
285
+ <archive>false</archive>
286
+ <checksum type="md5">baa88733b79179993c72206c3285abef</checksum>
287
+ </rpm>
288
+ <rpm>
289
+ <id>25025</id>
290
+ <filename>josefs_slms_test_x86_64-release-0.0.1-0.noarch.rpm</filename>
291
+ <size>10302</size>
292
+ <archive>false</archive>
293
+ <checksum type="md5">c5ff5b2e0202222faaa6797bcdd46fb8</checksum>
294
+ </rpm>
295
+ <rpm>
296
+ <id>24684</id>
297
+ <filename>
298
+ josefs_webyast_for_apptoolkit_11_i586-update-0.0.9-1.noarch.rpm
299
+ </filename>
300
+ <size>3096</size>
301
+ <archive>false</archive>
302
+ <checksum type="md5">7c91c9d19f05db7440516ead8d385525</checksum>
303
+ </rpm>
304
+ <rpm>
305
+ <id>24683</id>
306
+ <filename>
307
+ josefs_webyast_for_apptoolkit_11_i586-release-0.0.9-0.noarch.rpm
308
+ </filename>
309
+ <size>10457</size>
310
+ <archive>false</archive>
311
+ <checksum type="md5">c9620964f7c59bd10af55640df37cfb3</checksum>
312
+ </rpm>
313
+ <rpm>
314
+ <id>21160</id>
315
+ <filename>samba-winbind-3.4.3-13.1.i586.rpm</filename>
316
+ <size>3328773</size>
317
+ <archive>false</archive>
318
+ <checksum type="md5">5616e5d20ca284187531da4cb38866ec</checksum>
319
+ </rpm>
320
+ <rpm>
321
+ <id>21159</id>
322
+ <filename>samba-krb-printing-3.4.3-13.1.i586.rpm</filename>
323
+ <size>117339</size>
324
+ <archive>false</archive>
325
+ <checksum type="md5">9589d54fe8a01deb46bc6d1d1e413f4e</checksum>
326
+ </rpm>
327
+ <rpm>
328
+ <id>21158</id>
329
+ <filename>samba-client-3.4.3-13.1.i586.rpm</filename>
330
+ <size>21615572</size>
331
+ <archive>false</archive>
332
+ <checksum type="md5">568d9dce8a65f9f97ecc3ed414ece362</checksum>
333
+ </rpm>
334
+ <rpm>
335
+ <id>21157</id>
336
+ <filename>samba-3.4.3-13.1.i586.rpm</filename>
337
+ <size>6305634</size>
338
+ <archive>false</archive>
339
+ <checksum type="md5">c67be7ba35b97ecc954fdb62b1023675</checksum>
340
+ </rpm>
341
+ <rpm>
342
+ <id>21156</id>
343
+ <filename>libwbclient0-3.4.3-13.1.i586.rpm</filename>
344
+ <size>130279</size>
345
+ <archive>false</archive>
346
+ <checksum type="md5">404400c577697d65e8151ecc75c532fc</checksum>
347
+ </rpm>
348
+ <rpm>
349
+ <id>21155</id>
350
+ <filename>libtdb1-3.4.3-13.1.i586.rpm</filename>
351
+ <size>134850</size>
352
+ <archive>false</archive>
353
+ <checksum type="md5">c0bf0d617b6a1c20bbbc8262db365312</checksum>
354
+ </rpm>
355
+ <rpm>
356
+ <id>21154</id>
357
+ <filename>libtalloc1-3.4.3-13.1.i586.rpm</filename>
358
+ <size>124575</size>
359
+ <archive>false</archive>
360
+ <checksum type="md5">8847ddd28b9cb7dde14ef642d7c1a96f</checksum>
361
+ </rpm>
362
+ <rpm>
363
+ <id>21153</id>
364
+ <filename>libsmbsharemodes0-3.4.3-13.1.i586.rpm</filename>
365
+ <size>115219</size>
366
+ <archive>false</archive>
367
+ <checksum type="md5">41e703fad9474e13b1a42a3c2ebe5052</checksum>
368
+ </rpm>
369
+ <rpm>
370
+ <id>21152</id>
371
+ <filename>libsmbclient0-3.4.3-13.1.i586.rpm</filename>
372
+ <size>1568030</size>
373
+ <archive>false</archive>
374
+ <checksum type="md5">edfde88246174db2486f0021c7a27364</checksum>
375
+ </rpm>
376
+ <rpm>
377
+ <id>21151</id>
378
+ <filename>libnetapi0-3.4.3-13.1.i586.rpm</filename>
379
+ <size>1680256</size>
380
+ <archive>false</archive>
381
+ <checksum type="md5">e799c907adc538637c6e734aaeca6ba7</checksum>
382
+ </rpm>
383
+ <rpm>
384
+ <id>21150</id>
385
+ <filename>libnetapi-devel-3.4.3-13.1.i586.rpm</filename>
386
+ <size>423652</size>
387
+ <archive>false</archive>
388
+ <checksum type="md5">9f8438efe6e7ebbff04f27d325e9bde4</checksum>
389
+ </rpm>
390
+ <rpm>
391
+ <id>21149</id>
392
+ <filename>ldapsmb-1.34b-13.1.i586.rpm</filename>
393
+ <size>134571</size>
394
+ <archive>false</archive>
395
+ <checksum type="md5">980e164fc9e9d79bee72cdb331cd7562</checksum>
396
+ </rpm>
397
+ <rpm>
398
+ <id>21148</id>
399
+ <filename>cifs-mount-3.4.3-13.1.i586.rpm</filename>
400
+ <size>1744651</size>
401
+ <archive>false</archive>
402
+ <checksum type="md5">6d861771da80987b2476b3e62b129c07</checksum>
403
+ </rpm>
404
+ </rpms>
@@ -0,0 +1,7 @@
1
+ <running_build>
2
+ <id>529783</id>
3
+ <state>running</state>
4
+ <percent>69</percent>
5
+ <time_elapsed>208</time_elapsed>
6
+ <message>Copying filesystem into appliance</message>
7
+ </running_build>
@@ -0,0 +1,23 @@
1
+ <running_builds type="array">
2
+ <running_build>
3
+ <id>529783</id>
4
+ <state>running</state>
5
+ <percent>10</percent>
6
+ <time_elapsed>109</time_elapsed>
7
+ <message>Creating boot image</message>
8
+ </running_build>
9
+ <running_build>
10
+ <id>529782</id>
11
+ <state>running</state>
12
+ <percent>10</percent>
13
+ <time_elapsed>110</time_elapsed>
14
+ <message>Creating boot image</message>
15
+ </running_build>
16
+ <running_build>
17
+ <id>529781</id>
18
+ <state>running</state>
19
+ <percent>35</percent>
20
+ <time_elapsed>111</time_elapsed>
21
+ <message>Installing software</message>
22
+ </running_build>
23
+ </running_builds>
@@ -0,0 +1,50 @@
1
+ <software type="array" appliance_id="218318" >
2
+ <package version="0.0.9-1">josefs_webyast_for_apptoolkit_11_i586-update</package>
3
+ <package version="0.0.9-0">josefs_webyast_for_apptoolkit_11_i586-release</package>
4
+ <package>suseRegister</package>
5
+ <package version="2.86-200.1">sysvinit</package>
6
+ <package>samba-winbind</package>
7
+ <package>samba-krb-printing</package>
8
+ <package>samba-client</package>
9
+ <pattern>samba</pattern>
10
+ <package>libwbclient0</package>
11
+ <package>libtdb1</package>
12
+ <package>libtalloc1</package>
13
+ <package>libsmbsharemodes0</package>
14
+ <package>libsmbclient0</package>
15
+ <package>libnetapi0</package>
16
+ <package>libnetapi-devel</package>
17
+ <package>ldapsmb</package>
18
+ <package>cifs-mount</package>
19
+ <package>kernel-default</package>
20
+ <package>less</package>
21
+ <package>openssl-certs</package>
22
+ <package>vim</package>
23
+ <package>aaa_base</package>
24
+ <package>dhcpcd</package>
25
+ <package>hwinfo</package>
26
+ <package>insserv</package>
27
+ <package>kbd</package>
28
+ <package>licenses</package>
29
+ <package>mkinitrd</package>
30
+ <package>module-init-tools</package>
31
+ <package>netcfg</package>
32
+ <package>openssh</package>
33
+ <package>procps</package>
34
+ <package>pwdutils</package>
35
+ <package>rpm</package>
36
+ <package>suse-build-key</package>
37
+ <package>sysconfig</package>
38
+ <package>syslog-ng</package>
39
+ <package>grub</package>
40
+ <package>branding-SLES</package>
41
+ <package>rpcbind</package>
42
+ <package>PolicyKit</package>
43
+ <package>polkit-default-privs</package>
44
+ <package>suse-sam</package>
45
+ <package>suse-sam-data</package>
46
+ <package>tar</package>
47
+ <package>perl-satsolver</package>
48
+ <package>libzypp</package>
49
+ <package>iputils</package>
50
+ </software>