moo_moo 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/.gitignore +7 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +59 -0
  4. data/.travis.yml +9 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +21 -0
  7. data/README.md +63 -0
  8. data/Rakefile +55 -0
  9. data/lib/cacert.pem +3910 -0
  10. data/lib/moo_moo/config.rb +13 -0
  11. data/lib/moo_moo/opensrs/args.rb +109 -0
  12. data/lib/moo_moo/opensrs/base.rb +75 -0
  13. data/lib/moo_moo/opensrs/command.rb +190 -0
  14. data/lib/moo_moo/opensrs/cookie_commands.rb +52 -0
  15. data/lib/moo_moo/opensrs/lookup_commands.rb +195 -0
  16. data/lib/moo_moo/opensrs/nameserver_commands.rb +70 -0
  17. data/lib/moo_moo/opensrs/opensrsexception.rb +6 -0
  18. data/lib/moo_moo/opensrs/provisioning_commands.rb +167 -0
  19. data/lib/moo_moo/opensrs/response.rb +41 -0
  20. data/lib/moo_moo/opensrs/transfer_commands.rb +83 -0
  21. data/lib/moo_moo/opensrs/utils.rb +13 -0
  22. data/lib/moo_moo/opensrs.rb +8 -0
  23. data/lib/moo_moo/version.rb +3 -0
  24. data/lib/moo_moo.rb +16 -0
  25. data/moo_moo.gemspec +33 -0
  26. data/spec/moo_moo_spec.rb +17 -0
  27. data/spec/opensrs/args_spec.rb +179 -0
  28. data/spec/opensrs/cookie_spec.rb +78 -0
  29. data/spec/opensrs/lookup_spec.rb +212 -0
  30. data/spec/opensrs/nameserver_spec.rb +124 -0
  31. data/spec/opensrs/opensrs_spec.rb +35 -0
  32. data/spec/opensrs/provisioning_spec.rb +271 -0
  33. data/spec/opensrs/transfer_spec.rb +197 -0
  34. data/spec/opensrs/utils_spec.rb +12 -0
  35. data/spec/spec_helper.rb +57 -0
  36. data/spec/vcr_cassettes/cookie/delete_cookie.yml +219 -0
  37. data/spec/vcr_cassettes/cookie/quit_session.yml +97 -0
  38. data/spec/vcr_cassettes/cookie/set_cookie.yml +123 -0
  39. data/spec/vcr_cassettes/cookie/set_cookie_fail.yml +54 -0
  40. data/spec/vcr_cassettes/cookie/update_cookie.yml +239 -0
  41. data/spec/vcr_cassettes/lookup/belongs_to_rsp.yml +54 -0
  42. data/spec/vcr_cassettes/lookup/belongs_to_rsp_negative.yml +55 -0
  43. data/spec/vcr_cassettes/lookup/get_balance.yml +55 -0
  44. data/spec/vcr_cassettes/lookup/get_deleted_domains.yml +80 -0
  45. data/spec/vcr_cassettes/lookup/get_domain.yml +211 -0
  46. data/spec/vcr_cassettes/lookup/get_domain_fail.yml +269 -0
  47. data/spec/vcr_cassettes/lookup/get_domains_by_expiredate.yml +76 -0
  48. data/spec/vcr_cassettes/lookup/get_domains_contacts.yml +129 -0
  49. data/spec/vcr_cassettes/lookup/get_domains_contacts_fail.yml +58 -0
  50. data/spec/vcr_cassettes/lookup/get_notes_for_domain.yml +85 -0
  51. data/spec/vcr_cassettes/lookup/get_notes_for_order.yml +61 -0
  52. data/spec/vcr_cassettes/lookup/get_notes_for_transfer.yml +61 -0
  53. data/spec/vcr_cassettes/lookup/get_order_info.yml +139 -0
  54. data/spec/vcr_cassettes/lookup/get_orders_by_domain.yml +76 -0
  55. data/spec/vcr_cassettes/lookup/get_price.yml +54 -0
  56. data/spec/vcr_cassettes/lookup/get_product_info.yml +49 -0
  57. data/spec/vcr_cassettes/lookup/lookup_domain_available.yml +55 -0
  58. data/spec/vcr_cassettes/lookup/lookup_domain_registered.yml +55 -0
  59. data/spec/vcr_cassettes/lookup/name_suggest.yml +396 -0
  60. data/spec/vcr_cassettes/nameserver/create.yml +49 -0
  61. data/spec/vcr_cassettes/nameserver/delete.yml +49 -0
  62. data/spec/vcr_cassettes/nameserver/get.yml +71 -0
  63. data/spec/vcr_cassettes/nameserver/modify.yml +49 -0
  64. data/spec/vcr_cassettes/provisioning/cancel_order.yml +56 -0
  65. data/spec/vcr_cassettes/provisioning/cancel_order_invalid.yml +49 -0
  66. data/spec/vcr_cassettes/provisioning/cancel_pending_orders.yml +58 -0
  67. data/spec/vcr_cassettes/provisioning/modify_all_domains.yml +49 -0
  68. data/spec/vcr_cassettes/provisioning/modify_domain.yml +49 -0
  69. data/spec/vcr_cassettes/provisioning/process_pending.yml +57 -0
  70. data/spec/vcr_cassettes/provisioning/register_domain.yml +57 -0
  71. data/spec/vcr_cassettes/provisioning/register_pending_domain.yml +55 -0
  72. data/spec/vcr_cassettes/provisioning/register_taken_domain.yml +55 -0
  73. data/spec/vcr_cassettes/provisioning/renew_domain.yml +58 -0
  74. data/spec/vcr_cassettes/provisioning/revoke_domain.yml +55 -0
  75. data/spec/vcr_cassettes/provisioning/trust_service.yml +60 -0
  76. data/spec/vcr_cassettes/provisioning/update_contacts.yml +66 -0
  77. data/spec/vcr_cassettes/transfer/cancel_transfer.yml +49 -0
  78. data/spec/vcr_cassettes/transfer/cancel_trasnfer_order.yml +49 -0
  79. data/spec/vcr_cassettes/transfer/check_transfer.yml +56 -0
  80. data/spec/vcr_cassettes/transfer/check_transfer_exists.yml +57 -0
  81. data/spec/vcr_cassettes/transfer/get_transfers_away.yml +60 -0
  82. data/spec/vcr_cassettes/transfer/get_transfers_in.yml +80 -0
  83. data/spec/vcr_cassettes/transfer/process_transfer.yml +49 -0
  84. data/spec/vcr_cassettes/transfer/process_transfer_unsuccessful.yml +49 -0
  85. data/spec/vcr_cassettes/transfer/rsp2rsp_push_transfer.yml +49 -0
  86. data/spec/vcr_cassettes/transfer/send_password.yml +49 -0
  87. data/spec/vcr_cassettes/transfer/transfer.yml +58 -0
  88. metadata +280 -0
@@ -0,0 +1,211 @@
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
+ - "713"
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:19 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "976"
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">COOKIE</item>
41
+ <item key="response_text">Command Successful</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="permission"></item>
46
+ <item key="cookie">0000000000000000:000000:00000</item>
47
+ <item key="expiredate">2012-04-07 20:45:46</item>
48
+ <item key="domain_count">1</item>
49
+ <item key="last_access_time">1304712752</item>
50
+ <item key="f_owner">1</item>
51
+ <item key="waiting_requests_no">0</item>
52
+ <item key="waiting_request">None</item>
53
+ <item key="last_ip"></item>
54
+ </dt_assoc>
55
+ </item>
56
+ <item key="response_code">200</item>
57
+ <item key="is_success">1</item>
58
+ </dt_assoc>
59
+ </data_block>
60
+ </body>
61
+ </OPS_envelope>
62
+ http_version: "1.1"
63
+ - !ruby/struct:VCR::HTTPInteraction
64
+ request: !ruby/struct:VCR::Request
65
+ method: :post
66
+ uri: https://server.com:55443/
67
+ body:
68
+ headers:
69
+ content-type:
70
+ - text/xml
71
+ x-username:
72
+ - opensrs_user
73
+ x-signature:
74
+ - 00000000000000000000000000000000
75
+ content-length:
76
+ - "664"
77
+ response: !ruby/struct:VCR::Response
78
+ status: !ruby/struct:VCR::ResponseStatus
79
+ code: 200
80
+ message: OK
81
+ headers:
82
+ date:
83
+ - Fri, 06 May 2011 20:13:20 GMT
84
+ server:
85
+ - OpenSRS/XML-RSA Server
86
+ content-length:
87
+ - "4300"
88
+ content-type:
89
+ - text/xml
90
+ body: |-
91
+ <?xml version='1.0' encoding="UTF-8" standalone="no" ?>
92
+ <!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
93
+ <OPS_envelope>
94
+ <header>
95
+ <version>0.9</version>
96
+ </header>
97
+ <body>
98
+ <data_block>
99
+ <dt_assoc>
100
+ <item key="protocol">XCP</item>
101
+ <item key="object">DOMAIN</item>
102
+ <item key="response_text">Query Successful</item>
103
+ <item key="action">REPLY</item>
104
+ <item key="attributes">
105
+ <dt_assoc>
106
+ <item key="auto_renew">1</item>
107
+ <item key="contact_set">
108
+ <dt_assoc>
109
+ <item key="admin">
110
+ <dt_assoc>
111
+ <item key="country">US</item>
112
+ <item key="address3">Owner</item>
113
+ <item key="org_name">Example Inc.</item>
114
+ <item key="phone">+1.4165550123x1902</item>
115
+ <item key="address2">Suite 500</item>
116
+ <item key="last_name">Ottway</item>
117
+ <item key="state">CA</item>
118
+ <item key="email">ottway@example.com</item>
119
+ <item key="city">SomeCity</item>
120
+ <item key="postal_code">90210</item>
121
+ <item key="fax">+1.4165550124</item>
122
+ <item key="address1">32 Oak Street</item>
123
+ <item key="first_name">Owen</item>
124
+ </dt_assoc>
125
+ </item>
126
+ <item key="owner">
127
+ <dt_assoc>
128
+ <item key="country">US</item>
129
+ <item key="address3">Owner</item>
130
+ <item key="org_name">Example Inc.</item>
131
+ <item key="phone">+1.4165550123x1902</item>
132
+ <item key="state">CA</item>
133
+ <item key="last_name">Ottway</item>
134
+ <item key="address2">Suite 500</item>
135
+ <item key="email">ottway@example.com</item>
136
+ <item key="city">SomeCity</item>
137
+ <item key="postal_code">90210</item>
138
+ <item key="fax">+1.4165550124</item>
139
+ <item key="address1">32 Oak Street</item>
140
+ <item key="first_name">Owen</item>
141
+ </dt_assoc>
142
+ </item>
143
+ <item key="tech">
144
+ <dt_assoc>
145
+ <item key="country">US</item>
146
+ <item key="address3">Owner</item>
147
+ <item key="org_name">Example Inc.</item>
148
+ <item key="phone">+1.4165550123x1902</item>
149
+ <item key="address2">Suite 500</item>
150
+ <item key="state">CA</item>
151
+ <item key="last_name">Ottway</item>
152
+ <item key="email">ottway@example.com</item>
153
+ <item key="city">SomeCity</item>
154
+ <item key="postal_code">90210</item>
155
+ <item key="fax">+1.4165550124</item>
156
+ <item key="address1">32 Oak Street</item>
157
+ <item key="first_name">Owen</item>
158
+ </dt_assoc>
159
+ </item>
160
+ <item key="billing">
161
+ <dt_assoc>
162
+ <item key="country">US</item>
163
+ <item key="address3">Owner</item>
164
+ <item key="org_name">Example Inc.</item>
165
+ <item key="phone">+1.4165550123x1902</item>
166
+ <item key="state">CA</item>
167
+ <item key="last_name">Ottway</item>
168
+ <item key="address2">Suite 500</item>
169
+ <item key="email">ottway@example.com</item>
170
+ <item key="city">SomeCity</item>
171
+ <item key="postal_code">90210</item>
172
+ <item key="fax">+1.4165550124</item>
173
+ <item key="address1">32 Oak Street</item>
174
+ <item key="first_name">Owen</item>
175
+ </dt_assoc>
176
+ </item>
177
+ </dt_assoc>
178
+ </item>
179
+ <item key="registry_updatedate">2011-04-07 20:45:46</item>
180
+ <item key="sponsoring_rsp">1</item>
181
+ <item key="registry_createdate">2011-04-07 20:45:46</item>
182
+ <item key="expiredate">2012-04-07 20:45:46</item>
183
+ <item key="let_expire">0</item>
184
+ <item key="registry_expiredate">2012-04-07 20:45:46</item>
185
+ <item key="nameserver_list">
186
+ <dt_array>
187
+ <item key="0">
188
+ <dt_assoc>
189
+ <item key="name">ns2.systemdns.com</item>
190
+ <item key="sortorder">1</item>
191
+ <item key="ipaddress"></item>
192
+ </dt_assoc>
193
+ </item>
194
+ <item key="1">
195
+ <dt_assoc>
196
+ <item key="name">ns1.systemdns.com</item>
197
+ <item key="sortorder">2</item>
198
+ <item key="ipaddress"></item>
199
+ </dt_assoc>
200
+ </item>
201
+ </dt_array>
202
+ </item>
203
+ </dt_assoc>
204
+ </item>
205
+ <item key="response_code">200</item>
206
+ <item key="is_success">1</item>
207
+ </dt_assoc>
208
+ </data_block>
209
+ </body>
210
+ </OPS_envelope>
211
+ http_version: "1.1"
@@ -0,0 +1,269 @@
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
+ - 0
14
+ content-length:
15
+ - "682"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Thu, 26 May 2011 19:10:34 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "852"
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">COOKIE</item>
41
+ <item key="response_text">Authentication Error.
42
+ For support regarding example.com, please contact your reseller, Prime Choice Web
43
+ Hosting via the following:
44
+
45
+ Prime Choice Web Hosting, opensrc@primechoice.com
46
+ 757-436-1421
47
+ This company may be contacted for domain login/passwords,
48
+ DNS/Nameserver
49
+ changes, and general domain support questions.
50
+ </item>
51
+ <item key="action">REPLY</item>
52
+ <item key="response_code">415</item>
53
+ <item key="support_message"></item>
54
+ <item key="is_success">0</item>
55
+ </dt_assoc>
56
+ </data_block>
57
+ </body>
58
+ </OPS_envelope>
59
+ http_version: "1.1"
60
+ - !ruby/struct:VCR::HTTPInteraction
61
+ request: !ruby/struct:VCR::Request
62
+ method: :post
63
+ uri: https://server.com:55443/
64
+ body:
65
+ headers:
66
+ content-type:
67
+ - text/xml
68
+ x-username:
69
+ - opensrs_user
70
+ x-signature:
71
+ - 00000000000000000000000000000000
72
+ content-length:
73
+ - "704"
74
+ response: !ruby/struct:VCR::Response
75
+ status: !ruby/struct:VCR::ResponseStatus
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ date:
80
+ - Tue, 31 May 2011 20:00:37 GMT
81
+ server:
82
+ - OpenSRS/XML-RSA Server
83
+ content-length:
84
+ - "975"
85
+ content-type:
86
+ - text/xml
87
+ body: |-
88
+ <?xml version='1.0' encoding="UTF-8" standalone="no" ?>
89
+ <!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
90
+ <OPS_envelope>
91
+ <header>
92
+ <version>0.9</version>
93
+ </header>
94
+ <body>
95
+ <data_block>
96
+ <dt_assoc>
97
+ <item key="protocol">XCP</item>
98
+ <item key="object">COOKIE</item>
99
+ <item key="response_text">Command Successful</item>
100
+ <item key="action">REPLY</item>
101
+ <item key="attributes">
102
+ <dt_assoc>
103
+ <item key="permission"></item>
104
+ <item key="cookie">0000000000000000:000000:00000</item>
105
+ <item key="expiredate">2012-04-07 20:45:46</item>
106
+ <item key="domain_count">1</item>
107
+ <item key="last_access_time">1306436957</item>
108
+ <item key="f_owner">1</item>
109
+ <item key="waiting_requests_no">0</item>
110
+ <item key="waiting_request">None</item>
111
+ <item key="last_ip"></item>
112
+ </dt_assoc>
113
+ </item>
114
+ <item key="response_code">200</item>
115
+ <item key="is_success">1</item>
116
+ </dt_assoc>
117
+ </data_block>
118
+ </body>
119
+ </OPS_envelope>
120
+ http_version: "1.1"
121
+ - !ruby/struct:VCR::HTTPInteraction
122
+ request: !ruby/struct:VCR::Request
123
+ method: :post
124
+ uri: https://server.com:55443/
125
+ body:
126
+ headers:
127
+ content-type:
128
+ - text/xml
129
+ x-username:
130
+ - opensrs_user
131
+ x-signature:
132
+ - 00000000000000000000000000000000
133
+ content-length:
134
+ - "654"
135
+ response: !ruby/struct:VCR::Response
136
+ status: !ruby/struct:VCR::ResponseStatus
137
+ code: 200
138
+ message: OK
139
+ headers:
140
+ date:
141
+ - Tue, 31 May 2011 20:00:38 GMT
142
+ server:
143
+ - OpenSRS/XML-RSA Server
144
+ content-length:
145
+ - "4300"
146
+ content-type:
147
+ - text/xml
148
+ body: |-
149
+ <?xml version='1.0' encoding="UTF-8" standalone="no" ?>
150
+ <!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
151
+ <OPS_envelope>
152
+ <header>
153
+ <version>0.9</version>
154
+ </header>
155
+ <body>
156
+ <data_block>
157
+ <dt_assoc>
158
+ <item key="protocol">XCP</item>
159
+ <item key="object">DOMAIN</item>
160
+ <item key="response_text">Query Successful</item>
161
+ <item key="action">REPLY</item>
162
+ <item key="attributes">
163
+ <dt_assoc>
164
+ <item key="auto_renew">0</item>
165
+ <item key="contact_set">
166
+ <dt_assoc>
167
+ <item key="admin">
168
+ <dt_assoc>
169
+ <item key="country">US</item>
170
+ <item key="address3">Owner</item>
171
+ <item key="org_name">Example Inc.</item>
172
+ <item key="phone">+1.4165550123x1902</item>
173
+ <item key="address2">Suite 500</item>
174
+ <item key="last_name">Ottway</item>
175
+ <item key="state">CA</item>
176
+ <item key="email">ottway@example.com</item>
177
+ <item key="city">SomeCity</item>
178
+ <item key="postal_code">90210</item>
179
+ <item key="fax">+1.4165550124</item>
180
+ <item key="address1">32 Oak Street</item>
181
+ <item key="first_name">Owen</item>
182
+ </dt_assoc>
183
+ </item>
184
+ <item key="owner">
185
+ <dt_assoc>
186
+ <item key="country">US</item>
187
+ <item key="address3">Owner</item>
188
+ <item key="org_name">Example Inc.</item>
189
+ <item key="phone">+1.4165550123x1902</item>
190
+ <item key="state">CA</item>
191
+ <item key="last_name">Ottway</item>
192
+ <item key="address2">Suite 500</item>
193
+ <item key="email">ottway@example.com</item>
194
+ <item key="city">SomeCity</item>
195
+ <item key="postal_code">90210</item>
196
+ <item key="fax">+1.4165550124</item>
197
+ <item key="address1">32 Oak Street</item>
198
+ <item key="first_name">Owen</item>
199
+ </dt_assoc>
200
+ </item>
201
+ <item key="tech">
202
+ <dt_assoc>
203
+ <item key="country">US</item>
204
+ <item key="address3">Owner</item>
205
+ <item key="org_name">Example Inc.</item>
206
+ <item key="phone">+1.4165550123x1902</item>
207
+ <item key="address2">Suite 500</item>
208
+ <item key="state">CA</item>
209
+ <item key="last_name">Ottway</item>
210
+ <item key="email">ottway@example.com</item>
211
+ <item key="city">SomeCity</item>
212
+ <item key="postal_code">90210</item>
213
+ <item key="fax">+1.4165550124</item>
214
+ <item key="address1">32 Oak Street</item>
215
+ <item key="first_name">Owen</item>
216
+ </dt_assoc>
217
+ </item>
218
+ <item key="billing">
219
+ <dt_assoc>
220
+ <item key="country">US</item>
221
+ <item key="address3">Owner</item>
222
+ <item key="org_name">Example Inc.</item>
223
+ <item key="phone">+1.4165550123x1902</item>
224
+ <item key="state">CA</item>
225
+ <item key="last_name">Ottway</item>
226
+ <item key="address2">Suite 500</item>
227
+ <item key="email">ottway@example.com</item>
228
+ <item key="city">SomeCity</item>
229
+ <item key="postal_code">90210</item>
230
+ <item key="fax">+1.4165550124</item>
231
+ <item key="address1">32 Oak Street</item>
232
+ <item key="first_name">Owen</item>
233
+ </dt_assoc>
234
+ </item>
235
+ </dt_assoc>
236
+ </item>
237
+ <item key="registry_updatedate">2011-04-07 20:45:46</item>
238
+ <item key="sponsoring_rsp">1</item>
239
+ <item key="registry_createdate">2011-04-07 20:45:46</item>
240
+ <item key="expiredate">2012-04-07 20:45:46</item>
241
+ <item key="let_expire">1</item>
242
+ <item key="registry_expiredate">2012-04-07 20:45:46</item>
243
+ <item key="nameserver_list">
244
+ <dt_array>
245
+ <item key="0">
246
+ <dt_assoc>
247
+ <item key="name">ns2.systemdns.com</item>
248
+ <item key="sortorder">1</item>
249
+ <item key="ipaddress"></item>
250
+ </dt_assoc>
251
+ </item>
252
+ <item key="1">
253
+ <dt_assoc>
254
+ <item key="name">ns1.systemdns.com</item>
255
+ <item key="sortorder">2</item>
256
+ <item key="ipaddress"></item>
257
+ </dt_assoc>
258
+ </item>
259
+ </dt_array>
260
+ </item>
261
+ </dt_assoc>
262
+ </item>
263
+ <item key="response_code">200</item>
264
+ <item key="is_success">1</item>
265
+ </dt_assoc>
266
+ </data_block>
267
+ </body>
268
+ </OPS_envelope>
269
+ http_version: "1.1"
@@ -0,0 +1,76 @@
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
+ - "673"
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:21 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "12851"
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">Command successful</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="exp_domains">
46
+ <dt_array>
47
+ <item key="0">
48
+ <dt_assoc>
49
+ <item key="f_let_expire">N</item>
50
+ <item key="name">example.com</item>
51
+ <item key="expiredate">2011-11-03 16:14:46</item>
52
+ <item key="f_auto_renew">N</item>
53
+ </dt_assoc>
54
+ </item>
55
+ <item key="1">
56
+ <dt_assoc>
57
+ <item key="f_let_expire">N</item>
58
+ <item key="name">example2.com</item>
59
+ <item key="expiredate">2012-01-05 22:11:11</item>
60
+ <item key="f_auto_renew">Y</item>
61
+ </dt_assoc>
62
+ </item>
63
+ </dt_array>
64
+ </item>
65
+ <item key="page">1</item>
66
+ <item key="remainder">1</item>
67
+ <item key="total">2</item>
68
+ </dt_assoc>
69
+ </item>
70
+ <item key="response_code">200</item>
71
+ <item key="is_success">1</item>
72
+ </dt_assoc>
73
+ </data_block>
74
+ </body>
75
+ </OPS_envelope>
76
+ http_version: "1.1"
@@ -0,0 +1,129 @@
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
+ - "700"
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:20 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "3669"
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">Command successful</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="domainthatsnottaken1302209138.com">
46
+ <dt_assoc>
47
+ <item key="contact_set">
48
+ <dt_assoc>
49
+ <item key="owner">
50
+ <dt_assoc>
51
+ <item key="country">US</item>
52
+ <item key="address3">Owner</item>
53
+ <item key="org_name">Example Inc.</item>
54
+ <item key="phone">+1.4165550123x1902</item>
55
+ <item key="state">CA</item>
56
+ <item key="address2">Suite 500</item>
57
+ <item key="last_name">Ottway</item>
58
+ <item key="email">ottway@example.com</item>
59
+ <item key="city">SomeCity</item>
60
+ <item key="postal_code">90210</item>
61
+ <item key="fax">+1.4165550124</item>
62
+ <item key="address1">32 Oak Street</item>
63
+ <item key="first_name">Owen</item>
64
+ </dt_assoc>
65
+ </item>
66
+ <item key="admin">
67
+ <dt_assoc>
68
+ <item key="country">US</item>
69
+ <item key="address3">Owner</item>
70
+ <item key="org_name">Example Inc.</item>
71
+ <item key="phone">+1.4165550123x1902</item>
72
+ <item key="state">CA</item>
73
+ <item key="address2">Suite 500</item>
74
+ <item key="last_name">Ottway</item>
75
+ <item key="email">ottway@example.com</item>
76
+ <item key="city">SomeCity</item>
77
+ <item key="postal_code">90210</item>
78
+ <item key="fax">+1.4165550124</item>
79
+ <item key="address1">32 Oak Street</item>
80
+ <item key="first_name">Owen</item>
81
+ </dt_assoc>
82
+ </item>
83
+ <item key="tech">
84
+ <dt_assoc>
85
+ <item key="country">US</item>
86
+ <item key="address3">Owner</item>
87
+ <item key="org_name">Example Inc.</item>
88
+ <item key="phone">+1.4165550123x1902</item>
89
+ <item key="state">CA</item>
90
+ <item key="address2">Suite 500</item>
91
+ <item key="last_name">Ottway</item>
92
+ <item key="email">ottway@example.com</item>
93
+ <item key="city">SomeCity</item>
94
+ <item key="postal_code">90210</item>
95
+ <item key="fax">+1.4165550124</item>
96
+ <item key="address1">32 Oak Street</item>
97
+ <item key="first_name">Owen</item>
98
+ </dt_assoc>
99
+ </item>
100
+ <item key="billing">
101
+ <dt_assoc>
102
+ <item key="country">US</item>
103
+ <item key="address3">Owner</item>
104
+ <item key="org_name">Example Inc.</item>
105
+ <item key="phone">+1.4165550123x1902</item>
106
+ <item key="state">CA</item>
107
+ <item key="address2">Suite 500</item>
108
+ <item key="last_name">Ottway</item>
109
+ <item key="email">ottway@example.com</item>
110
+ <item key="city">SomeCity</item>
111
+ <item key="postal_code">90210</item>
112
+ <item key="fax">+1.4165550124</item>
113
+ <item key="address1">32 Oak Street</item>
114
+ <item key="first_name">Owen</item>
115
+ </dt_assoc>
116
+ </item>
117
+ </dt_assoc>
118
+ </item>
119
+ </dt_assoc>
120
+ </item>
121
+ </dt_assoc>
122
+ </item>
123
+ <item key="response_code">200</item>
124
+ <item key="is_success">1</item>
125
+ </dt_assoc>
126
+ </data_block>
127
+ </body>
128
+ </OPS_envelope>
129
+ http_version: "1.1"