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,56 @@
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
+ - "631"
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:58:51 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "678"
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='action'>REPLY</item>
41
+ <item key='object'>TRUST_SERVICE</item>
42
+ <item key='response_text'>Command completed successfully.</item>
43
+ <item key='is_success'>1</item>
44
+ <item key='response_code'>200</item>
45
+ <item key='attributes'>
46
+ <dt_assoc>
47
+ <item key='domain'>example.com</item>
48
+ <item key='order_id'>123456</item>
49
+ <item key='state'>declined</item>
50
+ </dt_assoc>
51
+ </item>
52
+ </dt_assoc>
53
+ </data_block>
54
+ </body>
55
+ </OPS_envelope>
56
+ 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
+ x-username:
9
+ - opensrs_user
10
+ content-type:
11
+ - text/xml
12
+ x-signature:
13
+ - 00000000000000000000000000000000
14
+ content-length:
15
+ - "602"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ content-type:
22
+ - text/xml
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ date:
26
+ - Wed, 25 May 2011 15:05:19 GMT
27
+ content-length:
28
+ - "547"
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">CANCEL_ORDER: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,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
+ - "631"
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:58:51 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "678"
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">ORDER</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="attributes">
45
+ <dt_assoc>
46
+ <item key="total">0</item>
47
+ <item key="cancelled">
48
+ <dt_array>
49
+ </dt_array>
50
+ </item>
51
+ </dt_assoc>
52
+ </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,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
+ x-username:
9
+ - opensrs_user
10
+ content-type:
11
+ - text/xml
12
+ x-signature:
13
+ - 00000000000000000000000000000000
14
+ content-length:
15
+ - "752"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ content-type:
22
+ - text/xml
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ date:
26
+ - Mon, 09 May 2011 21:03:11 GMT
27
+ content-length:
28
+ - "492"
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">Update 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"
@@ -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
+ - "738"
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:58:51 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "492"
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">Update 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"
@@ -0,0 +1,57 @@
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
+ - "624"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Mon, 25 Apr 2011 18:27:59 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "781"
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">Domain registration successfully completed</item>
44
+ <item key="action">REPLY</item>
45
+ <item key="attributes">
46
+ <dt_assoc>
47
+ <item key="order_id">1878084</item>
48
+ <item key="id">730001</item>
49
+ <item key="f_auto_renew">Y</item>
50
+ <item key="registration expiration date">2012-04-25 18:27:58</item>
51
+ </dt_assoc>
52
+ </item>
53
+ </dt_assoc>
54
+ </data_block>
55
+ </body>
56
+ </OPS_envelope>
57
+ http_version: "1.1"
@@ -0,0 +1,57 @@
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
+ - "3446"
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ content-type:
22
+ - text/xml
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ date:
26
+ - Tue, 03 May 2011 15:36:59 GMT
27
+ content-length:
28
+ - "815"
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 registration successfully completed</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="registration_text">Domain registration successfully completed</item>
46
+ <item key="admin_email">ottway@example.com</item>
47
+ <item key="registration_code">200</item>
48
+ <item key="id">1885783</item>
49
+ </dt_assoc>
50
+ </item>
51
+ <item key="response_code">200</item>
52
+ <item key="is_success">1</item>
53
+ </dt_assoc>
54
+ </data_block>
55
+ </body>
56
+ </OPS_envelope>
57
+ 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
+ - "3489"
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:58:54 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "653"
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">Order created</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="admin_email">ottway@example.com</item>
46
+ <item key="id">1888032</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
+ - "3432"
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:58:54 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "676"
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="transaction_id">2011-05-06 16:58:54 14789 101</item>
43
+ <item key="action">REPLY</item>
44
+ <item key="attributes">
45
+ <dt_assoc>
46
+ <item key="forced_pending">1890063</item>
47
+ </dt_assoc>
48
+ </item>
49
+ <item key="response_code">485</item>
50
+ <item key="is_success">0</item>
51
+ </dt_assoc>
52
+ </data_block>
53
+ </body>
54
+ </OPS_envelope>
55
+ http_version: "1.1"
@@ -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
+ - "721"
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 18:14:23 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "822"
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="admin_email">adams@example.com</item>
46
+ <item key="order_id">1867227</item>
47
+ <item key="auto_renew">0</item>
48
+ <item key="id">678899</item>
49
+ <item key="registration expiration date">2012-11-03 16:14:46</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,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
+ - "684"
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:51:21 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "688"
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 example.com revoked successfully</item>
42
+ <item key="action">REPLY</item>
43
+ <item key="attributes">
44
+ <dt_assoc>
45
+ <item key="charge">1</item>
46
+ <item key="price">1.0</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,60 @@
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
+ - "3469"
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:58:55 GMT
23
+ server:
24
+ - OpenSRS/XML-RSA Server
25
+ content-length:
26
+ - "898"
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">Permission denied for the specified reseller and product type</item>
42
+ <item key="action">SW_REGISTER:REPLY</item>
43
+ <item key="error_details">
44
+ <dt_array>
45
+ <item key="0">
46
+ <dt_assoc>
47
+ <item key="error_detail">Permission denied for the specified reseller and product type</item>
48
+ <item key="field_name">product_type</item>
49
+ <item key="error_code">501</item>
50
+ </dt_assoc>
51
+ </item>
52
+ </dt_array>
53
+ </item>
54
+ <item key="response_code">501</item>
55
+ <item key="is_success">0</item>
56
+ </dt_assoc>
57
+ </data_block>
58
+ </body>
59
+ </OPS_envelope>
60
+ http_version: "1.1"