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,58 @@
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
+ - "669"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Tue, 31 May 2011 19:01:28 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "728"
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="example.com">
46
+ <dt_assoc>
47
+ <item key="error">Domain does not belong to the reseller opensrs_user</item>
48
+ </dt_assoc>
49
+ </item>
50
+ </dt_assoc>
51
+ </item>
52
+ <item key="response_code">200</item>
53
+ <item key="is_success">1</item>
54
+ </dt_assoc>
55
+ </data_block>
56
+ </body>
57
+ </OPS_envelope>
58
+ http_version: "1.1"
@@ -0,0 +1,85 @@
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
+ - "672"
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
+ - "1727"
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_code">200</item>
42
+ <item key="is_success">1</item>
43
+ <item key="response_text">Command successful</item>
44
+ <item key="transaction_id">2011-05-06 16:13:21 12062 101</item>
45
+ <item key="action">REPLY</item>
46
+ <item key="attributes">
47
+ <dt_assoc>
48
+ <item key="page_size">40</item>
49
+ <item key="page">1</item>
50
+ <item key="notes">
51
+ <dt_array>
52
+ <item key="0">
53
+ <dt_assoc>
54
+ <item key="timestamp">08-APR-2011 15:11:53</item>
55
+ <item key="note">Let-expire setting disabled.</item>
56
+ </dt_assoc>
57
+ </item>
58
+ <item key="1">
59
+ <dt_assoc>
60
+ <item key="timestamp">07-APR-2011 16:45:46</item>
61
+ <item key="note">Order #1855625: Domain Registration (1 year: $11.62); Registry fee: $7.34; ICANN fee: $0.18; Management fee: $4.10;</item>
62
+ </dt_assoc>
63
+ </item>
64
+ <item key="2">
65
+ <dt_assoc>
66
+ <item key="timestamp">07-APR-2011 16:45:46</item>
67
+ <item key="note">Domain set to Auto Renew.</item>
68
+ </dt_assoc>
69
+ </item>
70
+ <item key="3">
71
+ <dt_assoc>
72
+ <item key="timestamp">07-APR-2011 16:45:46</item>
73
+ <item key="note">Domain registration successfully completed.</item>
74
+ </dt_assoc>
75
+ </item>
76
+ </dt_array>
77
+ </item>
78
+ <item key="total">4</item>
79
+ </dt_assoc>
80
+ </item>
81
+ </dt_assoc>
82
+ </data_block>
83
+ </body>
84
+ </OPS_envelope>
85
+ http_version: "1.1"
@@ -0,0 +1,61 @@
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
+ - "706"
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:22 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "813"
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_code">200</item>
42
+ <item key="is_success">1</item>
43
+ <item key="response_text">Command successful</item>
44
+ <item key="transaction_id">2011-05-06 16:13:22 12068 101</item>
45
+ <item key="action">REPLY</item>
46
+ <item key="attributes">
47
+ <dt_assoc>
48
+ <item key="page_size">40</item>
49
+ <item key="page">1</item>
50
+ <item key="notes">
51
+ <dt_array>
52
+ </dt_array>
53
+ </item>
54
+ <item key="total">0</item>
55
+ </dt_assoc>
56
+ </item>
57
+ </dt_assoc>
58
+ </data_block>
59
+ </body>
60
+ </OPS_envelope>
61
+ http_version: "1.1"
@@ -0,0 +1,61 @@
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
+ - "694"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Mon, 09 May 2011 17:56:40 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "813"
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_code">200</item>
42
+ <item key="is_success">1</item>
43
+ <item key="response_text">Command successful</item>
44
+ <item key="transaction_id">2011-05-09 13:56:40 23321 101</item>
45
+ <item key="action">REPLY</item>
46
+ <item key="attributes">
47
+ <dt_assoc>
48
+ <item key="page_size">40</item>
49
+ <item key="page">1</item>
50
+ <item key="notes">
51
+ <dt_array>
52
+ </dt_array>
53
+ </item>
54
+ <item key="total">0</item>
55
+ </dt_assoc>
56
+ </item>
57
+ </dt_assoc>
58
+ </data_block>
59
+ </body>
60
+ </OPS_envelope>
61
+ http_version: "1.1"
@@ -0,0 +1,139 @@
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
+ - "623"
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:22 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "4528"
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 completed successfully</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="field_hash">
46
+ <dt_assoc>
47
+ <item key="owner_address2">Suite 500</item>
48
+ <item key="billing_address1">32 Oak Street</item>
49
+ <item key="owner_address1">32 Oak Street</item>
50
+ <item key="billing_org_name">Example Inc.</item>
51
+ <item key="tech_last_name">Ottway</item>
52
+ <item key="processed_date"></item>
53
+ <item key="billing_country">US</item>
54
+ <item key="owner_address3">Owner</item>
55
+ <item key="billing_address2">Suite 500</item>
56
+ <item key="fqdn2">ns2.systemdns.com</item>
57
+ <item key="period">1</item>
58
+ <item key="admin_address3">Owner</item>
59
+ <item key="billing_postal_code">90210</item>
60
+ <item key="admin_postal_code">90210</item>
61
+ <item key="owner_org_name">Example Inc.</item>
62
+ <item key="owner_fax">+1.4165550124</item>
63
+ <item key="tech_address3">Owner</item>
64
+ <item key="encoding_type"></item>
65
+ <item key="admin_org_name">Example Inc.</item>
66
+ <item key="tech_org_name">Example Inc.</item>
67
+ <item key="tech_postal_code">90210</item>
68
+ <item key="tech_email">ottway@example.com</item>
69
+ <item key="billing_phone">+1.4165550123x1902</item>
70
+ <item key="affiliate_id"></item>
71
+ <item key="tech_fax">+1.4165550124</item>
72
+ <item key="owner_state">CA</item>
73
+ <item key="owner_email">ottway@example.com</item>
74
+ <item key="billing_first_name">Owen</item>
75
+ <item key="fqdn4"></item>
76
+ <item key="domain">domainthatsnottaken1302209138.com</item>
77
+ <item key="billing_address3">Owner</item>
78
+ <item key="admin_fax">+1.4165550124</item>
79
+ <item key="flag_saved_tech_fields">1</item>
80
+ <item key="billing_state">CA</item>
81
+ <item key="completed_date">1302209146</item>
82
+ <item key="billing_city">SomeCity</item>
83
+ <item key="notes">
84
+ <dt_array>
85
+ </dt_array>
86
+ </item>
87
+ <item key="reg_domain"></item>
88
+ <item key="fqdn3"></item>
89
+ <item key="fqdn5"></item>
90
+ <item key="tech_city">SomeCity</item>
91
+ <item key="owner_phone">+1.4165550123x1902</item>
92
+ <item key="comments"></item>
93
+ <item key="admin_state">CA</item>
94
+ <item key="owner_postal_code">90210</item>
95
+ <item key="id">1855625</item>
96
+ <item key="admin_first_name">Owen</item>
97
+ <item key="admin_phone">+1.4165550123x1902</item>
98
+ <item key="tech_state">CA</item>
99
+ <item key="cost">11.44</item>
100
+ <item key="billing_last_name">Ottway</item>
101
+ <item key="owner_city">SomeCity</item>
102
+ <item key="flag_saved_ns_fields">1</item>
103
+ <item key="admin_last_name">Ottway</item>
104
+ <item key="tech_phone">+1.4165550123x1902</item>
105
+ <item key="master_order_id">0</item>
106
+ <item key="tech_address2">Suite 500</item>
107
+ <item key="order_date">1302209145</item>
108
+ <item key="admin_address1">32 Oak Street</item>
109
+ <item key="tech_address1">32 Oak Street</item>
110
+ <item key="f_auto_renew">Y</item>
111
+ <item key="owner_last_name">Ottway</item>
112
+ <item key="forwarding_email"></item>
113
+ <item key="billing_fax">+1.4165550124</item>
114
+ <item key="billing_email">ottway@example.com</item>
115
+ <item key="status">completed</item>
116
+ <item key="fqdn6"></item>
117
+ <item key="admin_country">US</item>
118
+ <item key="admin_email">ottway@example.com</item>
119
+ <item key="reg_type">new</item>
120
+ <item key="owner_country">US</item>
121
+ <item key="admin_city">SomeCity</item>
122
+ <item key="fqdn1">ns1.systemdns.com</item>
123
+ <item key="tech_country">US</item>
124
+ <item key="tech_first_name">Owen</item>
125
+ <item key="f_lock_domain">0</item>
126
+ <item key="f_bypass_confirm"></item>
127
+ <item key="owner_first_name">Owen</item>
128
+ <item key="admin_address2">Suite 500</item>
129
+ </dt_assoc>
130
+ </item>
131
+ </dt_assoc>
132
+ </item>
133
+ <item key="response_code">200</item>
134
+ <item key="is_success">1</item>
135
+ </dt_assoc>
136
+ </data_block>
137
+ </body>
138
+ </OPS_envelope>
139
+ 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
+ - "653"
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:23 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "5863"
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="page">1</item>
47
+ <item key="orders">
48
+ <dt_array>
49
+ <item key="0">
50
+ <dt_assoc>
51
+ <item key="order_date">15-APR-2011 14:08:42</item>
52
+ <item key="status">cancelled</item>
53
+ <item key="id">1862773</item>
54
+ <item key="type">renewal</item>
55
+ </dt_assoc>
56
+ </item>
57
+ <item key="1">
58
+ <dt_assoc>
59
+ <item key="order_date">12-APR-2011 16:52:00</item>
60
+ <item key="status">cancelled</item>
61
+ <item key="id">1867226</item>
62
+ <item key="type">renewal</item>
63
+ </dt_assoc>
64
+ </item>
65
+ </dt_array>
66
+ </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,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
+ - "620"
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:23 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "603"
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="price">11.62</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,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
+ - "629"
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:24 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "551"
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">TRUST_SERVICE</item>
41
+ <item key="response_text">Invalid id supplied. Cannot be found in the database</item>
42
+ <item key="action">GET_PRODUCT_INFO:REPLY</item>
43
+ <item key="response_code">405</item>
44
+ <item key="is_success">0</item>
45
+ </dt_assoc>
46
+ </data_block>
47
+ </body>
48
+ </OPS_envelope>
49
+ 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
+ - "617"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Fri, 15 Apr 2011 17:15:27 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "638"
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 available</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="status">available</item>
46
+ <item key="match"></item>
47
+ </dt_assoc>
48
+ </item>
49
+ <item key="response_code">210</item>
50
+ <item key="is_success">1</item>
51
+ </dt_assoc>
52
+ </data_block>
53
+ </body>
54
+ </OPS_envelope>
55
+ http_version: "1.1"