runcible 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +19 -0
  3. data/LICENSE +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +37 -0
  6. data/lib/runcible.rb +25 -0
  7. data/lib/runcible/base.rb +113 -0
  8. data/lib/runcible/extensions/repository.rb +67 -0
  9. data/lib/runcible/oauth_setup.rb +29 -0
  10. data/lib/runcible/resources/repository.rb +82 -0
  11. data/lib/runcible/resources/role.rb +46 -0
  12. data/lib/runcible/resources/task.rb +49 -0
  13. data/lib/runcible/resources/user.rb +50 -0
  14. data/lib/runcible/version.rb +3 -0
  15. data/rel-eng/packages/.readme +3 -0
  16. data/rel-eng/tito.props +5 -0
  17. data/runcible.gemspec +17 -0
  18. data/runcible.spec +48 -0
  19. data/test/.gitkeep +0 -0
  20. data/test/integration/extensions/repository_test.rb +117 -0
  21. data/test/integration/fixtures/repositories/zoo5/.treeinfo +12 -0
  22. data/test/integration/fixtures/repositories/zoo5/CHANGESET +11 -0
  23. data/test/integration/fixtures/repositories/zoo5/PULP_MANIFEST +1 -0
  24. data/test/integration/fixtures/repositories/zoo5/cheetah-0.3-0.8.noarch.rpm +0 -0
  25. data/test/integration/fixtures/repositories/zoo5/create.sh +20 -0
  26. data/test/integration/fixtures/repositories/zoo5/elephant-0.3-0.8.noarch.rpm +0 -0
  27. data/test/integration/fixtures/repositories/zoo5/empty.iso +0 -0
  28. data/test/integration/fixtures/repositories/zoo5/giraffe-0.3-0.8.noarch.rpm +0 -0
  29. data/test/integration/fixtures/repositories/zoo5/images/test1.img +0 -0
  30. data/test/integration/fixtures/repositories/zoo5/images/test2.img +0 -0
  31. data/test/integration/fixtures/repositories/zoo5/lion-0.3-0.8.noarch.rpm +0 -0
  32. data/test/integration/fixtures/repositories/zoo5/monkey-0.3-0.8.noarch.rpm +0 -0
  33. data/test/integration/fixtures/repositories/zoo5/penguin-0.3-0.8.noarch.rpm +0 -0
  34. data/test/integration/fixtures/repositories/zoo5/repodata/06661e2a9839cf0beebcf409410ca4f93c09081f4e772fd0d03e1faf62705a11-comps.xml +39 -0
  35. data/test/integration/fixtures/repositories/zoo5/repodata/0c4d57a68f9a3b13dabc6f8b01ca8958aa796167cececee04717edfc26d02f2d-other.xml.gz +0 -0
  36. data/test/integration/fixtures/repositories/zoo5/repodata/298ce23f48b3613e030d19f3d9c2ff2df31c2f08479bdf94cebb87c208e48c0e-filelists.xml.gz +0 -0
  37. data/test/integration/fixtures/repositories/zoo5/repodata/32c0e38317aade0c057b173ff62344e912e1bd650409c6ac31aecee78e3413af-comps.xml.gz +0 -0
  38. data/test/integration/fixtures/repositories/zoo5/repodata/34d954906c7ce7aa2254e24d7be0a9049e0a2f436add023ca056123a2d48e30e-updateinfo.xml.gz +0 -0
  39. data/test/integration/fixtures/repositories/zoo5/repodata/63aedd074d9f0daf7c6be8c61f91d76a962bb6ceda86b9abd2140f154c320fa2-other.sqlite.bz2 +0 -0
  40. data/test/integration/fixtures/repositories/zoo5/repodata/69d65cdebffc6199d3adb3e38b06ca9abaae6c1c7366805099987b28f182178d-filelists.sqlite.bz2 +0 -0
  41. data/test/integration/fixtures/repositories/zoo5/repodata/799241a518a4a6b11a68f8e6fbdb719875f87832f60accc0851ced0d6a0497c6-updateinfo.xml.gz +0 -0
  42. data/test/integration/fixtures/repositories/zoo5/repodata/a4ea9fcdce31dc8673c7a9ba66c086bd6a16e1eff717e3896dd1cac444a1423c-primary.xml.gz +0 -0
  43. data/test/integration/fixtures/repositories/zoo5/repodata/fb9b9508e148368d0edf7e03dc905b343937fd958e6531cce6380933d18c3455-primary.sqlite.bz2 +0 -0
  44. data/test/integration/fixtures/repositories/zoo5/repodata/repomd.xml +75 -0
  45. data/test/integration/fixtures/repositories/zoo5/squirrel-0.3-0.8.noarch.rpm +0 -0
  46. data/test/integration/fixtures/repositories/zoo5/updateinfo.xml +26 -0
  47. data/test/integration/fixtures/repositories/zoo5/walrus-0.3-0.8.noarch.rpm +0 -0
  48. data/test/integration/fixtures/vcr_cassettes/extensions/pulp_repository_extensions.yml +137 -0
  49. data/test/integration/fixtures/vcr_cassettes/pulp_consumer.yml +1529 -0
  50. data/test/integration/fixtures/vcr_cassettes/pulp_consumer_group.yml +430 -0
  51. data/test/integration/fixtures/vcr_cassettes/pulp_consumer_helper.yml +120 -0
  52. data/test/integration/fixtures/vcr_cassettes/pulp_distribution.yml +77 -0
  53. data/test/integration/fixtures/vcr_cassettes/pulp_errata.yml +77 -0
  54. data/test/integration/fixtures/vcr_cassettes/pulp_filter.yml +233 -0
  55. data/test/integration/fixtures/vcr_cassettes/pulp_filter_helper.yml +81 -0
  56. data/test/integration/fixtures/vcr_cassettes/pulp_package.yml +155 -0
  57. data/test/integration/fixtures/vcr_cassettes/pulp_package_group.yml +40 -0
  58. data/test/integration/fixtures/vcr_cassettes/pulp_package_group_category.yml +40 -0
  59. data/test/integration/fixtures/vcr_cassettes/pulp_ping.yml +40 -0
  60. data/test/integration/fixtures/vcr_cassettes/pulp_repository.yml +1196 -0
  61. data/test/integration/fixtures/vcr_cassettes/pulp_repository_helper.yml +8659 -0
  62. data/test/integration/fixtures/vcr_cassettes/pulp_repository_sync.yml +215 -0
  63. data/test/integration/fixtures/vcr_cassettes/pulp_role.yml +133 -0
  64. data/test/integration/fixtures/vcr_cassettes/pulp_roles.yml +120 -0
  65. data/test/integration/fixtures/vcr_cassettes/pulp_task.yml +943 -0
  66. data/test/integration/fixtures/vcr_cassettes/pulp_user.yml +288 -0
  67. data/test/integration/fixtures/vcr_cassettes/pulp_user_helper.yml +195 -0
  68. data/test/integration/resources/helpers/consumer_helper.rb +49 -0
  69. data/test/integration/resources/helpers/filter_helper.rb +44 -0
  70. data/test/integration/resources/helpers/repository_helper.rb +127 -0
  71. data/test/integration/resources/pulp_consumer_group_test.rb +182 -0
  72. data/test/integration/resources/pulp_consumer_test.rb +200 -0
  73. data/test/integration/resources/pulp_distribution_test.rb +55 -0
  74. data/test/integration/resources/pulp_errata_test.rb +60 -0
  75. data/test/integration/resources/pulp_filter_test.rb +92 -0
  76. data/test/integration/resources/pulp_package_group_category_test.rb +55 -0
  77. data/test/integration/resources/pulp_package_group_test.rb +56 -0
  78. data/test/integration/resources/pulp_package_test.rb +79 -0
  79. data/test/integration/resources/pulp_ping_test.rb +31 -0
  80. data/test/integration/resources/pulp_repository_test.rb +307 -0
  81. data/test/integration/resources/pulp_role_test.rb +62 -0
  82. data/test/integration/resources/pulp_task_test.rb +79 -0
  83. data/test/integration/resources/pulp_user_test.rb +105 -0
  84. data/test/integration/test_runner.rb +113 -0
  85. data/test/integration/vcr_setup.rb +22 -0
  86. data/test/unit/test_base.rb +62 -0
  87. metadata +218 -0
metadata ADDED
@@ -0,0 +1,218 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: runcible
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Eric D Helms
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-09-10 00:00:00 Z
19
+ dependencies: []
20
+
21
+ description: Exposing pulp's juiciest components to the Ruby world.
22
+ email:
23
+ - ehelms@redhat.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - .gitignore
32
+ - Gemfile
33
+ - LICENSE
34
+ - README.md
35
+ - Rakefile
36
+ - lib/runcible.rb
37
+ - lib/runcible/base.rb
38
+ - lib/runcible/extensions/repository.rb
39
+ - lib/runcible/oauth_setup.rb
40
+ - lib/runcible/resources/repository.rb
41
+ - lib/runcible/resources/role.rb
42
+ - lib/runcible/resources/task.rb
43
+ - lib/runcible/resources/user.rb
44
+ - lib/runcible/version.rb
45
+ - rel-eng/packages/.readme
46
+ - rel-eng/tito.props
47
+ - runcible.gemspec
48
+ - runcible.spec
49
+ - test/.gitkeep
50
+ - test/integration/extensions/repository_test.rb
51
+ - test/integration/fixtures/repositories/zoo5/.treeinfo
52
+ - test/integration/fixtures/repositories/zoo5/CHANGESET
53
+ - test/integration/fixtures/repositories/zoo5/PULP_MANIFEST
54
+ - test/integration/fixtures/repositories/zoo5/cheetah-0.3-0.8.noarch.rpm
55
+ - test/integration/fixtures/repositories/zoo5/create.sh
56
+ - test/integration/fixtures/repositories/zoo5/elephant-0.3-0.8.noarch.rpm
57
+ - test/integration/fixtures/repositories/zoo5/empty.iso
58
+ - test/integration/fixtures/repositories/zoo5/giraffe-0.3-0.8.noarch.rpm
59
+ - test/integration/fixtures/repositories/zoo5/images/test1.img
60
+ - test/integration/fixtures/repositories/zoo5/images/test2.img
61
+ - test/integration/fixtures/repositories/zoo5/lion-0.3-0.8.noarch.rpm
62
+ - test/integration/fixtures/repositories/zoo5/monkey-0.3-0.8.noarch.rpm
63
+ - test/integration/fixtures/repositories/zoo5/penguin-0.3-0.8.noarch.rpm
64
+ - test/integration/fixtures/repositories/zoo5/repodata/06661e2a9839cf0beebcf409410ca4f93c09081f4e772fd0d03e1faf62705a11-comps.xml
65
+ - test/integration/fixtures/repositories/zoo5/repodata/0c4d57a68f9a3b13dabc6f8b01ca8958aa796167cececee04717edfc26d02f2d-other.xml.gz
66
+ - test/integration/fixtures/repositories/zoo5/repodata/298ce23f48b3613e030d19f3d9c2ff2df31c2f08479bdf94cebb87c208e48c0e-filelists.xml.gz
67
+ - test/integration/fixtures/repositories/zoo5/repodata/32c0e38317aade0c057b173ff62344e912e1bd650409c6ac31aecee78e3413af-comps.xml.gz
68
+ - test/integration/fixtures/repositories/zoo5/repodata/34d954906c7ce7aa2254e24d7be0a9049e0a2f436add023ca056123a2d48e30e-updateinfo.xml.gz
69
+ - test/integration/fixtures/repositories/zoo5/repodata/63aedd074d9f0daf7c6be8c61f91d76a962bb6ceda86b9abd2140f154c320fa2-other.sqlite.bz2
70
+ - test/integration/fixtures/repositories/zoo5/repodata/69d65cdebffc6199d3adb3e38b06ca9abaae6c1c7366805099987b28f182178d-filelists.sqlite.bz2
71
+ - test/integration/fixtures/repositories/zoo5/repodata/799241a518a4a6b11a68f8e6fbdb719875f87832f60accc0851ced0d6a0497c6-updateinfo.xml.gz
72
+ - test/integration/fixtures/repositories/zoo5/repodata/a4ea9fcdce31dc8673c7a9ba66c086bd6a16e1eff717e3896dd1cac444a1423c-primary.xml.gz
73
+ - test/integration/fixtures/repositories/zoo5/repodata/fb9b9508e148368d0edf7e03dc905b343937fd958e6531cce6380933d18c3455-primary.sqlite.bz2
74
+ - test/integration/fixtures/repositories/zoo5/repodata/repomd.xml
75
+ - test/integration/fixtures/repositories/zoo5/squirrel-0.3-0.8.noarch.rpm
76
+ - test/integration/fixtures/repositories/zoo5/updateinfo.xml
77
+ - test/integration/fixtures/repositories/zoo5/walrus-0.3-0.8.noarch.rpm
78
+ - test/integration/fixtures/vcr_cassettes/extensions/pulp_repository_extensions.yml
79
+ - test/integration/fixtures/vcr_cassettes/pulp_consumer.yml
80
+ - test/integration/fixtures/vcr_cassettes/pulp_consumer_group.yml
81
+ - test/integration/fixtures/vcr_cassettes/pulp_consumer_helper.yml
82
+ - test/integration/fixtures/vcr_cassettes/pulp_distribution.yml
83
+ - test/integration/fixtures/vcr_cassettes/pulp_errata.yml
84
+ - test/integration/fixtures/vcr_cassettes/pulp_filter.yml
85
+ - test/integration/fixtures/vcr_cassettes/pulp_filter_helper.yml
86
+ - test/integration/fixtures/vcr_cassettes/pulp_package.yml
87
+ - test/integration/fixtures/vcr_cassettes/pulp_package_group.yml
88
+ - test/integration/fixtures/vcr_cassettes/pulp_package_group_category.yml
89
+ - test/integration/fixtures/vcr_cassettes/pulp_ping.yml
90
+ - test/integration/fixtures/vcr_cassettes/pulp_repository.yml
91
+ - test/integration/fixtures/vcr_cassettes/pulp_repository_helper.yml
92
+ - test/integration/fixtures/vcr_cassettes/pulp_repository_sync.yml
93
+ - test/integration/fixtures/vcr_cassettes/pulp_role.yml
94
+ - test/integration/fixtures/vcr_cassettes/pulp_roles.yml
95
+ - test/integration/fixtures/vcr_cassettes/pulp_task.yml
96
+ - test/integration/fixtures/vcr_cassettes/pulp_user.yml
97
+ - test/integration/fixtures/vcr_cassettes/pulp_user_helper.yml
98
+ - test/integration/resources/helpers/consumer_helper.rb
99
+ - test/integration/resources/helpers/filter_helper.rb
100
+ - test/integration/resources/helpers/repository_helper.rb
101
+ - test/integration/resources/pulp_consumer_group_test.rb
102
+ - test/integration/resources/pulp_consumer_test.rb
103
+ - test/integration/resources/pulp_distribution_test.rb
104
+ - test/integration/resources/pulp_errata_test.rb
105
+ - test/integration/resources/pulp_filter_test.rb
106
+ - test/integration/resources/pulp_package_group_category_test.rb
107
+ - test/integration/resources/pulp_package_group_test.rb
108
+ - test/integration/resources/pulp_package_test.rb
109
+ - test/integration/resources/pulp_ping_test.rb
110
+ - test/integration/resources/pulp_repository_test.rb
111
+ - test/integration/resources/pulp_role_test.rb
112
+ - test/integration/resources/pulp_task_test.rb
113
+ - test/integration/resources/pulp_user_test.rb
114
+ - test/integration/test_runner.rb
115
+ - test/integration/vcr_setup.rb
116
+ - test/unit/test_base.rb
117
+ homepage: https://github.com/Katello/runcible
118
+ licenses: []
119
+
120
+ post_install_message:
121
+ rdoc_options: []
122
+
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ hash: 3
131
+ segments:
132
+ - 0
133
+ version: "0"
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ hash: 3
140
+ segments:
141
+ - 0
142
+ version: "0"
143
+ requirements: []
144
+
145
+ rubyforge_project:
146
+ rubygems_version: 1.8.11
147
+ signing_key:
148
+ specification_version: 3
149
+ summary: ""
150
+ test_files:
151
+ - test/.gitkeep
152
+ - test/integration/extensions/repository_test.rb
153
+ - test/integration/fixtures/repositories/zoo5/.treeinfo
154
+ - test/integration/fixtures/repositories/zoo5/CHANGESET
155
+ - test/integration/fixtures/repositories/zoo5/PULP_MANIFEST
156
+ - test/integration/fixtures/repositories/zoo5/cheetah-0.3-0.8.noarch.rpm
157
+ - test/integration/fixtures/repositories/zoo5/create.sh
158
+ - test/integration/fixtures/repositories/zoo5/elephant-0.3-0.8.noarch.rpm
159
+ - test/integration/fixtures/repositories/zoo5/empty.iso
160
+ - test/integration/fixtures/repositories/zoo5/giraffe-0.3-0.8.noarch.rpm
161
+ - test/integration/fixtures/repositories/zoo5/images/test1.img
162
+ - test/integration/fixtures/repositories/zoo5/images/test2.img
163
+ - test/integration/fixtures/repositories/zoo5/lion-0.3-0.8.noarch.rpm
164
+ - test/integration/fixtures/repositories/zoo5/monkey-0.3-0.8.noarch.rpm
165
+ - test/integration/fixtures/repositories/zoo5/penguin-0.3-0.8.noarch.rpm
166
+ - test/integration/fixtures/repositories/zoo5/repodata/06661e2a9839cf0beebcf409410ca4f93c09081f4e772fd0d03e1faf62705a11-comps.xml
167
+ - test/integration/fixtures/repositories/zoo5/repodata/0c4d57a68f9a3b13dabc6f8b01ca8958aa796167cececee04717edfc26d02f2d-other.xml.gz
168
+ - test/integration/fixtures/repositories/zoo5/repodata/298ce23f48b3613e030d19f3d9c2ff2df31c2f08479bdf94cebb87c208e48c0e-filelists.xml.gz
169
+ - test/integration/fixtures/repositories/zoo5/repodata/32c0e38317aade0c057b173ff62344e912e1bd650409c6ac31aecee78e3413af-comps.xml.gz
170
+ - test/integration/fixtures/repositories/zoo5/repodata/34d954906c7ce7aa2254e24d7be0a9049e0a2f436add023ca056123a2d48e30e-updateinfo.xml.gz
171
+ - test/integration/fixtures/repositories/zoo5/repodata/63aedd074d9f0daf7c6be8c61f91d76a962bb6ceda86b9abd2140f154c320fa2-other.sqlite.bz2
172
+ - test/integration/fixtures/repositories/zoo5/repodata/69d65cdebffc6199d3adb3e38b06ca9abaae6c1c7366805099987b28f182178d-filelists.sqlite.bz2
173
+ - test/integration/fixtures/repositories/zoo5/repodata/799241a518a4a6b11a68f8e6fbdb719875f87832f60accc0851ced0d6a0497c6-updateinfo.xml.gz
174
+ - test/integration/fixtures/repositories/zoo5/repodata/a4ea9fcdce31dc8673c7a9ba66c086bd6a16e1eff717e3896dd1cac444a1423c-primary.xml.gz
175
+ - test/integration/fixtures/repositories/zoo5/repodata/fb9b9508e148368d0edf7e03dc905b343937fd958e6531cce6380933d18c3455-primary.sqlite.bz2
176
+ - test/integration/fixtures/repositories/zoo5/repodata/repomd.xml
177
+ - test/integration/fixtures/repositories/zoo5/squirrel-0.3-0.8.noarch.rpm
178
+ - test/integration/fixtures/repositories/zoo5/updateinfo.xml
179
+ - test/integration/fixtures/repositories/zoo5/walrus-0.3-0.8.noarch.rpm
180
+ - test/integration/fixtures/vcr_cassettes/extensions/pulp_repository_extensions.yml
181
+ - test/integration/fixtures/vcr_cassettes/pulp_consumer.yml
182
+ - test/integration/fixtures/vcr_cassettes/pulp_consumer_group.yml
183
+ - test/integration/fixtures/vcr_cassettes/pulp_consumer_helper.yml
184
+ - test/integration/fixtures/vcr_cassettes/pulp_distribution.yml
185
+ - test/integration/fixtures/vcr_cassettes/pulp_errata.yml
186
+ - test/integration/fixtures/vcr_cassettes/pulp_filter.yml
187
+ - test/integration/fixtures/vcr_cassettes/pulp_filter_helper.yml
188
+ - test/integration/fixtures/vcr_cassettes/pulp_package.yml
189
+ - test/integration/fixtures/vcr_cassettes/pulp_package_group.yml
190
+ - test/integration/fixtures/vcr_cassettes/pulp_package_group_category.yml
191
+ - test/integration/fixtures/vcr_cassettes/pulp_ping.yml
192
+ - test/integration/fixtures/vcr_cassettes/pulp_repository.yml
193
+ - test/integration/fixtures/vcr_cassettes/pulp_repository_helper.yml
194
+ - test/integration/fixtures/vcr_cassettes/pulp_repository_sync.yml
195
+ - test/integration/fixtures/vcr_cassettes/pulp_role.yml
196
+ - test/integration/fixtures/vcr_cassettes/pulp_roles.yml
197
+ - test/integration/fixtures/vcr_cassettes/pulp_task.yml
198
+ - test/integration/fixtures/vcr_cassettes/pulp_user.yml
199
+ - test/integration/fixtures/vcr_cassettes/pulp_user_helper.yml
200
+ - test/integration/resources/helpers/consumer_helper.rb
201
+ - test/integration/resources/helpers/filter_helper.rb
202
+ - test/integration/resources/helpers/repository_helper.rb
203
+ - test/integration/resources/pulp_consumer_group_test.rb
204
+ - test/integration/resources/pulp_consumer_test.rb
205
+ - test/integration/resources/pulp_distribution_test.rb
206
+ - test/integration/resources/pulp_errata_test.rb
207
+ - test/integration/resources/pulp_filter_test.rb
208
+ - test/integration/resources/pulp_package_group_category_test.rb
209
+ - test/integration/resources/pulp_package_group_test.rb
210
+ - test/integration/resources/pulp_package_test.rb
211
+ - test/integration/resources/pulp_ping_test.rb
212
+ - test/integration/resources/pulp_repository_test.rb
213
+ - test/integration/resources/pulp_role_test.rb
214
+ - test/integration/resources/pulp_task_test.rb
215
+ - test/integration/resources/pulp_user_test.rb
216
+ - test/integration/test_runner.rb
217
+ - test/integration/vcr_setup.rb
218
+ - test/unit/test_base.rb