code42 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +203 -0
  5. data/README.md +182 -0
  6. data/Rakefile +1 -0
  7. data/code42.gemspec +26 -0
  8. data/examples/Gemfile +6 -0
  9. data/examples/computers.rb +88 -0
  10. data/examples/diagnostic.rb +82 -0
  11. data/examples/orgs.rb +88 -0
  12. data/examples/parser.rb +51 -0
  13. data/examples/parser_test.rb +64 -0
  14. data/examples/users.rb +88 -0
  15. data/lib/code42.rb +46 -0
  16. data/lib/code42/attribute.rb +13 -0
  17. data/lib/code42/attribute_serializer.rb +129 -0
  18. data/lib/code42/client.rb +301 -0
  19. data/lib/code42/computer.rb +15 -0
  20. data/lib/code42/connection.rb +124 -0
  21. data/lib/code42/diagnostic.rb +8 -0
  22. data/lib/code42/error.rb +21 -0
  23. data/lib/code42/org.rb +38 -0
  24. data/lib/code42/ping.rb +14 -0
  25. data/lib/code42/resource.rb +58 -0
  26. data/lib/code42/role.rb +26 -0
  27. data/lib/code42/role_collection.rb +35 -0
  28. data/lib/code42/settings.rb +42 -0
  29. data/lib/code42/token.rb +31 -0
  30. data/lib/code42/token_validation.rb +10 -0
  31. data/lib/code42/user.rb +40 -0
  32. data/lib/code42/version.rb +3 -0
  33. data/spec/cassettes/Code42_Client/_create_org/returns_created_org.yml +47 -0
  34. data/spec/cassettes/Code42_Client/_create_user/returns_created_user.yml +44 -0
  35. data/spec/cassettes/Code42_Client/_create_user/when_sending_an_invalid_email/raises_an_exception.yml +37 -0
  36. data/spec/cassettes/Code42_Client/_find_org_by_name/returns_the_org_with_the_specified_name.yml +101 -0
  37. data/spec/cassettes/Code42_Client/_get_token/returns_valid_tokens.yml +38 -0
  38. data/spec/cassettes/Code42_Client/_get_token/when_providing_invalid_credentials/should_raise_an_exception.yml +37 -0
  39. data/spec/cassettes/Code42_Client/_org/when_ID_is_not_passed/returns_my_org.yml +54 -0
  40. data/spec/cassettes/Code42_Client/_org/when_ID_is_passed_in/returns_a_specific_org.yml +54 -0
  41. data/spec/cassettes/Code42_Client/_ping/returns_a_ping.yml +48 -0
  42. data/spec/cassettes/Code42_Client/_user/when_ID_is_not_passed/returns_my_user.yml +53 -0
  43. data/spec/cassettes/Code42_Client/_user/when_ID_is_passed_in/returns_a_specific_user.yml +53 -0
  44. data/spec/cassettes/Code42_Client/_user_roles/returns_an_enumerable.yml +50 -0
  45. data/spec/cassettes/Code42_Client/_validate_token/returns_a_valid_response.yml +83 -0
  46. data/spec/cassettes/Crashplan_Client/_create_org/returns_created_org.yml +47 -0
  47. data/spec/cassettes/Crashplan_Client/_create_user/returns_created_user.yml +44 -0
  48. data/spec/cassettes/Crashplan_Client/_create_user/when_sending_an_invalid_email/raises_an_exception.yml +37 -0
  49. data/spec/cassettes/Crashplan_Client/_find_org_by_name/returns_the_org_with_the_specified_name.yml +55 -0
  50. data/spec/cassettes/Crashplan_Client/_get_token/returns_valid_tokens.yml +38 -0
  51. data/spec/cassettes/Crashplan_Client/_get_token/when_providing_invalid_credentials/should_raise_an_exception.yml +37 -0
  52. data/spec/cassettes/Crashplan_Client/_org/when_ID_is_not_passed/returns_my_org.yml +54 -0
  53. data/spec/cassettes/Crashplan_Client/_org/when_ID_is_passed_in/returns_a_specific_org.yml +54 -0
  54. data/spec/cassettes/Crashplan_Client/_ping/returns_a_ping.yml +48 -0
  55. data/spec/cassettes/Crashplan_Client/_user/when_ID_is_not_passed/returns_my_user.yml +99 -0
  56. data/spec/cassettes/Crashplan_Client/_user/when_ID_is_passed_in/returns_a_specific_user.yml +53 -0
  57. data/spec/cassettes/Crashplan_Client/_user_roles/returns_an_enumerable.yml +50 -0
  58. data/spec/cassettes/Crashplan_Client/_validate_token/returns_a_valid_response.yml +128 -0
  59. data/spec/crashplan/client_spec.rb +135 -0
  60. data/spec/crashplan/connection_spec.rb +45 -0
  61. data/spec/crashplan/org_spec.rb +63 -0
  62. data/spec/crashplan/ping_spec.rb +14 -0
  63. data/spec/crashplan/resource_spec.rb +56 -0
  64. data/spec/crashplan/role_spec.rb +28 -0
  65. data/spec/crashplan/settings_spec.rb +118 -0
  66. data/spec/crashplan/token_spec.rb +33 -0
  67. data/spec/crashplan/user_spec.rb +21 -0
  68. data/spec/fixtures/auth/bad_password.json +1 -0
  69. data/spec/fixtures/authToken.json +10 -0
  70. data/spec/fixtures/org.1.json +36 -0
  71. data/spec/fixtures/org.create.json +36 -0
  72. data/spec/fixtures/org.my.json +36 -0
  73. data/spec/fixtures/ping.json +7 -0
  74. data/spec/fixtures/user.1.json +27 -0
  75. data/spec/fixtures/user.create.json +27 -0
  76. data/spec/fixtures/user.my.json +27 -0
  77. data/spec/fixtures/user_roles.json +32 -0
  78. data/spec/fixtures/validate_token.json +10 -0
  79. data/spec/spec_helper.rb +67 -0
  80. metadata +268 -0
@@ -0,0 +1,3 @@
1
+ module Code42
2
+ VERSION = "0.1.2"
3
+ end
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://admin:admin@localhost:7280/api/org
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"orgName":"IBM"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-store
23
+ Pragma:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! "{\n \"metadata\": {\n \"timestamp\": \"2013-05-06T12:05:59.055-05:00\",\n
34
+ \ \"params\": {}\n },\n \"data\": {\n \"orgId\": 86,\n \"orgUid\":
35
+ \"582357901600501463\",\n \"orgName\": \"IBM\",\n \"status\": \"Active\",\n
36
+ \ \"active\": true,\n \"blocked\": false,\n \"parentOrgId\": null,\n
37
+ \ \"type\": \"ENTERPRISE\",\n \"externalId\": \"582357901600501463\",\n
38
+ \ \"hierarchyCounts\": {},\n \"configInheritanceCounts\": {},\n \"creationDate\":
39
+ \"2013-05-06T12:05:58.710-05:00\",\n \"modificationDate\": \"2013-05-06T12:05:59.019-05:00\",\n
40
+ \ \"registrationKey\": \"WS8T-JKPH-CWK9-URKK\",\n \"reporting\": {},\n
41
+ \ \"customConfig\": false,\n \"settings\": {\n \"maxSeats\":
42
+ null,\n \"maxBytes\": null\n },\n \"settingsInherited\": {\n
43
+ \ \"maxSeats\": \"\",\n \"maxBytes\": \"\"\n },\n \"settingsSummary\":
44
+ \ {\n \"maxSeats\": \"\",\n \"maxBytes\": \"\"\n }\n }\n}"
45
+ http_version:
46
+ recorded_at: Mon, 06 May 2013 17:05:59 GMT
47
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://admin:admin@localhost:7280/api/user
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"orgId":2,"username":"testuser"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-store
23
+ Pragma:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! "{\n \"metadata\": {\n \"timestamp\": \"2013-05-06T12:05:57.453-05:00\",\n
34
+ \ \"params\": {}\n },\n \"data\": {\n \"userId\": 3,\n \"userUid\":
35
+ \"827da4bcbdf814a6\",\n \"status\": \"Active\",\n \"username\": \"testuser\",\n
36
+ \ \"email\": null,\n \"firstName\": null,\n \"lastName\": null,\n
37
+ \ \"quotaInBytes\": -1,\n \"orgId\": 2,\n \"orgUid\": \"proserverdemo\",\n
38
+ \ \"orgName\": \"PROServer Demo\",\n \"active\": true,\n \"blocked\":
39
+ false,\n \"emailPromo\": true,\n \"invited\": true,\n \"orgType\":
40
+ \"ENTERPRISE\",\n \"usernameIsAnEmail\": null,\n \"creationDate\": \"2013-05-06T12:05:57.391-05:00\",\n
41
+ \ \"modificationDate\": \"2013-05-06T12:05:57.395-05:00\"\n }\n}"
42
+ http_version:
43
+ recorded_at: Mon, 06 May 2013 17:05:57 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://admin:admin@localhost:7280/api/user
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"orgId":2,"username":"testuser","email":"testuser"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 500
19
+ message: ! '[{ "name": "EMAIL_INVALID", "description": "Email is invalid", "objects":
20
+ [] }]'
21
+ headers:
22
+ Pragma:
23
+ - no-cache
24
+ Content-Type:
25
+ - text/html;charset=ISO-8859-1
26
+ Cache-Control:
27
+ - must-revalidate,no-cache,no-store
28
+ Content-Length:
29
+ - '72'
30
+ Server:
31
+ - Jetty(7.6.3.v20120416)
32
+ body:
33
+ encoding: US-ASCII
34
+ string: ! '[{"name":"EMAIL_INVALID","description":"Email is invalid","objects":[]}]'
35
+ http_version:
36
+ recorded_at: Mon, 06 May 2013 17:05:57 GMT
37
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/org?q=Default
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: !binary |-
20
+ T0s=
21
+ headers:
22
+ !binary "Q2FjaGUtQ29udHJvbA==":
23
+ - !binary |-
24
+ bm8tc3RvcmU=
25
+ !binary "UHJhZ21h":
26
+ - !binary |-
27
+ bm8tY2FjaGU=
28
+ !binary "Q29udGVudC1UeXBl":
29
+ - !binary |-
30
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
31
+ !binary "Q29udGVudC1FbmNvZGluZw==":
32
+ - !binary |-
33
+ Z3ppcA==
34
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
35
+ - !binary |-
36
+ Y2h1bmtlZA==
37
+ !binary "U2VydmVy":
38
+ - !binary |-
39
+ SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: !binary |-
43
+ H4sIAAAAAAAAAGWNuw7CMAxF936F5blFbpARylo+gQ11sERASA3pw52i/DuO
44
+ YGP0ufdc5wYAY1C5iwp6AMhGjOkrhk0lzgbRUX/siDs6XXvniT2fD+zsZk+E
45
+ 7deYZZW4WT3jUqVLeMg+KRaLS+3g34+kMg1pf6tR+s2k9VlHbmPVmvIB1DL0
46
+ wKEAAAA=
47
+ http_version:
48
+ recorded_at: Mon, 06 May 2013 17:05:58 GMT
49
+ - request:
50
+ method: get
51
+ uri: http://admin:admin@localhost:7280/api/org?q=PROServer%20Demo
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ User-Agent:
57
+ - Faraday v0.8.7
58
+ Accept-Encoding:
59
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
60
+ Accept:
61
+ - ! '*/*'
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: !binary |-
66
+ T0s=
67
+ headers:
68
+ !binary "Q2FjaGUtQ29udHJvbA==":
69
+ - !binary |-
70
+ bm8tc3RvcmU=
71
+ !binary "UHJhZ21h":
72
+ - !binary |-
73
+ bm8tY2FjaGU=
74
+ !binary "Q29udGVudC1UeXBl":
75
+ - !binary |-
76
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
77
+ !binary "Q29udGVudC1FbmNvZGluZw==":
78
+ - !binary |-
79
+ Z3ppcA==
80
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
81
+ - !binary |-
82
+ Y2h1bmtlZA==
83
+ !binary "U2VydmVy":
84
+ - !binary |-
85
+ SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
86
+ body:
87
+ encoding: ASCII-8BIT
88
+ string: !binary |-
89
+ H4sIAAAAAAAAAKVTTU/CQBC9+yuaPVtTqqj05geJhEQJLfFgPIxlgI3d3bo7
90
+ NTak/93dBQsCetBTs2/evDdfXR4FARNIMAUClgRBsLSIxYgLNASitCCLo85p
91
+ GHXD6DzrxEnUS+KLk3P37iZRxI5XGSVoEMbSl+zNJY3GDynqd9TBLQrFGstq
92
+ HJXtWSmC4kZVkizaWaspPXdaT0HLW4GDqUXj4y1kwh3ESq2Mt5s6t23CPQg8
93
+ UFBLsW1S5czYVU78HTcRWL2TgHSFLfpSqPwVnekMCrPB7QBQ0sO6RlkVRRui
94
+ uvQl9O+z/ng0HqT9jQl+EGoJxeC3NhYcNeh8Ufs5+Sk3bTBXcsbnA7lAzQlk
95
+ jgdJGoG4krdAeGCnnaR7dtKLom87dbehpnzG87+kapxzQ9qnDrH2mcPhY9jL
96
+ 0iyM7yZxOBlll9v8Umnicr5TeGVIiRvf497MDZLLMP6etm/FlQ4fqe3Z7Cxj
97
+ FbmuCb8i60Czp7oeqd/1b/KMHRZn7EfptBICdP1vYf9tnt3PddR8ApJu5H7O
98
+ AwAA
99
+ http_version:
100
+ recorded_at: Mon, 06 May 2013 17:09:27 GMT
101
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://admin:admin@localhost:7280/api/authToken
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-store
23
+ Pragma:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! "{\n \"metadata\": {\n \"timestamp\": \"2013-05-06T12:05:58.625-05:00\",\n
34
+ \ \"params\": {}\n },\n \"data\": [\n \"1cgl9anbs064v1rkwf7n6rv8d7\",\n
35
+ \ \"0ahnn5s4gu27a0ctl9u4vbqmxy\"\n ]\n}"
36
+ http_version:
37
+ recorded_at: Mon, 06 May 2013 17:05:58 GMT
38
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://admin:badpassword@localhost:7280/api/authToken
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 401
19
+ message: ! '[{ "name": "SYSTEM", "description": "Invalid or missing credentials"
20
+ }]'
21
+ headers:
22
+ Pragma:
23
+ - no-cache
24
+ Content-Type:
25
+ - text/html;charset=ISO-8859-1
26
+ Cache-Control:
27
+ - must-revalidate,no-cache,no-store
28
+ Content-Length:
29
+ - '66'
30
+ Server:
31
+ - Jetty(7.6.3.v20120416)
32
+ body:
33
+ encoding: US-ASCII
34
+ string: ! '[{"name":"SYSTEM","description":"Invalid or missing credentials"}]'
35
+ http_version:
36
+ recorded_at: Mon, 06 May 2013 17:05:58 GMT
37
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/org/my
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: !binary |-
20
+ T0s=
21
+ headers:
22
+ !binary "Q2FjaGUtQ29udHJvbA==":
23
+ - !binary |-
24
+ bm8tc3RvcmU=
25
+ !binary "UHJhZ21h":
26
+ - !binary |-
27
+ bm8tY2FjaGU=
28
+ !binary "Q29udGVudC1UeXBl":
29
+ - !binary |-
30
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
31
+ !binary "Q29udGVudC1FbmNvZGluZw==":
32
+ - !binary |-
33
+ Z3ppcA==
34
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
35
+ - !binary |-
36
+ Y2h1bmtlZA==
37
+ !binary "U2VydmVy":
38
+ - !binary |-
39
+ SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: !binary |-
43
+ H4sIAAAAAAAAAJ2SwW7CMAyG73uKKmeKUkph9LYBh2oam4A9QFZMidYkVeJO
44
+ VIh3X9KWIUp3WdSLv9h/f9s5PXgeEYBsx5CR2PO8kyWWIRdgkInCQjKiQejT
45
+ yKeTbTCKaRRHj8NxaOMoppQMmoqCaSaMTT+dLTg7SrqqSmfJzoJg8Bt/cAfI
46
+ 0+I1WZErXjEBd9wawtLUOEX+DRfOmij2UJfQss9cpV/gtPcsN3A1CRLfWhuy
47
+ zPP2Aqui/t9ytV2u39fJZnkRhyOClixP7n0eOGim00M1V6XEpvf2KlVyz7NE
48
+ HkBzZDKFnhQNDLmSC4bQTJlO3JRH4TaI4iCIw9kwiGa3UxZqx/c87Smc+tQW
49
+ 0nhsv+kwCjrr0ZBxg7oufIHK1R0755paKI1cZjduS4NKzOu2bidtAF2yqRd9
50
+ WbWzyo4b26Hjfrvwhj5XCA2t4bmj0w6t3t1fgoT0CRLSK7gphWC6+rc/95wf
51
+ zj8FHKrJKwMAAA==
52
+ http_version:
53
+ recorded_at: Mon, 06 May 2013 17:05:58 GMT
54
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/org/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: !binary |-
20
+ T0s=
21
+ headers:
22
+ !binary "Q2FjaGUtQ29udHJvbA==":
23
+ - !binary |-
24
+ bm8tc3RvcmU=
25
+ !binary "UHJhZ21h":
26
+ - !binary |-
27
+ bm8tY2FjaGU=
28
+ !binary "Q29udGVudC1UeXBl":
29
+ - !binary |-
30
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
31
+ !binary "Q29udGVudC1FbmNvZGluZw==":
32
+ - !binary |-
33
+ Z3ppcA==
34
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
35
+ - !binary |-
36
+ Y2h1bmtlZA==
37
+ !binary "U2VydmVy":
38
+ - !binary |-
39
+ SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: !binary |-
43
+ H4sIAAAAAAAAAJ2Sz3KCMBDG730KJmdxghT/5NaqB6ZT21H7ACmumClJmLB0
44
+ ZBzfvQlgHZReynDJL/t9fLvL6cHziATkO46cMM/zTpZYhkJCgVzmFpIRDUKf
45
+ Rj4db4MRoxGLpsNwMrWIUUoGjSLnhsvClp/OFpwdJbeu2qTxzoJg8Hv+EA6Q
46
+ p8VrvCJXvOIS7rgNhGVR4wTFN1w4b07MQ1NCyz4znXyB897zrIBrSFD41sZQ
47
+ ZZa1F1jl9feWq+1y/b6ON8uLORwRjOJZfJ/zIMBwkxyquS4VNr23V4lWe5HG
48
+ 6gBGIFcJ9JQY4Ci0WnCEZsp07KY8CrdBxIKAhbNhEM26U5Z6J/Yi6RFOfGqF
49
+ lD3adzKMgqgrNJCKAk0tfIHK6Y43z7U01waFSjtpywK1nNdtdSddALriol70
50
+ ZdUuKj9ubIeO++3CG/pcITS0hucbn3Zo9e7+MiSkz5CQXsNNKSU31b/zud/5
51
+ 4fwDfG0bySsDAAA=
52
+ http_version:
53
+ recorded_at: Mon, 06 May 2013 17:05:58 GMT
54
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/ping
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - ! '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: !binary |-
20
+ T0s=
21
+ headers:
22
+ !binary "Q2FjaGUtQ29udHJvbA==":
23
+ - !binary |-
24
+ bm8tc3RvcmU=
25
+ !binary "UHJhZ21h":
26
+ - !binary |-
27
+ bm8tY2FjaGU=
28
+ !binary "Q29udGVudC1UeXBl":
29
+ - !binary |-
30
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
31
+ !binary "Q29udGVudC1FbmNvZGluZw==":
32
+ - !binary |-
33
+ Z3ppcA==
34
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
35
+ - !binary |-
36
+ Y2h1bmtlZA==
37
+ !binary "U2VydmVy":
38
+ - !binary |-
39
+ SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: !binary |-
43
+ H4sIAAAAAAAAAC3MPQ6AIAwG0N1TNJ3FFA1qOIcXaJTBgYRAnQh3t0TX9/3U
44
+ AQBjEL5YGD0AVBU1uWMowjEp4kx2MeQMrYedPTnvtmlfSckT4fgtEmeOReu1
45
+ KbSu+L9WLM95htJTyU9oQ3sBjNQqq3kAAAA=
46
+ http_version:
47
+ recorded_at: Mon, 06 May 2013 17:05:57 GMT
48
+ recorded_with: VCR 2.4.0