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,123 @@
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
+ - "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 18:41:23 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "975"
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">1304687051</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
+ - "713"
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 18:42:36 GMT
84
+ server:
85
+ - OpenSRS/XML-RSA Server
86
+ content-length:
87
+ - "975"
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">COOKIE</item>
102
+ <item key="response_text">Command Successful</item>
103
+ <item key="action">REPLY</item>
104
+ <item key="attributes">
105
+ <dt_assoc>
106
+ <item key="permission"></item>
107
+ <item key="cookie">0000000000000000:000000:00000</item>
108
+ <item key="expiredate">2012-04-07 20:45:46</item>
109
+ <item key="domain_count">1</item>
110
+ <item key="last_access_time">1304707285</item>
111
+ <item key="f_owner">1</item>
112
+ <item key="waiting_requests_no">0</item>
113
+ <item key="waiting_request">None</item>
114
+ <item key="last_ip"></item>
115
+ </dt_assoc>
116
+ </item>
117
+ <item key="response_code">200</item>
118
+ <item key="is_success">1</item>
119
+ </dt_assoc>
120
+ </data_block>
121
+ </body>
122
+ </OPS_envelope>
123
+ http_version: "1.1"
@@ -0,0 +1,54 @@
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
+ - "684"
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:06:03 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
+ This company may be contacted for domain login/passwords,
43
+ DNS/Nameserver
44
+ changes, and general domain support questions.
45
+ </item>
46
+ <item key="action">REPLY</item>
47
+ <item key="response_code">415</item>
48
+ <item key="is_success">0</item>
49
+ <item key="support_message"></item>
50
+ </dt_assoc>
51
+ </data_block>
52
+ </body>
53
+ </OPS_envelope>
54
+ http_version: "1.1"
@@ -0,0 +1,239 @@
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
+ - "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 18:41:25 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "975"
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">1304707284</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
+ - 0
75
+ content-length:
76
+ - "814"
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 18:41:26 GMT
84
+ server:
85
+ - OpenSRS/XML-RSA Server
86
+ content-length:
87
+ - "851"
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">COOKIE</item>
102
+ <item key="response_text">Command Successful</item>
103
+ <item key="action">REPLY</item>
104
+ <item key="attributes">
105
+ <dt_assoc>
106
+ <item key="domain_count">1</item>
107
+ <item key="f_owner">1</item>
108
+ <item key="waiting_requests_no">0</item>
109
+ <item key="waiting_request">None</item>
110
+ <item key="cookie">0000000000000000:000000:00000</item>
111
+ <item key="expiredate">2012-04-07 20:45:46</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
+ - "713"
135
+ response: !ruby/struct:VCR::Response
136
+ status: !ruby/struct:VCR::ResponseStatus
137
+ code: 200
138
+ message: OK
139
+ headers:
140
+ date:
141
+ - Fri, 06 May 2011 18:42:37 GMT
142
+ server:
143
+ - OpenSRS/XML-RSA Server
144
+ content-length:
145
+ - "975"
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">COOKIE</item>
160
+ <item key="response_text">Command Successful</item>
161
+ <item key="action">REPLY</item>
162
+ <item key="attributes">
163
+ <dt_assoc>
164
+ <item key="permission"></item>
165
+ <item key="cookie">0000000000000000:000000:00000</item>
166
+ <item key="expiredate">2012-04-07 20:45:46</item>
167
+ <item key="domain_count">1</item>
168
+ <item key="last_access_time">1304707356</item>
169
+ <item key="f_owner">1</item>
170
+ <item key="waiting_requests_no">0</item>
171
+ <item key="waiting_request">None</item>
172
+ <item key="last_ip"></item>
173
+ </dt_assoc>
174
+ </item>
175
+ <item key="response_code">200</item>
176
+ <item key="is_success">1</item>
177
+ </dt_assoc>
178
+ </data_block>
179
+ </body>
180
+ </OPS_envelope>
181
+ http_version: "1.1"
182
+ - !ruby/struct:VCR::HTTPInteraction
183
+ request: !ruby/struct:VCR::Request
184
+ method: :post
185
+ uri: https://server.com:55443/
186
+ body:
187
+ headers:
188
+ content-type:
189
+ - text/xml
190
+ x-username:
191
+ - opensrs_user
192
+ x-signature:
193
+ - 00000000000000000000000000000000
194
+ content-length:
195
+ - "814"
196
+ response: !ruby/struct:VCR::Response
197
+ status: !ruby/struct:VCR::ResponseStatus
198
+ code: 200
199
+ message: OK
200
+ headers:
201
+ date:
202
+ - Fri, 06 May 2011 18:42:38 GMT
203
+ server:
204
+ - OpenSRS/XML-RSA Server
205
+ content-length:
206
+ - "851"
207
+ content-type:
208
+ - text/xml
209
+ body: |-
210
+ <?xml version='1.0' encoding="UTF-8" standalone="no" ?>
211
+ <!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
212
+ <OPS_envelope>
213
+ <header>
214
+ <version>0.9</version>
215
+ </header>
216
+ <body>
217
+ <data_block>
218
+ <dt_assoc>
219
+ <item key="protocol">XCP</item>
220
+ <item key="object">COOKIE</item>
221
+ <item key="response_text">Command Successful</item>
222
+ <item key="action">REPLY</item>
223
+ <item key="attributes">
224
+ <dt_assoc>
225
+ <item key="domain_count">1</item>
226
+ <item key="f_owner">1</item>
227
+ <item key="waiting_requests_no">0</item>
228
+ <item key="waiting_request">None</item>
229
+ <item key="cookie">0000000000000000:000000:00000</item>
230
+ <item key="expiredate">2012-04-07 20:45:46</item>
231
+ </dt_assoc>
232
+ </item>
233
+ <item key="response_code">200</item>
234
+ <item key="is_success">1</item>
235
+ </dt_assoc>
236
+ </data_block>
237
+ </body>
238
+ </OPS_envelope>
239
+ http_version: "1.1"
@@ -0,0 +1,54 @@
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
+ - "625"
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:17 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "606"
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">Query successful</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="belongs_to_rsp">0</item>
46
+ </dt_assoc>
47
+ </item>
48
+ <item key="response_code">200</item>
49
+ <item key="is_success">1</item>
50
+ </dt_assoc>
51
+ </data_block>
52
+ </body>
53
+ </OPS_envelope>
54
+ http_version: "1.1"
@@ -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
+ - "647"
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:17 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "666"
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">Query successful</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="belongs_to_rsp">1</item>
46
+ <item key="domain_expdate">2012-04-07 20:45:46</item>
47
+ </dt_assoc>
48
+ </item>
49
+ <item key="response_code">200</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,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
+ - "576"
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:18 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "652"
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">BALANCE</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="balance">7312.24</item>
46
+ <item key="hold_balance">11.44</item>
47
+ </dt_assoc>
48
+ </item>
49
+ <item key="response_code">200</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,80 @@
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
+ - "583"
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
+ - "11613"
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="page_size">40</item>
46
+ <item key="del_domains">
47
+ <dt_array>
48
+ <item key="0">
49
+ <dt_assoc>
50
+ <item key="delete_date">07-JAN-2011 13:51:53</item>
51
+ <item key="name">example.com</item>
52
+ <item key="reason">By-Request</item>
53
+ <item key="expiredate">07-JAN-2012 18:51:50</item>
54
+ <item key="expiredate_epoch">1325980310</item>
55
+ <item key="delete_date_epoch">1294426313</item>
56
+ </dt_assoc>
57
+ </item>
58
+ <item key="1">
59
+ <dt_assoc>
60
+ <item key="delete_date">10-JAN-2011 14:25:29</item>
61
+ <item key="name">example2.com</item>
62
+ <item key="reason">By-Request</item>
63
+ <item key="expiredate">10-JAN-2012 19:19:37</item>
64
+ <item key="expiredate_epoch">1326241177</item>
65
+ <item key="delete_date_epoch">1294687529</item>
66
+ </dt_assoc>
67
+ </item>
68
+ </dt_array>
69
+ </item>
70
+ <item key="page">1</item>
71
+ <item key="total">2</item>
72
+ </dt_assoc>
73
+ </item>
74
+ <item key="response_code">200</item>
75
+ <item key="is_success">1</item>
76
+ </dt_assoc>
77
+ </data_block>
78
+ </body>
79
+ </OPS_envelope>
80
+ http_version: "1.1"