akamai_api 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/Guardfile +5 -15
  3. data/README.md +106 -36
  4. data/Thorfile +5 -0
  5. data/akamai_api.gemspec +6 -3
  6. data/bin/akamai_api +1 -2
  7. data/cassettes/akamai_api_ccu_arl_invalidate/invalid_credentials.yml +37 -0
  8. data/cassettes/akamai_api_ccu_arl_invalidate/invalid_item.yml +36 -0
  9. data/cassettes/akamai_api_ccu_arl_invalidate/multiple_items.yml +38 -0
  10. data/cassettes/akamai_api_ccu_arl_invalidate/single_item.yml +38 -0
  11. data/cassettes/akamai_api_ccu_arl_remove/invalid_credentials.yml +37 -0
  12. data/cassettes/akamai_api_ccu_arl_remove/invalid_item.yml +36 -0
  13. data/cassettes/akamai_api_ccu_arl_remove/multiple_items.yml +38 -0
  14. data/cassettes/akamai_api_ccu_arl_remove/single_item.yml +38 -0
  15. data/cassettes/akamai_api_ccu_cpcode_invalidate/invalid_credentials.yml +37 -0
  16. data/cassettes/akamai_api_ccu_cpcode_invalidate/invalid_item.yml +36 -0
  17. data/cassettes/akamai_api_ccu_cpcode_invalidate/multiple_items.yml +38 -0
  18. data/cassettes/akamai_api_ccu_cpcode_invalidate/single_item.yml +38 -0
  19. data/cassettes/akamai_api_ccu_cpcode_remove/invalid_credentials.yml +37 -0
  20. data/cassettes/akamai_api_ccu_cpcode_remove/invalid_item.yml +36 -0
  21. data/cassettes/akamai_api_ccu_cpcode_remove/multiple_items.yml +38 -0
  22. data/cassettes/akamai_api_ccu_cpcode_remove/single_item.yml +38 -0
  23. data/cassettes/akamai_api_ccu_purge_status/completed_request.yml +35 -0
  24. data/cassettes/akamai_api_ccu_purge_status/enqueued_request.yml +35 -0
  25. data/cassettes/akamai_api_ccu_purge_status/invalid_credentials.yml +35 -0
  26. data/cassettes/akamai_api_ccu_purge_status/not_found_request.yml +37 -0
  27. data/cassettes/akamai_api_ccu_status/invalid_credentials.yml +35 -0
  28. data/cassettes/akamai_api_ccu_status/valid_credentials.yml +34 -0
  29. data/cassettes/akamai_api_eccu_last_request/invalid_credentials.yml +68 -0
  30. data/cassettes/akamai_api_eccu_last_request/valid_credentials.yml +140 -0
  31. data/cassettes/akamai_api_eccu_publish/invalid_credentials.yml +73 -0
  32. data/cassettes/akamai_api_eccu_publish/invalid_domain.yml +60 -0
  33. data/cassettes/akamai_api_eccu_publish/successful.yml +126 -0
  34. data/cassettes/akamai_api_eccu_requests/invalid_credentials.yml +68 -0
  35. data/cassettes/akamai_api_eccu_requests/valid_credentials.yml +325 -0
  36. data/features/ccu_arl_invalidate.feature +83 -0
  37. data/features/ccu_arl_remove.feature +83 -0
  38. data/features/ccu_cpcode_invalidate.feature +83 -0
  39. data/features/ccu_cpcode_remove.feature +83 -0
  40. data/features/ccu_purge_status.feature +83 -0
  41. data/features/ccu_status.feature +31 -0
  42. data/features/eccu_last_request.feature +47 -0
  43. data/features/eccu_publish.feature +98 -0
  44. data/features/eccu_requests.feature +43 -0
  45. data/features/step_definitions/contain_multiple_times_steps.rb +3 -0
  46. data/features/support/env.rb +58 -0
  47. data/lib/akamai_api/ccu/purge/request.rb +76 -0
  48. data/lib/akamai_api/ccu/purge/response.rb +31 -0
  49. data/lib/akamai_api/ccu/purge.rb +5 -0
  50. data/lib/akamai_api/ccu/purge_status/not_found_response.rb +9 -0
  51. data/lib/akamai_api/ccu/purge_status/request.rb +32 -0
  52. data/lib/akamai_api/ccu/purge_status/response.rb +19 -0
  53. data/lib/akamai_api/ccu/purge_status/successful_response.rb +25 -0
  54. data/lib/akamai_api/ccu/purge_status.rb +10 -0
  55. data/lib/akamai_api/ccu/response.rb +18 -0
  56. data/lib/akamai_api/ccu/status/request.rb +23 -0
  57. data/lib/akamai_api/ccu/status/response.rb +11 -0
  58. data/lib/akamai_api/ccu/status.rb +2 -0
  59. data/lib/akamai_api/ccu.rb +14 -50
  60. data/lib/akamai_api/cli/app.rb +2 -2
  61. data/lib/akamai_api/cli/ccu/arl.rb +36 -0
  62. data/lib/akamai_api/cli/ccu/base.rb +18 -0
  63. data/lib/akamai_api/cli/ccu/cp_code.rb +39 -0
  64. data/lib/akamai_api/cli/ccu/purge_renderer.rb +49 -0
  65. data/lib/akamai_api/cli/ccu/status_renderer.rb +69 -0
  66. data/lib/akamai_api/cli/ccu.rb +5 -10
  67. data/lib/akamai_api/cli/eccu/entry_renderer.rb +63 -0
  68. data/lib/akamai_api/cli/eccu.rb +16 -14
  69. data/lib/akamai_api/cli.rb +7 -2
  70. data/lib/akamai_api/eccu_request.rb +19 -1
  71. data/lib/akamai_api/version.rb +1 -1
  72. data/lib/akamai_api.rb +3 -1
  73. data/spec/features/ccu/purge_request_spec.rb +94 -0
  74. data/spec/features/ccu/purge_status_request_spec.rb +31 -0
  75. data/spec/features/ccu/status_request_spec.rb +17 -0
  76. data/spec/fixtures/ccu/successful_purge.json +1 -0
  77. data/spec/lib/akamai_api/ccu/purge/request_spec.rb +124 -0
  78. data/spec/lib/akamai_api/ccu/purge/response_spec.rb +54 -0
  79. data/spec/lib/akamai_api/ccu/purge_status/not_found_response_spec.rb +41 -0
  80. data/spec/lib/akamai_api/ccu/purge_status/request_spec.rb +64 -0
  81. data/spec/lib/akamai_api/ccu/purge_status/successful_response_spec.rb +86 -0
  82. data/spec/lib/akamai_api/ccu/response_spec.rb +15 -0
  83. data/spec/lib/akamai_api/ccu/status/request_spec.rb +22 -0
  84. data/spec/lib/akamai_api/ccu/status/response_spec.rb +29 -0
  85. data/spec/lib/akamai_api/ccu_spec.rb +49 -61
  86. data/spec/lib/akamai_api/cli/ccu/status_renderer_spec.rb +36 -0
  87. data/spec/lib/akamai_api/eccu_request_spec.rb +5 -5
  88. data/spec/spec_helper.rb +21 -1
  89. metadata +163 -26
  90. data/lib/akamai_api/ccu_response.rb +0 -51
  91. data/lib/akamai_api/cli/ccu_arl.rb +0 -40
  92. data/lib/akamai_api/cli/ccu_cp_code.rb +0 -48
  93. data/lib/akamai_api/cli/template.rb +0 -36
  94. data/lib/akamai_api/cp_code.rb +0 -33
  95. data/spec/fixtures/ccu/successful_purge.xml +0 -15
  96. data/spec/fixtures/cp_code/collection.xml +0 -21
  97. data/spec/fixtures/cp_code/single.xml +0 -16
  98. data/spec/lib/akamai_api/cp_code_spec.rb +0 -47
  99. data/wsdls/cpcode.wsdl +0 -2765
@@ -0,0 +1,140 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://USERNAME:PASSWORD@control.akamai.com/webservices/services/PublishECCU
6
+ body:
7
+ encoding: UTF-8
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd"
11
+ xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:getIds></akapubeccudt:getIds></env:Body></env:Envelope>
12
+ headers:
13
+ Soapaction:
14
+ - '"getIds"'
15
+ Content-Type:
16
+ - text/xml;charset=UTF-8
17
+ Content-Length:
18
+ - '457'
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - '*/*'
23
+ User-Agent:
24
+ - Ruby
25
+ response:
26
+ status:
27
+ code: 200
28
+ message: OK
29
+ headers:
30
+ Server:
31
+ - Apache
32
+ Content-Type:
33
+ - text/xml;charset=utf-8
34
+ Content-Length:
35
+ - '2211'
36
+ Expires:
37
+ - Tue, 20 May 2014 15:30:28 GMT
38
+ Cache-Control:
39
+ - max-age=0, no-cache, no-store
40
+ Pragma:
41
+ - no-cache
42
+ Date:
43
+ - Tue, 20 May 2014 15:30:28 GMT
44
+ Connection:
45
+ - keep-alive
46
+ X-Frame-Options:
47
+ - SAMEORIGIN
48
+ body:
49
+ encoding: UTF-8
50
+ string: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
51
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getIdsResponse
52
+ soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="https://control.akamai.com/2003/Sep/PublishECCU.xsd"><fileIds
53
+ soapenc:arrayType="xsd:int[35]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><fileIds
54
+ xsi:type="xsd:int">112714868</fileIds><fileIds xsi:type="xsd:int">112714869</fileIds><fileIds
55
+ xsi:type="xsd:int">112722029</fileIds><fileIds xsi:type="xsd:int">112899587</fileIds><fileIds
56
+ xsi:type="xsd:int">112949504</fileIds><fileIds xsi:type="xsd:int">113056258</fileIds><fileIds
57
+ xsi:type="xsd:int">113117157</fileIds><fileIds xsi:type="xsd:int">113141298</fileIds><fileIds
58
+ xsi:type="xsd:int">113141447</fileIds><fileIds xsi:type="xsd:int">113664906</fileIds><fileIds
59
+ xsi:type="xsd:int">113681361</fileIds><fileIds xsi:type="xsd:int">113715613</fileIds><fileIds
60
+ xsi:type="xsd:int">113734537</fileIds><fileIds xsi:type="xsd:int">113737761</fileIds><fileIds
61
+ xsi:type="xsd:int">113752177</fileIds><fileIds xsi:type="xsd:int">113838800</fileIds><fileIds
62
+ xsi:type="xsd:int">114248258</fileIds><fileIds xsi:type="xsd:int">114280303</fileIds><fileIds
63
+ xsi:type="xsd:int">114286901</fileIds><fileIds xsi:type="xsd:int">114300152</fileIds><fileIds
64
+ xsi:type="xsd:int">114300153</fileIds><fileIds xsi:type="xsd:int">114381696</fileIds><fileIds
65
+ xsi:type="xsd:int">114398087</fileIds><fileIds xsi:type="xsd:int">114416009</fileIds><fileIds
66
+ xsi:type="xsd:int">114481952</fileIds><fileIds xsi:type="xsd:int">114534104</fileIds><fileIds
67
+ xsi:type="xsd:int">114607612</fileIds><fileIds xsi:type="xsd:int">114629490</fileIds><fileIds
68
+ xsi:type="xsd:int">115093651</fileIds><fileIds xsi:type="xsd:int">115332669</fileIds><fileIds
69
+ xsi:type="xsd:int">115400297</fileIds><fileIds xsi:type="xsd:int">115421181</fileIds><fileIds
70
+ xsi:type="xsd:int">115618681</fileIds><fileIds xsi:type="xsd:int">115942213</fileIds><fileIds
71
+ xsi:type="xsd:int">115942214</fileIds></fileIds></ns1:getIdsResponse></soapenv:Body></soapenv:Envelope>
72
+ http_version:
73
+ recorded_at: Tue, 20 May 2014 15:30:29 GMT
74
+ - request:
75
+ method: post
76
+ uri: https://USERNAME:PASSWORD@control.akamai.com/webservices/services/PublishECCU
77
+ body:
78
+ encoding: UTF-8
79
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
80
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd"
81
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd"
82
+ xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:getInfo><fileId
83
+ xsi:type="xsd:int">115942214</fileId><retrieveContents xsi:type="xsd:boolean">false</retrieveContents></akapubeccudt:getInfo></env:Body></env:Envelope>
84
+ headers:
85
+ Soapaction:
86
+ - '"getInfo"'
87
+ Content-Type:
88
+ - text/xml;charset=UTF-8
89
+ Content-Length:
90
+ - '569'
91
+ Accept-Encoding:
92
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
+ Accept:
94
+ - '*/*'
95
+ User-Agent:
96
+ - Ruby
97
+ response:
98
+ status:
99
+ code: 200
100
+ message: OK
101
+ headers:
102
+ Server:
103
+ - Apache
104
+ Content-Type:
105
+ - text/xml;charset=utf-8
106
+ Content-Length:
107
+ - '1682'
108
+ Expires:
109
+ - Tue, 20 May 2014 15:30:29 GMT
110
+ Cache-Control:
111
+ - max-age=0, no-cache, no-store
112
+ Pragma:
113
+ - no-cache
114
+ Date:
115
+ - Tue, 20 May 2014 15:30:29 GMT
116
+ Connection:
117
+ - keep-alive
118
+ X-Frame-Options:
119
+ - SAMEORIGIN
120
+ body:
121
+ encoding: UTF-8
122
+ string: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
123
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getInfoResponse
124
+ soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="https://control.akamai.com/2003/Sep/PublishECCU.xsd"><EccuInfo
125
+ xsi:type="ns2:EccuInfo" xmlns:ns2="https://control.akamai.com/Publish.xsd"><contents
126
+ xsi:type="xsd:base64Binary" xsi:nil="true"/><extendedStatusMessage xsi:type="xsd:string">File
127
+ successfully deployed to Akamai network (Succeeded)</extendedStatusMessage><fileId
128
+ xsi:type="xsd:int">115942214</fileId><fileSize xsi:type="xsd:int">127</fileSize><filename
129
+ xsi:type="xsd:string" xsi:nil="true"/><md5Digest xsi:type="xsd:string">21d66aa68fda0d7714a60190785597f3</md5Digest><notes
130
+ xsi:type="xsd:string">ECCU Request using EdgeControl</notes><propertyName
131
+ xsi:type="xsd:string">foo.com</propertyName><propertyNameExactMatch xsi:type="xsd:boolean">true</propertyNameExactMatch><propertyType
132
+ xsi:type="xsd:string">hostheader</propertyType><statusChangeEmail xsi:type="xsd:string">guest@mikamai.com</statusChangeEmail><statusCode
133
+ xsi:type="xsd:int">4000</statusCode><statusMessage xsi:type="xsd:string">File
134
+ successfully deployed to Akamai's network</statusMessage><statusUpdateDate
135
+ xsi:type="xsd:dateTime">2014-05-19T16:27:34.512Z</statusUpdateDate><uploadDate
136
+ xsi:type="xsd:dateTime">2014-05-19T15:30:13.512Z</uploadDate><uploadedBy xsi:type="xsd:string">test1</uploadedBy><versionString
137
+ xsi:type="xsd:string" xsi:nil="true"/></EccuInfo></ns1:getInfoResponse></soapenv:Body></soapenv:Envelope>
138
+ http_version:
139
+ recorded_at: Tue, 20 May 2014 15:30:29 GMT
140
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://foo:bar@control.akamai.com/webservices/services/PublishECCU
6
+ body:
7
+ encoding: UTF-8
8
+ string: |-
9
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd" xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:upload><filename xsi:type="xsd:string">./publish.xml</filename><contents xsi:type="xsd:base64Binary">PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxlY2N1PgogIDxtYXRjaDpyZWN1cnNp
10
+ dmUtZGlycyB2YWx1ZT0iZm9vIiA+CiAgICA8bWF0Y2g6cmVjdXJzaXZlLWRp
11
+ cnMgdmFsdWU9ImJhciIgPgogICAgICA8bWF0Y2g6cmVjdXJzaXZlLWRpcnMg
12
+ dmFsdWU9ImJhei5qcGciID4KICAgICAgICA8cmV2YWxpZGF0ZT5ub3c8L3Jl
13
+ dmFsaWRhdGU+CiAgICAgIDwvbWF0Y2g6cmVjdXJzaXZlLWRpcnM+CiAgICA8
14
+ L21hdGNoOnJlY3Vyc2l2ZS1kaXJzPgogIDwvbWF0Y2g6cmVjdXJzaXZlLWRp
15
+ cnM+CjwvZWNjdT4=
16
+ </contents><notes xsi:type="xsd:string">ECCU Request using AkamaiApi gem</notes><versionString xsi:type="xsd:string"></versionString><propertyName xsi:type="xsd:string">foo.com</propertyName><propertyType xsi:type="xsd:string">hostheader</propertyType><propertyNameExactMatch xsi:type="xsd:boolean">true</propertyNameExactMatch></akapubeccudt:upload></env:Body></env:Envelope>
17
+ headers:
18
+ Soapaction:
19
+ - '"upload"'
20
+ Content-Type:
21
+ - text/xml;charset=UTF-8
22
+ Content-Length:
23
+ - '1269'
24
+ Accept-Encoding:
25
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
26
+ Accept:
27
+ - '*/*'
28
+ User-Agent:
29
+ - Ruby
30
+ response:
31
+ status:
32
+ code: 401
33
+ message: Unauthorized
34
+ headers:
35
+ Server:
36
+ - Apache
37
+ Www-Authenticate:
38
+ - Basic realm="Luna Control Center Web Services (use your Luna username and
39
+ password)"
40
+ Content-Length:
41
+ - '401'
42
+ Content-Type:
43
+ - text/html; charset=iso-8859-1
44
+ Expires:
45
+ - Tue, 20 May 2014 16:47:14 GMT
46
+ Cache-Control:
47
+ - max-age=0, no-cache, no-store
48
+ Pragma:
49
+ - no-cache
50
+ Date:
51
+ - Tue, 20 May 2014 16:47:14 GMT
52
+ Connection:
53
+ - close
54
+ X-Frame-Options:
55
+ - SAMEORIGIN
56
+ body:
57
+ encoding: UTF-8
58
+ string: |
59
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
60
+ <html><head>
61
+ <title>401 Authorization Required</title>
62
+ </head><body>
63
+ <h1>Authorization Required</h1>
64
+ <p>This server could not verify that you
65
+ are authorized to access the document
66
+ requested. Either you supplied the wrong
67
+ credentials (e.g., bad password), or your
68
+ browser doesn't understand how to supply
69
+ the credentials required.</p>
70
+ </body></html>
71
+ http_version:
72
+ recorded_at: Tue, 20 May 2014 16:47:14 GMT
73
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://USERNAME:PASSWORD@control.akamai.com/webservices/services/PublishECCU
6
+ body:
7
+ encoding: UTF-8
8
+ string: |-
9
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd" xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:upload><filename xsi:type="xsd:string">./publish.xml</filename><contents xsi:type="xsd:base64Binary">PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxlY2N1PgogIDxtYXRjaDpyZWN1cnNp
10
+ dmUtZGlycyB2YWx1ZT0iZm9vIiA+CiAgICA8bWF0Y2g6cmVjdXJzaXZlLWRp
11
+ cnMgdmFsdWU9ImJhciIgPgogICAgICA8bWF0Y2g6cmVjdXJzaXZlLWRpcnMg
12
+ dmFsdWU9ImJhei5qcGciID4KICAgICAgICA8cmV2YWxpZGF0ZT5ub3c8L3Jl
13
+ dmFsaWRhdGU+CiAgICAgIDwvbWF0Y2g6cmVjdXJzaXZlLWRpcnM+CiAgICA8
14
+ L21hdGNoOnJlY3Vyc2l2ZS1kaXJzPgogIDwvbWF0Y2g6cmVjdXJzaXZlLWRp
15
+ cnM+CjwvZWNjdT4=
16
+ </contents><notes xsi:type="xsd:string">ECCU Request using AkamaiApi gem</notes><versionString xsi:type="xsd:string"></versionString><propertyName xsi:type="xsd:string">john.smith.com</propertyName><propertyType xsi:type="xsd:string">hostheader</propertyType><propertyNameExactMatch xsi:type="xsd:boolean">true</propertyNameExactMatch></akapubeccudt:upload></env:Body></env:Envelope>
17
+ headers:
18
+ Soapaction:
19
+ - '"upload"'
20
+ Content-Type:
21
+ - text/xml;charset=UTF-8
22
+ Content-Length:
23
+ - '1269'
24
+ Accept-Encoding:
25
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
26
+ Accept:
27
+ - '*/*'
28
+ User-Agent:
29
+ - Ruby
30
+ response:
31
+ status:
32
+ code: 500
33
+ message: Internal Server Error
34
+ headers:
35
+ Server:
36
+ - Apache
37
+ Content-Type:
38
+ - text/xml;charset=utf-8
39
+ Expires:
40
+ - Tue, 20 May 2014 16:47:29 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Tue, 20 May 2014 16:47:29 GMT
47
+ Connection:
48
+ - close
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ body:
52
+ encoding: UTF-8
53
+ string: '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
54
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.generalException</faultcode><faultstring>ECCU
55
+ validation failed: You are not authorized to specify this digital property</faultstring><detail><ns1:exceptionName
56
+ xmlns:ns1="http://xml.apache.org/axis/">com.akamai.aws.util.AWSFault</ns1:exceptionName><ns2:hostname
57
+ xmlns:ns2="http://xml.apache.org/axis/">ext-tomapp1.extranet.akamai.com</ns2:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>'
58
+ http_version:
59
+ recorded_at: Tue, 20 May 2014 16:47:29 GMT
60
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,126 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://USERNAME:PASSWORD@control.akamai.com/webservices/services/PublishECCU
6
+ body:
7
+ encoding: UTF-8
8
+ string: |-
9
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd" xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:upload><filename xsi:type="xsd:string">./publish.xml</filename><contents xsi:type="xsd:base64Binary">PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxlY2N1PgogIDxtYXRjaDpicm9pa2Vu
10
+ LWRpcnMgdmFsdWU9ImZvbyIgPgogICAgPG1hdGNoOnJlY3Vyc2l2ZS1kaXJz
11
+ IHZhbHVlPSJiYXIiID4KICAgICAgPG1hdGNoOnJlY3Vyc2l2ZS1kaXJzIHZh
12
+ bHVlPSJiYXouanBnIiA+CiAgICAgICAgPHJldmFsaWRhdGU+bm93PC9yZXZh
13
+ bGlkYXRlPgogICAgICA8L21hdGNoOnJlY3Vyc2l2ZS1kaXJzPgogICAgPC9t
14
+ YXRjaDpyZWN1cnNpdmUtZGlycz4KICA8L21hdGNoOnJlY3Vyc2l2ZS1kaXJz
15
+ Pgo8L2VjY3U+
16
+ </contents><notes xsi:type="xsd:string">ECCU Request using AkamaiApi gem</notes><versionString xsi:type="xsd:string"></versionString><propertyName xsi:type="xsd:string">foo.com</propertyName><propertyType xsi:type="xsd:string">hostheader</propertyType><propertyNameExactMatch xsi:type="xsd:boolean">true</propertyNameExactMatch></akapubeccudt:upload></env:Body></env:Envelope>
17
+ headers:
18
+ Soapaction:
19
+ - '"upload"'
20
+ Content-Type:
21
+ - text/xml;charset=UTF-8
22
+ Content-Length:
23
+ - '1265'
24
+ Accept-Encoding:
25
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
26
+ Accept:
27
+ - '*/*'
28
+ User-Agent:
29
+ - Ruby
30
+ response:
31
+ status:
32
+ code: 200
33
+ message: OK
34
+ headers:
35
+ Server:
36
+ - Apache
37
+ Content-Type:
38
+ - text/xml;charset=utf-8
39
+ Content-Length:
40
+ - '477'
41
+ Expires:
42
+ - Tue, 20 May 2014 16:49:29 GMT
43
+ Cache-Control:
44
+ - max-age=0, no-cache, no-store
45
+ Pragma:
46
+ - no-cache
47
+ Date:
48
+ - Tue, 20 May 2014 16:49:29 GMT
49
+ Connection:
50
+ - keep-alive
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ body:
54
+ encoding: UTF-8
55
+ string: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
56
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:uploadResponse
57
+ soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="https://control.akamai.com/2003/Sep/PublishECCU.xsd"><fileId
58
+ xsi:type="xsd:int">116073578</fileId></ns1:uploadResponse></soapenv:Body></soapenv:Envelope>
59
+ http_version:
60
+ recorded_at: Tue, 20 May 2014 16:49:29 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://USERNAME:PASSWORD@control.akamai.com/webservices/services/PublishECCU
64
+ body:
65
+ encoding: UTF-8
66
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
67
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd"
68
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd"
69
+ xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:getInfo><fileId
70
+ xsi:type="xsd:int">116073578</fileId><retrieveContents xsi:type="xsd:boolean">true</retrieveContents></akapubeccudt:getInfo></env:Body></env:Envelope>
71
+ headers:
72
+ Soapaction:
73
+ - '"getInfo"'
74
+ Content-Type:
75
+ - text/xml;charset=UTF-8
76
+ Content-Length:
77
+ - '568'
78
+ Accept-Encoding:
79
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
+ Accept:
81
+ - '*/*'
82
+ User-Agent:
83
+ - Ruby
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: OK
88
+ headers:
89
+ Server:
90
+ - Apache
91
+ Content-Type:
92
+ - text/xml;charset=utf-8
93
+ Content-Length:
94
+ - '1964'
95
+ Expires:
96
+ - Tue, 20 May 2014 16:49:30 GMT
97
+ Cache-Control:
98
+ - max-age=0, no-cache, no-store
99
+ Pragma:
100
+ - no-cache
101
+ Date:
102
+ - Tue, 20 May 2014 16:49:30 GMT
103
+ Connection:
104
+ - keep-alive
105
+ X-Frame-Options:
106
+ - SAMEORIGIN
107
+ body:
108
+ encoding: UTF-8
109
+ string: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
110
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getInfoResponse
111
+ soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="https://control.akamai.com/2003/Sep/PublishECCU.xsd"><EccuInfo
112
+ xsi:type="ns2:EccuInfo" xmlns:ns2="https://control.akamai.com/Publish.xsd"><contents
113
+ xsi:type="xsd:base64Binary">PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxlY2N1PgogIDxtYXRjaDpicm9pa2VuLWRpcnMgdmFsdWU9ImZvbyIgPgogICAgPG1hdGNoOnJlY3Vyc2l2ZS1kaXJzIHZhbHVlPSJiYXIiID4KICAgICAgPG1hdGNoOnJlY3Vyc2l2ZS1kaXJzIHZhbHVlPSJiYXouanBnIiA+CiAgICAgICAgPHJldmFsaWRhdGU+bm93PC9yZXZhbGlkYXRlPgogICAgICA8L21hdGNoOnJlY3Vyc2l2ZS1kaXJzPgogICAgPC9tYXRjaDpyZWN1cnNpdmUtZGlycz4KICA8L21hdGNoOnJlY3Vyc2l2ZS1kaXJzPgo8L2VjY3U+</contents><extendedStatusMessage
114
+ xsi:type="xsd:string" xsi:nil="true"/><fileId xsi:type="xsd:int">116073578</fileId><fileSize
115
+ xsi:type="xsd:int">279</fileSize><filename xsi:type="xsd:string">./publish.xml</filename><md5Digest
116
+ xsi:type="xsd:string">4a8dc79ed648407943bf3f1b315c32b3</md5Digest><notes xsi:type="xsd:string">ECCU
117
+ Request using AkamaiApi gem</notes><propertyName xsi:type="xsd:string">foo.com</propertyName><propertyNameExactMatch
118
+ xsi:type="xsd:boolean">true</propertyNameExactMatch><propertyType xsi:type="xsd:string">hostheader</propertyType><statusChangeEmail
119
+ xsi:type="xsd:string" xsi:nil="true"/><statusCode xsi:type="xsd:int">1000</statusCode><statusMessage
120
+ xsi:type="xsd:string">File uploaded and awaiting validation</statusMessage><statusUpdateDate
121
+ xsi:type="xsd:dateTime">2014-05-20T16:49:29.026Z</statusUpdateDate><uploadDate
122
+ xsi:type="xsd:dateTime">2014-05-20T16:49:29.026Z</uploadDate><uploadedBy xsi:type="xsd:string">test1</uploadedBy><versionString
123
+ xsi:type="xsd:string" xsi:nil="true"/></EccuInfo></ns1:getInfoResponse></soapenv:Body></soapenv:Envelope>
124
+ http_version:
125
+ recorded_at: Tue, 20 May 2014 16:49:30 GMT
126
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://foo:bar@control.akamai.com/webservices/services/PublishECCU
6
+ body:
7
+ encoding: UTF-8
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akapubeccudt="https://control.akamai.com/2003/Sep/PublishECCU.xsd"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="https://control.akamai.com/AWS.xsd"
11
+ xmlns:ins1="https://control.akamai.com/Publish.xsd"><env:Body><akapubeccudt:getIds></akapubeccudt:getIds></env:Body></env:Envelope>
12
+ headers:
13
+ Soapaction:
14
+ - '"getIds"'
15
+ Content-Type:
16
+ - text/xml;charset=UTF-8
17
+ Content-Length:
18
+ - '457'
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - '*/*'
23
+ User-Agent:
24
+ - Ruby
25
+ response:
26
+ status:
27
+ code: 401
28
+ message: Unauthorized
29
+ headers:
30
+ Server:
31
+ - Apache
32
+ Www-Authenticate:
33
+ - Basic realm="Luna Control Center Web Services (use your Luna username and
34
+ password)"
35
+ Content-Length:
36
+ - '401'
37
+ Content-Type:
38
+ - text/html; charset=iso-8859-1
39
+ Expires:
40
+ - Tue, 20 May 2014 15:38:58 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Tue, 20 May 2014 15:38:58 GMT
47
+ Connection:
48
+ - close
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ body:
52
+ encoding: UTF-8
53
+ string: |
54
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
55
+ <html><head>
56
+ <title>401 Authorization Required</title>
57
+ </head><body>
58
+ <h1>Authorization Required</h1>
59
+ <p>This server could not verify that you
60
+ are authorized to access the document
61
+ requested. Either you supplied the wrong
62
+ credentials (e.g., bad password), or your
63
+ browser doesn't understand how to supply
64
+ the credentials required.</p>
65
+ </body></html>
66
+ http_version:
67
+ recorded_at: Tue, 20 May 2014 15:38:58 GMT
68
+ recorded_with: VCR 2.9.0