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.
- checksums.yaml +4 -4
- data/Guardfile +5 -15
- data/README.md +106 -36
- data/Thorfile +5 -0
- data/akamai_api.gemspec +6 -3
- data/bin/akamai_api +1 -2
- data/cassettes/akamai_api_ccu_arl_invalidate/invalid_credentials.yml +37 -0
- data/cassettes/akamai_api_ccu_arl_invalidate/invalid_item.yml +36 -0
- data/cassettes/akamai_api_ccu_arl_invalidate/multiple_items.yml +38 -0
- data/cassettes/akamai_api_ccu_arl_invalidate/single_item.yml +38 -0
- data/cassettes/akamai_api_ccu_arl_remove/invalid_credentials.yml +37 -0
- data/cassettes/akamai_api_ccu_arl_remove/invalid_item.yml +36 -0
- data/cassettes/akamai_api_ccu_arl_remove/multiple_items.yml +38 -0
- data/cassettes/akamai_api_ccu_arl_remove/single_item.yml +38 -0
- data/cassettes/akamai_api_ccu_cpcode_invalidate/invalid_credentials.yml +37 -0
- data/cassettes/akamai_api_ccu_cpcode_invalidate/invalid_item.yml +36 -0
- data/cassettes/akamai_api_ccu_cpcode_invalidate/multiple_items.yml +38 -0
- data/cassettes/akamai_api_ccu_cpcode_invalidate/single_item.yml +38 -0
- data/cassettes/akamai_api_ccu_cpcode_remove/invalid_credentials.yml +37 -0
- data/cassettes/akamai_api_ccu_cpcode_remove/invalid_item.yml +36 -0
- data/cassettes/akamai_api_ccu_cpcode_remove/multiple_items.yml +38 -0
- data/cassettes/akamai_api_ccu_cpcode_remove/single_item.yml +38 -0
- data/cassettes/akamai_api_ccu_purge_status/completed_request.yml +35 -0
- data/cassettes/akamai_api_ccu_purge_status/enqueued_request.yml +35 -0
- data/cassettes/akamai_api_ccu_purge_status/invalid_credentials.yml +35 -0
- data/cassettes/akamai_api_ccu_purge_status/not_found_request.yml +37 -0
- data/cassettes/akamai_api_ccu_status/invalid_credentials.yml +35 -0
- data/cassettes/akamai_api_ccu_status/valid_credentials.yml +34 -0
- data/cassettes/akamai_api_eccu_last_request/invalid_credentials.yml +68 -0
- data/cassettes/akamai_api_eccu_last_request/valid_credentials.yml +140 -0
- data/cassettes/akamai_api_eccu_publish/invalid_credentials.yml +73 -0
- data/cassettes/akamai_api_eccu_publish/invalid_domain.yml +60 -0
- data/cassettes/akamai_api_eccu_publish/successful.yml +126 -0
- data/cassettes/akamai_api_eccu_requests/invalid_credentials.yml +68 -0
- data/cassettes/akamai_api_eccu_requests/valid_credentials.yml +325 -0
- data/features/ccu_arl_invalidate.feature +83 -0
- data/features/ccu_arl_remove.feature +83 -0
- data/features/ccu_cpcode_invalidate.feature +83 -0
- data/features/ccu_cpcode_remove.feature +83 -0
- data/features/ccu_purge_status.feature +83 -0
- data/features/ccu_status.feature +31 -0
- data/features/eccu_last_request.feature +47 -0
- data/features/eccu_publish.feature +98 -0
- data/features/eccu_requests.feature +43 -0
- data/features/step_definitions/contain_multiple_times_steps.rb +3 -0
- data/features/support/env.rb +58 -0
- data/lib/akamai_api/ccu/purge/request.rb +76 -0
- data/lib/akamai_api/ccu/purge/response.rb +31 -0
- data/lib/akamai_api/ccu/purge.rb +5 -0
- data/lib/akamai_api/ccu/purge_status/not_found_response.rb +9 -0
- data/lib/akamai_api/ccu/purge_status/request.rb +32 -0
- data/lib/akamai_api/ccu/purge_status/response.rb +19 -0
- data/lib/akamai_api/ccu/purge_status/successful_response.rb +25 -0
- data/lib/akamai_api/ccu/purge_status.rb +10 -0
- data/lib/akamai_api/ccu/response.rb +18 -0
- data/lib/akamai_api/ccu/status/request.rb +23 -0
- data/lib/akamai_api/ccu/status/response.rb +11 -0
- data/lib/akamai_api/ccu/status.rb +2 -0
- data/lib/akamai_api/ccu.rb +14 -50
- data/lib/akamai_api/cli/app.rb +2 -2
- data/lib/akamai_api/cli/ccu/arl.rb +36 -0
- data/lib/akamai_api/cli/ccu/base.rb +18 -0
- data/lib/akamai_api/cli/ccu/cp_code.rb +39 -0
- data/lib/akamai_api/cli/ccu/purge_renderer.rb +49 -0
- data/lib/akamai_api/cli/ccu/status_renderer.rb +69 -0
- data/lib/akamai_api/cli/ccu.rb +5 -10
- data/lib/akamai_api/cli/eccu/entry_renderer.rb +63 -0
- data/lib/akamai_api/cli/eccu.rb +16 -14
- data/lib/akamai_api/cli.rb +7 -2
- data/lib/akamai_api/eccu_request.rb +19 -1
- data/lib/akamai_api/version.rb +1 -1
- data/lib/akamai_api.rb +3 -1
- data/spec/features/ccu/purge_request_spec.rb +94 -0
- data/spec/features/ccu/purge_status_request_spec.rb +31 -0
- data/spec/features/ccu/status_request_spec.rb +17 -0
- data/spec/fixtures/ccu/successful_purge.json +1 -0
- data/spec/lib/akamai_api/ccu/purge/request_spec.rb +124 -0
- data/spec/lib/akamai_api/ccu/purge/response_spec.rb +54 -0
- data/spec/lib/akamai_api/ccu/purge_status/not_found_response_spec.rb +41 -0
- data/spec/lib/akamai_api/ccu/purge_status/request_spec.rb +64 -0
- data/spec/lib/akamai_api/ccu/purge_status/successful_response_spec.rb +86 -0
- data/spec/lib/akamai_api/ccu/response_spec.rb +15 -0
- data/spec/lib/akamai_api/ccu/status/request_spec.rb +22 -0
- data/spec/lib/akamai_api/ccu/status/response_spec.rb +29 -0
- data/spec/lib/akamai_api/ccu_spec.rb +49 -61
- data/spec/lib/akamai_api/cli/ccu/status_renderer_spec.rb +36 -0
- data/spec/lib/akamai_api/eccu_request_spec.rb +5 -5
- data/spec/spec_helper.rb +21 -1
- metadata +163 -26
- data/lib/akamai_api/ccu_response.rb +0 -51
- data/lib/akamai_api/cli/ccu_arl.rb +0 -40
- data/lib/akamai_api/cli/ccu_cp_code.rb +0 -48
- data/lib/akamai_api/cli/template.rb +0 -36
- data/lib/akamai_api/cp_code.rb +0 -33
- data/spec/fixtures/ccu/successful_purge.xml +0 -15
- data/spec/fixtures/cp_code/collection.xml +0 -21
- data/spec/fixtures/cp_code/single.xml +0 -16
- data/spec/lib/akamai_api/cp_code_spec.rb +0 -47
- data/wsdls/cpcode.wsdl +0 -2765
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"invalidate","objects":["12345"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 403
|
15
|
+
message: Forbidden
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Thu, 15 May 2014 06:51:09 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '209'
|
23
|
+
Allow:
|
24
|
+
- GET, HEAD, POST
|
25
|
+
Vary:
|
26
|
+
- Authorization
|
27
|
+
Content-Type:
|
28
|
+
- application/api-problem+json
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: '{"supportId": "12345678901234567890-123456789", "title": "unauthorized
|
32
|
+
cpcode", "httpStatus": 403, "detail": "12345", "describedBy":
|
33
|
+
"https://api.ccu.akamai.com/ccu/v2/errors/unauthorized-cpcode"}'
|
34
|
+
http_version:
|
35
|
+
recorded_at: Thu, 15 May 2014 06:51:12 GMT
|
36
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"invalidate","objects":["12345","12346"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: Created
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Tue, 13 May 2014 15:37:48 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '268'
|
23
|
+
Content-Location:
|
24
|
+
- /ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
25
|
+
Allow:
|
26
|
+
- GET, HEAD, POST
|
27
|
+
Vary:
|
28
|
+
- Authorization
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"estimatedSeconds": 420, "progressUri": "/ccu/v2/purges/12345678-1234-5678-1234-123456789012",
|
34
|
+
"purgeId": "12345678-1234-1234-1234-123456789012", "supportId": "12345678901234567890-123456789",
|
35
|
+
"httpStatus": 201, "detail": "Request accepted.", "pingAfterSeconds": 420}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 13 May 2014 15:37:49 GMT
|
38
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"invalidate","objects":["http://www.foo.com/bar.txt"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: Created
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Tue, 13 May 2014 15:37:48 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '268'
|
23
|
+
Content-Location:
|
24
|
+
- /ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
25
|
+
Allow:
|
26
|
+
- GET, HEAD, POST
|
27
|
+
Vary:
|
28
|
+
- Authorization
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"estimatedSeconds": 420, "progressUri": "/ccu/v2/purges/12345678-1234-5678-1234-123456789012",
|
34
|
+
"purgeId": "12345678-1234-1234-1234-123456789012", "supportId": "12345678901234567890-123456789",
|
35
|
+
"httpStatus": 201, "detail": "Request accepted.", "pingAfterSeconds": 420}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 13 May 2014 15:37:49 GMT
|
38
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://foo:bar@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"remove","objects":["12345"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 401
|
15
|
+
message: Unauthorized
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Tue, 13 May 2014 14:31:21 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '146'
|
23
|
+
Allow:
|
24
|
+
- GET, HEAD, POST
|
25
|
+
Www-Authenticate:
|
26
|
+
- Basic realm="Luna Control Center"
|
27
|
+
Vary:
|
28
|
+
- Authorization
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=utf-8
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: <html><head><title>401 Unauthorized</title></head><body><p>401 Unauthorized</p><p>You
|
34
|
+
are not authorized to access that resource</p></body></html>
|
35
|
+
http_version:
|
36
|
+
recorded_at: Tue, 13 May 2014 14:31:21 GMT
|
37
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"remove","objects":["12345"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 403
|
15
|
+
message: Forbidden
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Thu, 15 May 2014 06:51:09 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '209'
|
23
|
+
Allow:
|
24
|
+
- GET, HEAD, POST
|
25
|
+
Vary:
|
26
|
+
- Authorization
|
27
|
+
Content-Type:
|
28
|
+
- application/api-problem+json
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: '{"supportId": "12345678901234567890-123456789", "title": "unauthorized
|
32
|
+
cpcode", "httpStatus": 403, "detail": "12345", "describedBy":
|
33
|
+
"https://api.ccu.akamai.com/ccu/v2/errors/unauthorized-cpcode"}'
|
34
|
+
http_version:
|
35
|
+
recorded_at: Thu, 15 May 2014 06:51:12 GMT
|
36
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"remove","objects":["12345","12346"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: Created
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Tue, 13 May 2014 15:37:48 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '268'
|
23
|
+
Content-Location:
|
24
|
+
- /ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
25
|
+
Allow:
|
26
|
+
- GET, HEAD, POST
|
27
|
+
Vary:
|
28
|
+
- Authorization
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"estimatedSeconds": 420, "progressUri": "/ccu/v2/purges/12345678-1234-5678-1234-123456789012",
|
34
|
+
"purgeId": "12345678-1234-1234-1234-123456789012", "supportId": "12345678901234567890-123456789",
|
35
|
+
"httpStatus": 201, "detail": "Request accepted.", "pingAfterSeconds": 420}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 13 May 2014 15:37:49 GMT
|
38
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"cpcode","action":"remove","objects":["http://www.foo.com/bar.txt"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: Created
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Tue, 13 May 2014 15:37:48 GMT
|
19
|
+
Server:
|
20
|
+
- Apache
|
21
|
+
Content-Length:
|
22
|
+
- '268'
|
23
|
+
Content-Location:
|
24
|
+
- /ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
25
|
+
Allow:
|
26
|
+
- GET, HEAD, POST
|
27
|
+
Vary:
|
28
|
+
- Authorization
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"estimatedSeconds": 420, "progressUri": "/ccu/v2/purges/12345678-1234-5678-1234-123456789012",
|
34
|
+
"purgeId": "12345678-1234-1234-1234-123456789012", "supportId": "12345678901234567890-123456789",
|
35
|
+
"httpStatus": 201, "detail": "Request accepted.", "pingAfterSeconds": 420}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 13 May 2014 15:37:49 GMT
|
38
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Tue, 20 May 2014 12:49:41 GMT
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
Content-Length:
|
20
|
+
- '309'
|
21
|
+
Allow:
|
22
|
+
- GET, HEAD
|
23
|
+
Vary:
|
24
|
+
- Authorization
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
body:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: '{"originalEstimatedSeconds": 420, "originalQueueLength": 0, "supportId":
|
30
|
+
"12345678901234567890-123456789", "httpStatus": 200, "purgeId": "12345678-1234-5678-1234-123456789012",
|
31
|
+
"completionTime": "2014-05-20T08:22:20Z", "submittedBy": "test1", "purgeStatus":
|
32
|
+
"Done", "submissionTime": "2014-05-20T08:19:21Z"}'
|
33
|
+
http_version:
|
34
|
+
recorded_at: Tue, 20 May 2014 12:49:41 GMT
|
35
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Tue, 20 May 2014 12:49:41 GMT
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
Content-Length:
|
20
|
+
- '309'
|
21
|
+
Allow:
|
22
|
+
- GET, HEAD
|
23
|
+
Vary:
|
24
|
+
- Authorization
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
body:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: '{"originalEstimatedSeconds": 420, "originalQueueLength": 0, "supportId":
|
30
|
+
"12345678901234567890-123456789", "httpStatus": 200, "purgeId": "12345678-1234-5678-1234-123456789012",
|
31
|
+
"completionTime": null, "submittedBy": "test1", "purgeStatus":
|
32
|
+
"In-Progress", "submissionTime": "2014-05-20T08:19:21Z", "pingAfterSeconds": 60}'
|
33
|
+
http_version:
|
34
|
+
recorded_at: Tue, 20 May 2014 12:49:41 GMT
|
35
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://foo:bar@api.ccu.akamai.com/ccu/v2/purges/12345678-1234-5678-1234-123456789012
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 401
|
13
|
+
message: Unauthorized
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Tue, 20 May 2014 12:49:40 GMT
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
Content-Length:
|
20
|
+
- '146'
|
21
|
+
Allow:
|
22
|
+
- GET, HEAD
|
23
|
+
Www-Authenticate:
|
24
|
+
- Basic realm="Luna Control Center"
|
25
|
+
Vary:
|
26
|
+
- Authorization
|
27
|
+
Content-Type:
|
28
|
+
- text/html;charset=utf-8
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: <html><head><title>401 Unauthorized</title></head><body><p>401 Unauthorized</p><p>You
|
32
|
+
are not authorized to access that resource</p></body></html>
|
33
|
+
http_version:
|
34
|
+
recorded_at: Tue, 20 May 2014 12:49:40 GMT
|
35
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/purges/foobarbaz
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Tue, 20 May 2014 13:28:28 GMT
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
Content-Length:
|
20
|
+
- '375'
|
21
|
+
Allow:
|
22
|
+
- GET, HEAD
|
23
|
+
Vary:
|
24
|
+
- Authorization
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
body:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: '{"purgeId": "foobarbaz", "progressUri": "/ccu/v2/purges/foobarbaz",
|
30
|
+
"supportId": "12345678901234567890-123456789", "httpStatus": 200, "detail":
|
31
|
+
"Please note that it can take up to a minute for the status of a recently
|
32
|
+
submitted request to become visible.", "completionTime": null, "submittedBy":
|
33
|
+
null, "purgeStatus": "Unknown", "submissionTime": null, "pingAfterSeconds":
|
34
|
+
60}'
|
35
|
+
http_version:
|
36
|
+
recorded_at: Tue, 20 May 2014 13:28:28 GMT
|
37
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://foo:bar@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 401
|
13
|
+
message: Unauthorized
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Tue, 20 May 2014 13:15:50 GMT
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
Content-Length:
|
20
|
+
- '146'
|
21
|
+
Allow:
|
22
|
+
- GET, HEAD, POST
|
23
|
+
Www-Authenticate:
|
24
|
+
- Basic realm="Luna Control Center"
|
25
|
+
Vary:
|
26
|
+
- Authorization
|
27
|
+
Content-Type:
|
28
|
+
- text/html;charset=utf-8
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: <html><head><title>401 Unauthorized</title></head><body><p>401 Unauthorized</p><p>You
|
32
|
+
are not authorized to access that resource</p></body></html>
|
33
|
+
http_version:
|
34
|
+
recorded_at: Tue, 20 May 2014 13:15:51 GMT
|
35
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://USERNAME:PASSWORD@api.ccu.akamai.com/ccu/v2/queues/default/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Tue, 20 May 2014 13:15:51 GMT
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
Content-Length:
|
20
|
+
- '161'
|
21
|
+
Allow:
|
22
|
+
- GET, HEAD, POST
|
23
|
+
Vary:
|
24
|
+
- Authorization
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
body:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: '{"supportId": "12345678901234567890-123456789", "httpStatus": 200,
|
30
|
+
"detail": "The queue may take a minute to reflect new or removed requests.",
|
31
|
+
"queueLength": 0}'
|
32
|
+
http_version:
|
33
|
+
recorded_at: Tue, 20 May 2014 13:15:52 GMT
|
34
|
+
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:20:36 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:20:36 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:20:36 GMT
|
68
|
+
recorded_with: VCR 2.9.0
|