moo_moo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.rspec +2 -0
- data/.rvmrc +59 -0
- data/.travis.yml +9 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +63 -0
- data/Rakefile +55 -0
- data/lib/cacert.pem +3910 -0
- data/lib/moo_moo/config.rb +13 -0
- data/lib/moo_moo/opensrs/args.rb +109 -0
- data/lib/moo_moo/opensrs/base.rb +75 -0
- data/lib/moo_moo/opensrs/command.rb +190 -0
- data/lib/moo_moo/opensrs/cookie_commands.rb +52 -0
- data/lib/moo_moo/opensrs/lookup_commands.rb +195 -0
- data/lib/moo_moo/opensrs/nameserver_commands.rb +70 -0
- data/lib/moo_moo/opensrs/opensrsexception.rb +6 -0
- data/lib/moo_moo/opensrs/provisioning_commands.rb +167 -0
- data/lib/moo_moo/opensrs/response.rb +41 -0
- data/lib/moo_moo/opensrs/transfer_commands.rb +83 -0
- data/lib/moo_moo/opensrs/utils.rb +13 -0
- data/lib/moo_moo/opensrs.rb +8 -0
- data/lib/moo_moo/version.rb +3 -0
- data/lib/moo_moo.rb +16 -0
- data/moo_moo.gemspec +33 -0
- data/spec/moo_moo_spec.rb +17 -0
- data/spec/opensrs/args_spec.rb +179 -0
- data/spec/opensrs/cookie_spec.rb +78 -0
- data/spec/opensrs/lookup_spec.rb +212 -0
- data/spec/opensrs/nameserver_spec.rb +124 -0
- data/spec/opensrs/opensrs_spec.rb +35 -0
- data/spec/opensrs/provisioning_spec.rb +271 -0
- data/spec/opensrs/transfer_spec.rb +197 -0
- data/spec/opensrs/utils_spec.rb +12 -0
- data/spec/spec_helper.rb +57 -0
- data/spec/vcr_cassettes/cookie/delete_cookie.yml +219 -0
- data/spec/vcr_cassettes/cookie/quit_session.yml +97 -0
- data/spec/vcr_cassettes/cookie/set_cookie.yml +123 -0
- data/spec/vcr_cassettes/cookie/set_cookie_fail.yml +54 -0
- data/spec/vcr_cassettes/cookie/update_cookie.yml +239 -0
- data/spec/vcr_cassettes/lookup/belongs_to_rsp.yml +54 -0
- data/spec/vcr_cassettes/lookup/belongs_to_rsp_negative.yml +55 -0
- data/spec/vcr_cassettes/lookup/get_balance.yml +55 -0
- data/spec/vcr_cassettes/lookup/get_deleted_domains.yml +80 -0
- data/spec/vcr_cassettes/lookup/get_domain.yml +211 -0
- data/spec/vcr_cassettes/lookup/get_domain_fail.yml +269 -0
- data/spec/vcr_cassettes/lookup/get_domains_by_expiredate.yml +76 -0
- data/spec/vcr_cassettes/lookup/get_domains_contacts.yml +129 -0
- data/spec/vcr_cassettes/lookup/get_domains_contacts_fail.yml +58 -0
- data/spec/vcr_cassettes/lookup/get_notes_for_domain.yml +85 -0
- data/spec/vcr_cassettes/lookup/get_notes_for_order.yml +61 -0
- data/spec/vcr_cassettes/lookup/get_notes_for_transfer.yml +61 -0
- data/spec/vcr_cassettes/lookup/get_order_info.yml +139 -0
- data/spec/vcr_cassettes/lookup/get_orders_by_domain.yml +76 -0
- data/spec/vcr_cassettes/lookup/get_price.yml +54 -0
- data/spec/vcr_cassettes/lookup/get_product_info.yml +49 -0
- data/spec/vcr_cassettes/lookup/lookup_domain_available.yml +55 -0
- data/spec/vcr_cassettes/lookup/lookup_domain_registered.yml +55 -0
- data/spec/vcr_cassettes/lookup/name_suggest.yml +396 -0
- data/spec/vcr_cassettes/nameserver/create.yml +49 -0
- data/spec/vcr_cassettes/nameserver/delete.yml +49 -0
- data/spec/vcr_cassettes/nameserver/get.yml +71 -0
- data/spec/vcr_cassettes/nameserver/modify.yml +49 -0
- data/spec/vcr_cassettes/provisioning/cancel_order.yml +56 -0
- data/spec/vcr_cassettes/provisioning/cancel_order_invalid.yml +49 -0
- data/spec/vcr_cassettes/provisioning/cancel_pending_orders.yml +58 -0
- data/spec/vcr_cassettes/provisioning/modify_all_domains.yml +49 -0
- data/spec/vcr_cassettes/provisioning/modify_domain.yml +49 -0
- data/spec/vcr_cassettes/provisioning/process_pending.yml +57 -0
- data/spec/vcr_cassettes/provisioning/register_domain.yml +57 -0
- data/spec/vcr_cassettes/provisioning/register_pending_domain.yml +55 -0
- data/spec/vcr_cassettes/provisioning/register_taken_domain.yml +55 -0
- data/spec/vcr_cassettes/provisioning/renew_domain.yml +58 -0
- data/spec/vcr_cassettes/provisioning/revoke_domain.yml +55 -0
- data/spec/vcr_cassettes/provisioning/trust_service.yml +60 -0
- data/spec/vcr_cassettes/provisioning/update_contacts.yml +66 -0
- data/spec/vcr_cassettes/transfer/cancel_transfer.yml +49 -0
- data/spec/vcr_cassettes/transfer/cancel_trasnfer_order.yml +49 -0
- data/spec/vcr_cassettes/transfer/check_transfer.yml +56 -0
- data/spec/vcr_cassettes/transfer/check_transfer_exists.yml +57 -0
- data/spec/vcr_cassettes/transfer/get_transfers_away.yml +60 -0
- data/spec/vcr_cassettes/transfer/get_transfers_in.yml +80 -0
- data/spec/vcr_cassettes/transfer/process_transfer.yml +49 -0
- data/spec/vcr_cassettes/transfer/process_transfer_unsuccessful.yml +49 -0
- data/spec/vcr_cassettes/transfer/rsp2rsp_push_transfer.yml +49 -0
- data/spec/vcr_cassettes/transfer/send_password.yml +49 -0
- data/spec/vcr_cassettes/transfer/transfer.yml +58 -0
- metadata +280 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://server.com:55443/
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
x-username:
|
11
|
+
- opensrs_user
|
12
|
+
x-signature:
|
13
|
+
- 00000000000000000000000000000000
|
14
|
+
content-length:
|
15
|
+
- "639"
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Fri, 06 May 2011 20:13:25 GMT
|
23
|
+
server:
|
24
|
+
- OpenSRS/XML-RSA Server
|
25
|
+
content-length:
|
26
|
+
- "630"
|
27
|
+
content-type:
|
28
|
+
- text/xml
|
29
|
+
body: |-
|
30
|
+
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
|
31
|
+
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
|
32
|
+
<OPS_envelope>
|
33
|
+
<header>
|
34
|
+
<version>0.9</version>
|
35
|
+
</header>
|
36
|
+
<body>
|
37
|
+
<data_block>
|
38
|
+
<dt_assoc>
|
39
|
+
<item key="protocol">XCP</item>
|
40
|
+
<item key="object">DOMAIN</item>
|
41
|
+
<item key="response_text">Domain taken</item>
|
42
|
+
<item key="action">REPLY</item>
|
43
|
+
<item key="attributes">
|
44
|
+
<dt_assoc>
|
45
|
+
<item key="status">taken</item>
|
46
|
+
<item key="match"></item>
|
47
|
+
</dt_assoc>
|
48
|
+
</item>
|
49
|
+
<item key="response_code">211</item>
|
50
|
+
<item key="is_success">1</item>
|
51
|
+
</dt_assoc>
|
52
|
+
</data_block>
|
53
|
+
</body>
|
54
|
+
</OPS_envelope>
|
55
|
+
http_version: "1.1"
|
@@ -0,0 +1,396 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://server.com:55443/
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
x-username:
|
11
|
+
- opensrs_user
|
12
|
+
x-signature:
|
13
|
+
- 00000000000000000000000000000000
|
14
|
+
content-length:
|
15
|
+
- "726"
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Fri, 06 May 2011 20:13:26 GMT
|
23
|
+
server:
|
24
|
+
- OpenSRS/XML-RSA Server
|
25
|
+
content-length:
|
26
|
+
- "11523"
|
27
|
+
content-type:
|
28
|
+
- text/xml
|
29
|
+
body: |-
|
30
|
+
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
|
31
|
+
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
|
32
|
+
<OPS_envelope>
|
33
|
+
<header>
|
34
|
+
<version>0.9</version>
|
35
|
+
</header>
|
36
|
+
<body>
|
37
|
+
<data_block>
|
38
|
+
<dt_assoc>
|
39
|
+
<item key="protocol">XCP</item>
|
40
|
+
<item key="request_response_time">0.444</item>
|
41
|
+
<item key="response_text">Command completed successfully</item>
|
42
|
+
<item key="is_search_completed">1</item>
|
43
|
+
<item key="action">REPLY</item>
|
44
|
+
<item key="attributes">
|
45
|
+
<dt_assoc>
|
46
|
+
<item key="lookup">
|
47
|
+
<dt_assoc>
|
48
|
+
<item key="count">4</item>
|
49
|
+
<item key="response_text">Command completed successfully.</item>
|
50
|
+
<item key="response_code">200</item>
|
51
|
+
<item key="items">
|
52
|
+
<dt_array>
|
53
|
+
<item key="0">
|
54
|
+
<dt_assoc>
|
55
|
+
<item key="domain">randomdomain.com</item>
|
56
|
+
<item key="status">taken</item>
|
57
|
+
</dt_assoc>
|
58
|
+
</item>
|
59
|
+
<item key="1">
|
60
|
+
<dt_assoc>
|
61
|
+
<item key="domain">randomdomain.net</item>
|
62
|
+
<item key="status">taken</item>
|
63
|
+
</dt_assoc>
|
64
|
+
</item>
|
65
|
+
<item key="2">
|
66
|
+
<dt_assoc>
|
67
|
+
<item key="domain">random-domain.com</item>
|
68
|
+
<item key="status">available</item>
|
69
|
+
</dt_assoc>
|
70
|
+
</item>
|
71
|
+
<item key="3">
|
72
|
+
<dt_assoc>
|
73
|
+
<item key="domain">random-domain.net</item>
|
74
|
+
<item key="status">available</item>
|
75
|
+
</dt_assoc>
|
76
|
+
</item>
|
77
|
+
</dt_array>
|
78
|
+
</item>
|
79
|
+
<item key="is_success">1</item>
|
80
|
+
</dt_assoc>
|
81
|
+
</item>
|
82
|
+
<item key="suggestion">
|
83
|
+
<dt_assoc>
|
84
|
+
<item key="count">49</item>
|
85
|
+
<item key="response_text">Command Successful</item>
|
86
|
+
<item key="response_code">200</item>
|
87
|
+
<item key="is_success">1</item>
|
88
|
+
<item key="items">
|
89
|
+
<dt_array>
|
90
|
+
<item key="0">
|
91
|
+
<dt_assoc>
|
92
|
+
<item key="domain">aimlessdomain.com</item>
|
93
|
+
<item key="status">available</item>
|
94
|
+
</dt_assoc>
|
95
|
+
</item>
|
96
|
+
<item key="1">
|
97
|
+
<dt_assoc>
|
98
|
+
<item key="domain">aimlessdomain.net</item>
|
99
|
+
<item key="status">available</item>
|
100
|
+
</dt_assoc>
|
101
|
+
</item>
|
102
|
+
<item key="2">
|
103
|
+
<dt_assoc>
|
104
|
+
<item key="domain">aimlessname.com</item>
|
105
|
+
<item key="status">available</item>
|
106
|
+
</dt_assoc>
|
107
|
+
</item>
|
108
|
+
<item key="3">
|
109
|
+
<dt_assoc>
|
110
|
+
<item key="domain">aimlesssite.com</item>
|
111
|
+
<item key="status">available</item>
|
112
|
+
</dt_assoc>
|
113
|
+
</item>
|
114
|
+
<item key="4">
|
115
|
+
<dt_assoc>
|
116
|
+
<item key="domain">arbitraryname.com</item>
|
117
|
+
<item key="status">available</item>
|
118
|
+
</dt_assoc>
|
119
|
+
</item>
|
120
|
+
<item key="5">
|
121
|
+
<dt_assoc>
|
122
|
+
<item key="domain">arbitrarysite.com</item>
|
123
|
+
<item key="status">available</item>
|
124
|
+
</dt_assoc>
|
125
|
+
</item>
|
126
|
+
<item key="6">
|
127
|
+
<dt_assoc>
|
128
|
+
<item key="domain">casualname.com</item>
|
129
|
+
<item key="status">available</item>
|
130
|
+
</dt_assoc>
|
131
|
+
</item>
|
132
|
+
<item key="7">
|
133
|
+
<dt_assoc>
|
134
|
+
<item key="domain">chancedomain.com</item>
|
135
|
+
<item key="status">available</item>
|
136
|
+
</dt_assoc>
|
137
|
+
</item>
|
138
|
+
<item key="8">
|
139
|
+
<dt_assoc>
|
140
|
+
<item key="domain">chancedomain.net</item>
|
141
|
+
<item key="status">available</item>
|
142
|
+
</dt_assoc>
|
143
|
+
</item>
|
144
|
+
<item key="9">
|
145
|
+
<dt_assoc>
|
146
|
+
<item key="domain">chancename.com</item>
|
147
|
+
<item key="status">available</item>
|
148
|
+
</dt_assoc>
|
149
|
+
</item>
|
150
|
+
<item key="10">
|
151
|
+
<dt_assoc>
|
152
|
+
<item key="domain">chancesite.com</item>
|
153
|
+
<item key="status">available</item>
|
154
|
+
</dt_assoc>
|
155
|
+
</item>
|
156
|
+
<item key="11">
|
157
|
+
<dt_assoc>
|
158
|
+
<item key="domain">desultorydomain.com</item>
|
159
|
+
<item key="status">available</item>
|
160
|
+
</dt_assoc>
|
161
|
+
</item>
|
162
|
+
<item key="12">
|
163
|
+
<dt_assoc>
|
164
|
+
<item key="domain">desultorydomain.net</item>
|
165
|
+
<item key="status">available</item>
|
166
|
+
</dt_assoc>
|
167
|
+
</item>
|
168
|
+
<item key="13">
|
169
|
+
<dt_assoc>
|
170
|
+
<item key="domain">desultoryname.com</item>
|
171
|
+
<item key="status">available</item>
|
172
|
+
</dt_assoc>
|
173
|
+
</item>
|
174
|
+
<item key="14">
|
175
|
+
<dt_assoc>
|
176
|
+
<item key="domain">desultorysite.com</item>
|
177
|
+
<item key="status">available</item>
|
178
|
+
</dt_assoc>
|
179
|
+
</item>
|
180
|
+
<item key="15">
|
181
|
+
<dt_assoc>
|
182
|
+
<item key="domain">fortuitousdomain.com</item>
|
183
|
+
<item key="status">available</item>
|
184
|
+
</dt_assoc>
|
185
|
+
</item>
|
186
|
+
<item key="16">
|
187
|
+
<dt_assoc>
|
188
|
+
<item key="domain">fortuitousdomain.net</item>
|
189
|
+
<item key="status">available</item>
|
190
|
+
</dt_assoc>
|
191
|
+
</item>
|
192
|
+
<item key="17">
|
193
|
+
<dt_assoc>
|
194
|
+
<item key="domain">fortuitousname.com</item>
|
195
|
+
<item key="status">available</item>
|
196
|
+
</dt_assoc>
|
197
|
+
</item>
|
198
|
+
<item key="18">
|
199
|
+
<dt_assoc>
|
200
|
+
<item key="domain">fortuitoussite.com</item>
|
201
|
+
<item key="status">available</item>
|
202
|
+
</dt_assoc>
|
203
|
+
</item>
|
204
|
+
<item key="19">
|
205
|
+
<dt_assoc>
|
206
|
+
<item key="domain">odddomain.net</item>
|
207
|
+
<item key="status">available</item>
|
208
|
+
</dt_assoc>
|
209
|
+
</item>
|
210
|
+
<item key="20">
|
211
|
+
<dt_assoc>
|
212
|
+
<item key="domain">randomdomainnames.com</item>
|
213
|
+
<item key="status">available</item>
|
214
|
+
</dt_assoc>
|
215
|
+
</item>
|
216
|
+
<item key="21">
|
217
|
+
<dt_assoc>
|
218
|
+
<item key="domain">straydomain.com</item>
|
219
|
+
<item key="status">available</item>
|
220
|
+
</dt_assoc>
|
221
|
+
</item>
|
222
|
+
<item key="22">
|
223
|
+
<dt_assoc>
|
224
|
+
<item key="domain">straydomain.net</item>
|
225
|
+
<item key="status">available</item>
|
226
|
+
</dt_assoc>
|
227
|
+
</item>
|
228
|
+
<item key="23">
|
229
|
+
<dt_assoc>
|
230
|
+
<item key="domain">strayname.com</item>
|
231
|
+
<item key="status">available</item>
|
232
|
+
</dt_assoc>
|
233
|
+
</item>
|
234
|
+
<item key="24">
|
235
|
+
<dt_assoc>
|
236
|
+
<item key="domain">straysite.com</item>
|
237
|
+
<item key="status">available</item>
|
238
|
+
</dt_assoc>
|
239
|
+
</item>
|
240
|
+
<item key="25">
|
241
|
+
<dt_assoc>
|
242
|
+
<item key="domain">aimless-domain.com</item>
|
243
|
+
<item key="status">available</item>
|
244
|
+
</dt_assoc>
|
245
|
+
</item>
|
246
|
+
<item key="26">
|
247
|
+
<dt_assoc>
|
248
|
+
<item key="domain">aimless-name.com</item>
|
249
|
+
<item key="status">available</item>
|
250
|
+
</dt_assoc>
|
251
|
+
</item>
|
252
|
+
<item key="27">
|
253
|
+
<dt_assoc>
|
254
|
+
<item key="domain">aimless-site.com</item>
|
255
|
+
<item key="status">available</item>
|
256
|
+
</dt_assoc>
|
257
|
+
</item>
|
258
|
+
<item key="28">
|
259
|
+
<dt_assoc>
|
260
|
+
<item key="domain">arbitrary-domain.com</item>
|
261
|
+
<item key="status">available</item>
|
262
|
+
</dt_assoc>
|
263
|
+
</item>
|
264
|
+
<item key="29">
|
265
|
+
<dt_assoc>
|
266
|
+
<item key="domain">arbitrary-name.com</item>
|
267
|
+
<item key="status">available</item>
|
268
|
+
</dt_assoc>
|
269
|
+
</item>
|
270
|
+
<item key="30">
|
271
|
+
<dt_assoc>
|
272
|
+
<item key="domain">arbitrary-site.com</item>
|
273
|
+
<item key="status">available</item>
|
274
|
+
</dt_assoc>
|
275
|
+
</item>
|
276
|
+
<item key="31">
|
277
|
+
<dt_assoc>
|
278
|
+
<item key="domain">casual-domain.com</item>
|
279
|
+
<item key="status">available</item>
|
280
|
+
</dt_assoc>
|
281
|
+
</item>
|
282
|
+
<item key="32">
|
283
|
+
<dt_assoc>
|
284
|
+
<item key="domain">casual-name.com</item>
|
285
|
+
<item key="status">available</item>
|
286
|
+
</dt_assoc>
|
287
|
+
</item>
|
288
|
+
<item key="33">
|
289
|
+
<dt_assoc>
|
290
|
+
<item key="domain">casual-site.com</item>
|
291
|
+
<item key="status">available</item>
|
292
|
+
</dt_assoc>
|
293
|
+
</item>
|
294
|
+
<item key="34">
|
295
|
+
<dt_assoc>
|
296
|
+
<item key="domain">chance-domain.com</item>
|
297
|
+
<item key="status">available</item>
|
298
|
+
</dt_assoc>
|
299
|
+
</item>
|
300
|
+
<item key="35">
|
301
|
+
<dt_assoc>
|
302
|
+
<item key="domain">chance-name.com</item>
|
303
|
+
<item key="status">available</item>
|
304
|
+
</dt_assoc>
|
305
|
+
</item>
|
306
|
+
<item key="36">
|
307
|
+
<dt_assoc>
|
308
|
+
<item key="domain">desultory-domain.com</item>
|
309
|
+
<item key="status">available</item>
|
310
|
+
</dt_assoc>
|
311
|
+
</item>
|
312
|
+
<item key="37">
|
313
|
+
<dt_assoc>
|
314
|
+
<item key="domain">desultory-name.com</item>
|
315
|
+
<item key="status">available</item>
|
316
|
+
</dt_assoc>
|
317
|
+
</item>
|
318
|
+
<item key="38">
|
319
|
+
<dt_assoc>
|
320
|
+
<item key="domain">desultory-site.com</item>
|
321
|
+
<item key="status">available</item>
|
322
|
+
</dt_assoc>
|
323
|
+
</item>
|
324
|
+
<item key="39">
|
325
|
+
<dt_assoc>
|
326
|
+
<item key="domain">fortuitous-domain.com</item>
|
327
|
+
<item key="status">available</item>
|
328
|
+
</dt_assoc>
|
329
|
+
</item>
|
330
|
+
<item key="40">
|
331
|
+
<dt_assoc>
|
332
|
+
<item key="domain">fortuitous-name.com</item>
|
333
|
+
<item key="status">available</item>
|
334
|
+
</dt_assoc>
|
335
|
+
</item>
|
336
|
+
<item key="41">
|
337
|
+
<dt_assoc>
|
338
|
+
<item key="domain">fortuitous-site.com</item>
|
339
|
+
<item key="status">available</item>
|
340
|
+
</dt_assoc>
|
341
|
+
</item>
|
342
|
+
<item key="42">
|
343
|
+
<dt_assoc>
|
344
|
+
<item key="domain">odd-domain.com</item>
|
345
|
+
<item key="status">available</item>
|
346
|
+
</dt_assoc>
|
347
|
+
</item>
|
348
|
+
<item key="43">
|
349
|
+
<dt_assoc>
|
350
|
+
<item key="domain">odd-name.com</item>
|
351
|
+
<item key="status">available</item>
|
352
|
+
</dt_assoc>
|
353
|
+
</item>
|
354
|
+
<item key="44">
|
355
|
+
<dt_assoc>
|
356
|
+
<item key="domain">odd-site.com</item>
|
357
|
+
<item key="status">available</item>
|
358
|
+
</dt_assoc>
|
359
|
+
</item>
|
360
|
+
<item key="45">
|
361
|
+
<dt_assoc>
|
362
|
+
<item key="domain">random-domain-name.com</item>
|
363
|
+
<item key="status">available</item>
|
364
|
+
</dt_assoc>
|
365
|
+
</item>
|
366
|
+
<item key="46">
|
367
|
+
<dt_assoc>
|
368
|
+
<item key="domain">stray-domain.com</item>
|
369
|
+
<item key="status">available</item>
|
370
|
+
</dt_assoc>
|
371
|
+
</item>
|
372
|
+
<item key="47">
|
373
|
+
<dt_assoc>
|
374
|
+
<item key="domain">stray-name.com</item>
|
375
|
+
<item key="status">available</item>
|
376
|
+
</dt_assoc>
|
377
|
+
</item>
|
378
|
+
<item key="48">
|
379
|
+
<dt_assoc>
|
380
|
+
<item key="domain">stray-site.com</item>
|
381
|
+
<item key="status">available</item>
|
382
|
+
</dt_assoc>
|
383
|
+
</item>
|
384
|
+
</dt_array>
|
385
|
+
</item>
|
386
|
+
</dt_assoc>
|
387
|
+
</item>
|
388
|
+
</dt_assoc>
|
389
|
+
</item>
|
390
|
+
<item key="response_code">200</item>
|
391
|
+
<item key="is_success">1</item>
|
392
|
+
</dt_assoc>
|
393
|
+
</data_block>
|
394
|
+
</body>
|
395
|
+
</OPS_envelope>
|
396
|
+
http_version: "1.1"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://server.com:55443/
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
x-username:
|
11
|
+
- opensrs_user
|
12
|
+
x-signature:
|
13
|
+
- 00000000000000000000000000000000
|
14
|
+
content-length:
|
15
|
+
- "747"
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Fri, 06 May 2011 20:31:09 GMT
|
23
|
+
server:
|
24
|
+
- OpenSRS/XML-RSA Server
|
25
|
+
content-length:
|
26
|
+
- "497"
|
27
|
+
content-type:
|
28
|
+
- text/xml
|
29
|
+
body: |-
|
30
|
+
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
|
31
|
+
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
|
32
|
+
<OPS_envelope>
|
33
|
+
<header>
|
34
|
+
<version>0.9</version>
|
35
|
+
</header>
|
36
|
+
<body>
|
37
|
+
<data_block>
|
38
|
+
<dt_assoc>
|
39
|
+
<item key="protocol">XCP</item>
|
40
|
+
<item key="object">NAMESERVER</item>
|
41
|
+
<item key="response_text">Nameserver Created</item>
|
42
|
+
<item key="action">REPLY</item>
|
43
|
+
<item key="response_code">200</item>
|
44
|
+
<item key="is_success">1</item>
|
45
|
+
</dt_assoc>
|
46
|
+
</data_block>
|
47
|
+
</body>
|
48
|
+
</OPS_envelope>
|
49
|
+
http_version: "1.1"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://server.com:55443/
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
x-username:
|
11
|
+
- opensrs_user
|
12
|
+
x-signature:
|
13
|
+
- 00000000000000000000000000000000
|
14
|
+
content-length:
|
15
|
+
- "747"
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Fri, 06 May 2011 20:31:09 GMT
|
23
|
+
server:
|
24
|
+
- OpenSRS/XML-RSA Server
|
25
|
+
content-length:
|
26
|
+
- "497"
|
27
|
+
content-type:
|
28
|
+
- text/xml
|
29
|
+
body: |-
|
30
|
+
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
|
31
|
+
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
|
32
|
+
<OPS_envelope>
|
33
|
+
<header>
|
34
|
+
<version>0.9</version>
|
35
|
+
</header>
|
36
|
+
<body>
|
37
|
+
<data_block>
|
38
|
+
<dt_assoc>
|
39
|
+
<item key="protocol">XCP</item>
|
40
|
+
<item key="object">NAMESERVER</item>
|
41
|
+
<item key="response_text">Nameserver deleted</item>
|
42
|
+
<item key="action">REPLY</item>
|
43
|
+
<item key="response_code">200</item>
|
44
|
+
<item key="is_success">1</item>
|
45
|
+
</dt_assoc>
|
46
|
+
</data_block>
|
47
|
+
</body>
|
48
|
+
</OPS_envelope>
|
49
|
+
http_version: "1.1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://server.com:55443/
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
x-username:
|
11
|
+
- opensrs_user
|
12
|
+
x-signature:
|
13
|
+
- 00000000000000000000000000000000
|
14
|
+
content-length:
|
15
|
+
- "667"
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Fri, 06 May 2011 20:31:11 GMT
|
23
|
+
server:
|
24
|
+
- OpenSRS/XML-RSA Server
|
25
|
+
content-length:
|
26
|
+
- "1400"
|
27
|
+
content-type:
|
28
|
+
- text/xml
|
29
|
+
body: |-
|
30
|
+
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
|
31
|
+
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
|
32
|
+
<OPS_envelope>
|
33
|
+
<header>
|
34
|
+
<version>0.9</version>
|
35
|
+
</header>
|
36
|
+
<body>
|
37
|
+
<data_block>
|
38
|
+
<dt_assoc>
|
39
|
+
<item key="protocol">XCP</item>
|
40
|
+
<item key="object">NAMESERVER</item>
|
41
|
+
<item key="response_text">Query Successful</item>
|
42
|
+
<item key="action">REPLY</item>
|
43
|
+
<item key="attributes">
|
44
|
+
<dt_assoc>
|
45
|
+
<item key="nameserver_list">
|
46
|
+
<dt_array>
|
47
|
+
<item key="0">
|
48
|
+
<dt_assoc>
|
49
|
+
<item key="can_delete">1</item>
|
50
|
+
<item key="name">ns1.domainthatsnottaken1302209138.com</item>
|
51
|
+
<item key="ipaddress">212.112.123.11</item>
|
52
|
+
</dt_assoc>
|
53
|
+
</item>
|
54
|
+
<item key="1">
|
55
|
+
<dt_assoc>
|
56
|
+
<item key="can_delete">1</item>
|
57
|
+
<item key="name">ns3.domainthatsnottaken1302209138.com</item>
|
58
|
+
<item key="ipaddress">212.112.123.12</item>
|
59
|
+
</dt_assoc>
|
60
|
+
</item>
|
61
|
+
</dt_array>
|
62
|
+
</item>
|
63
|
+
</dt_assoc>
|
64
|
+
</item>
|
65
|
+
<item key="response_code">200</item>
|
66
|
+
<item key="is_success">1</item>
|
67
|
+
</dt_assoc>
|
68
|
+
</data_block>
|
69
|
+
</body>
|
70
|
+
</OPS_envelope>
|
71
|
+
http_version: "1.1"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://server.com:55443/
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
x-username:
|
11
|
+
- opensrs_user
|
12
|
+
x-signature:
|
13
|
+
- 00000000000000000000000000000000
|
14
|
+
content-length:
|
15
|
+
- "813"
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Fri, 22 Apr 2011 19:06:02 GMT
|
23
|
+
server:
|
24
|
+
- OpenSRS/XML-RSA Server
|
25
|
+
content-length:
|
26
|
+
- "497"
|
27
|
+
content-type:
|
28
|
+
- text/xml
|
29
|
+
body: |-
|
30
|
+
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
|
31
|
+
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
|
32
|
+
<OPS_envelope>
|
33
|
+
<header>
|
34
|
+
<version>0.9</version>
|
35
|
+
</header>
|
36
|
+
<body>
|
37
|
+
<data_block>
|
38
|
+
<dt_assoc>
|
39
|
+
<item key="protocol">XCP</item>
|
40
|
+
<item key="object">NAMESERVER</item>
|
41
|
+
<item key="response_text">Command successful</item>
|
42
|
+
<item key="action">REPLY</item>
|
43
|
+
<item key="response_code">200</item>
|
44
|
+
<item key="is_success">1</item>
|
45
|
+
</dt_assoc>
|
46
|
+
</data_block>
|
47
|
+
</body>
|
48
|
+
</OPS_envelope>
|
49
|
+
http_version: "1.1"
|