code42 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +82 -64
  3. data/Rakefile +5 -0
  4. data/code42.gemspec +6 -6
  5. data/lib/code42/api/computer.rb +22 -0
  6. data/lib/code42/api/org.rb +60 -0
  7. data/lib/code42/api/role.rb +24 -0
  8. data/lib/code42/api/token.rb +32 -0
  9. data/lib/code42/api/user.rb +72 -0
  10. data/lib/code42/client.rb +7 -178
  11. data/lib/code42/user.rb +8 -0
  12. data/lib/code42/version.rb +1 -1
  13. data/spec/cassettes/Code42_Client/_create_org/returns_created_org.yml +8 -8
  14. data/spec/cassettes/Code42_Client/_create_user/returns_created_user.yml +6 -6
  15. data/spec/cassettes/Code42_Client/_create_user/when_sending_an_invalid_email/raises_an_exception.yml +2 -2
  16. data/spec/cassettes/Code42_Client/_find_org_by_name/returns_the_org_with_the_specified_name.yml +12 -58
  17. data/spec/cassettes/Code42_Client/_get_token/returns_valid_tokens.yml +5 -5
  18. data/spec/cassettes/Code42_Client/_get_token/when_providing_invalid_credentials/should_raise_an_exception.yml +2 -2
  19. data/spec/cassettes/Code42_Client/_org/when_ID_is_not_passed/returns_my_org.yml +11 -11
  20. data/spec/cassettes/Code42_Client/_org/when_ID_is_passed_in/returns_a_specific_org.yml +11 -11
  21. data/spec/cassettes/Code42_Client/_ping/returns_a_ping.yml +5 -5
  22. data/spec/cassettes/Code42_Client/_user/when_ID_is_not_passed/returns_my_user.yml +10 -10
  23. data/spec/cassettes/Code42_Client/_user/when_ID_is_passed_in/returns_a_specific_user.yml +10 -10
  24. data/spec/cassettes/Code42_Client/_user/when_blocked/returns_the_blocked_status.yml +84 -0
  25. data/spec/cassettes/Code42_Client/_user/when_unblocked/returns_the_blocked_status.yml +113 -0
  26. data/spec/cassettes/Code42_Client/_user_roles/returns_an_enumerable.yml +7 -7
  27. data/spec/cassettes/Code42_Client/_validate_token/returns_a_valid_response.yml +10 -10
  28. data/spec/{crashplan → code42}/client_spec.rb +26 -5
  29. data/spec/{crashplan → code42}/connection_spec.rb +0 -0
  30. data/spec/{crashplan → code42}/org_spec.rb +0 -0
  31. data/spec/{crashplan → code42}/ping_spec.rb +0 -0
  32. data/spec/{crashplan → code42}/resource_spec.rb +0 -0
  33. data/spec/{crashplan → code42}/role_spec.rb +0 -0
  34. data/spec/{crashplan → code42}/settings_spec.rb +0 -0
  35. data/spec/{crashplan → code42}/token_spec.rb +0 -0
  36. data/spec/{crashplan → code42}/user_spec.rb +0 -0
  37. metadata +49 -66
  38. data/spec/cassettes/Crashplan_Client/_create_org/returns_created_org.yml +0 -47
  39. data/spec/cassettes/Crashplan_Client/_create_user/returns_created_user.yml +0 -44
  40. data/spec/cassettes/Crashplan_Client/_create_user/when_sending_an_invalid_email/raises_an_exception.yml +0 -37
  41. data/spec/cassettes/Crashplan_Client/_find_org_by_name/returns_the_org_with_the_specified_name.yml +0 -55
  42. data/spec/cassettes/Crashplan_Client/_get_token/returns_valid_tokens.yml +0 -38
  43. data/spec/cassettes/Crashplan_Client/_get_token/when_providing_invalid_credentials/should_raise_an_exception.yml +0 -37
  44. data/spec/cassettes/Crashplan_Client/_org/when_ID_is_not_passed/returns_my_org.yml +0 -54
  45. data/spec/cassettes/Crashplan_Client/_org/when_ID_is_passed_in/returns_a_specific_org.yml +0 -54
  46. data/spec/cassettes/Crashplan_Client/_ping/returns_a_ping.yml +0 -48
  47. data/spec/cassettes/Crashplan_Client/_user/when_ID_is_not_passed/returns_my_user.yml +0 -99
  48. data/spec/cassettes/Crashplan_Client/_user/when_ID_is_passed_in/returns_a_specific_user.yml +0 -53
  49. data/spec/cassettes/Crashplan_Client/_user_roles/returns_an_enumerable.yml +0 -50
  50. data/spec/cassettes/Crashplan_Client/_validate_token/returns_a_valid_response.yml +0 -128
@@ -1,47 +0,0 @@
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
- Content-Type:
11
- - application/json
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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-02-07T17:15:11.793-06:00\",\n
34
- \ \"params\": {}\n },\n \"data\": {\n \"orgId\": 17,\n \"orgUid\":
35
- \"569639014995996375\",\n \"orgName\": \"IBM\",\n \"status\": \"Active\",\n
36
- \ \"active\": true,\n \"blocked\": false,\n \"parentOrgId\": null,\n
37
- \ \"type\": \"ENTERPRISE\",\n \"externalId\": \"569639014995996375\",\n
38
- \ \"hierarchyCounts\": {},\n \"configInheritanceCounts\": {},\n \"creationDate\":
39
- \"2013-02-07T17:15:11.536-06:00\",\n \"modificationDate\": \"2013-02-07T17:15:11.732-06:00\",\n
40
- \ \"registrationKey\": \"WHRC-4JHW-9SC7-7JRR\",\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: Thu, 07 Feb 2013 23:15:11 GMT
47
- recorded_with: VCR 2.4.0
@@ -1,44 +0,0 @@
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
- Content-Type:
11
- - application/json
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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-02-07T17:07:17.596-06:00\",\n
34
- \ \"params\": {}\n },\n \"data\": {\n \"userId\": 2,\n \"userUid\":
35
- \"832e716e813650cb\",\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\": \"DEFAULT_CUSTOMER_ORG_ID\",\n
38
- \ \"orgName\": \"Default\",\n \"active\": true,\n \"blocked\": false,\n
39
- \ \"emailPromo\": true,\n \"invited\": true,\n \"orgType\": \"ENTERPRISE\",\n
40
- \ \"usernameIsAnEmail\": null,\n \"creationDate\": \"2013-01-31T21:53:41.862-06:00\",\n
41
- \ \"modificationDate\": \"2013-02-07T17:07:17.551-06:00\"\n }\n}"
42
- http_version:
43
- recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
44
- recorded_with: VCR 2.4.0
@@ -1,37 +0,0 @@
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
- Content-Type:
11
- - application/json
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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: Wed, 13 Feb 2013 16:59:05 GMT
37
- recorded_with: VCR 2.4.0
@@ -1,55 +0,0 @@
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
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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
- H4sIAAAAAAAAAKVTXW/aMBR951dEfi6VE4q25Y1CVkXbykTCU1Wh23ABa4nN
44
- nJuJDOW/1zY0pNBN1ZYXy+fce879cPY9z2MFEiyBgIWe5+0NYjASBZYExdaA
45
- LOD+oM8H/YCn/oeQ89AfXg+DoM+H5sKuDhlb0FCUJnzPftqkCa6gyok1hm5s
46
- DLvwUAT5WFWSDOofZZReW5EHr407gPHSoMFVB5mLpfOJPo/mX9PFeJ6k02/R
47
- bDGd3S3iCeuG3kOB3ZpazrRIlfVjo4zELzwxcLiHHukKW/QpV9kPtL4ryMsT
48
- bppHSdNjmbLK85aieuu8o/s0mn2fxUl0MsEdoZaQx+/rZCNQg842tRuam3XT
49
- kpmSK7GO5Qa1IJAZvhmkEUgoOQHC7mb9m5R/CgeDcPjxmnP+arP2hailWIns
50
- X1I1rkVJ2qV+wdpm/j77usFbpUnI9VnVVUmqGLsGL0ZfItmM0r2s7quxdcMu
51
- MQ2XZzs5MLc14QtzJJoL1eM83cr/Js/Y2+KM/VE6qYoCdP3fwu5sHu1v1mue
52
- AdhA62LRAwAA
53
- http_version:
54
- recorded_at: Wed, 20 Mar 2013 22:00:15 GMT
55
- recorded_with: VCR 2.4.0
@@ -1,38 +0,0 @@
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: ! '{"appCode":"CPP"}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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-02-07T17:07:17.451-06:00\",\n
34
- \ \"params\": {}\n },\n \"data\": [\n \"0jxj2343t5md91shpnmtfuj82z\",\n
35
- \ \"03i9nar7qnafz0u6zgf579o8cs\"\n ]\n}"
36
- http_version:
37
- recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
38
- recorded_with: VCR 2.4.0
@@ -1,37 +0,0 @@
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: ! '{"appCode":"CPP"}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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: Thu, 07 Feb 2013 23:07:17 GMT
37
- recorded_with: VCR 2.4.0
@@ -1,54 +0,0 @@
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
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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
- H4sIAAAAAAAAAJ2SQW7CMBBF9z1F5DVBNhGk9a4FFlFVWgE9gBuGYDV2IntS
44
- ESHuXjsJpQS6aXZ+nvn+Mz+HuyAgClBsBArCgyA4OOIYSgUWhSodJCPKopCO
45
- QhqvWcxpzFk8jOI4pBNOKRm0HaUwQllXfjg6cPSU9FULkyUbB9jg5/wuPSCP
46
- s5dkQc54IRRccWcIK9vgFOUXnLhoTzxAU0HHPvIi/QSvvRW5hbNJ0Pja2dBV
47
- nncXWJfNe/PFer58Wyar+Ukc9ghGizy59rmTYIRJd/W0qDS2s3dXaaG3Mkv0
48
- DoxEoVO4UWJAoCz0TCC0W6aTkI7DUbRmY84Yjx6GlFKHfm1ZFRu5lWmv0cfD
49
- woj5eBjlNBrex9FlPAYyadE0jc9Q+7597zuXloVBqbMLt5XFQk2bsS43bQF9
50
- sW2CPkXtrYr9yk3oedgF3tKnGqGlDTz2dLqlNdn9JUjILUFCbgquKqWEqf/t
51
- z//Od8dv7uRN3isDAAA=
52
- http_version:
53
- recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
54
- recorded_with: VCR 2.4.0
@@ -1,54 +0,0 @@
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
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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
- H4sIAAAAAAAAAJ2SwXKCMBCG730KJmdxEqliubXqgenUdtQ+QIorZkoCkywd
44
- GYd3bwJYK9pLueXL7p9/9+d453lEAvItR04iz/OOlliGQoJBLgsLyYiywKcj
45
- n4YbFkY0jFg4vGdTn04iSsmg7Si45tLY8mNtQe0o6avmOo23FrDBz/ldOEAe
46
- 5y/xkpzxkku44tYQlqbBCYovOHHeniIPdQkd+8jy5BOc9o5nBs4mQeFrZ0OV
47
- WdZdYFU07y2Wm8XqbRWvFydxOCBoxbP42udegOY62VezvFTYzt5dJbnaiTRW
48
- e9ACuUrgRokGjiJXc47QbplOfDr2R8GGjSPGouBhSCm16NeWZb4VO5H0Gl08
49
- zA+Yi4fRiAbDaRhcxqMhFQZ10/gMles79L5zaZFrFCq9cFsazOWsGety0wbQ
50
- FZsm6FPUzio/rO2Ejvtd4C19qhBa2sC6p9MtrcnuL0FCbgkSclNwXUrJdfVv
51
- f+53vqu/AZCML28rAwAA
52
- http_version:
53
- recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
54
- recorded_with: VCR 2.4.0
@@ -1,48 +0,0 @@
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
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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
- H4sIAAAAAAAAAC3MPQ6AIAwG0N1TNJ3FFIwSOYcXaJDBgcRInQh3t0TX9/3U
44
- AQBzEj5YGAMAVBU1OXMqwvlSREd2NuQM+d36QD5YP9llM7QGIhy/xcU356L1
45
- 2hRaV/xfK5YnxlR6KveT2tBeP6EAFXkAAAA=
46
- http_version:
47
- recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
48
- recorded_with: VCR 2.4.0
@@ -1,99 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://admin:admin@localhost:7280/api/user/my
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - ! '*/*'
14
- User-Agent:
15
- - Ruby
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
- H4sIAAAAAAAAAJWSTW7CMBCF95wi8pogJ7REyi4VWWRRiig9wBA7xWpsJ/aE
44
- CiHuXruEkgZ10aW/NzNvfnyaBAGRHIEBAkmDIDg54hgKyS2CbBwkMY3mIY1D
45
- mmyjJKVJGiWzOHHvRUopmV4yGjAgrQs/nR04e0rGVTvLTcEciaY38CY8Ibj/
46
- rPfdy1G0sT3sWNlWUsaMS8XE1cI1hJ23IFmJ4sDJoIoCyb0CTAp1FbgEUd/R
47
- ShiLqz4+Gyo1/CG0nUYo1NMRufcPr/1r8/5rHvfux8mWz8WK3PBP2SGHyxhp
48
- gKbjPdvVuvzgvkYFteXDSdZGSz0ShDoIvAt3httj822Yr7b5Zr0pXvPxugqb
49
- qbzf0DC5NBxQaLUE5Jfz00VIH8LInT9O59QdfUYpDenj4PxSM1GJ8h+J/pdM
50
- zl/wwnoRggIAAA==
51
- http_version:
52
- recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
53
- - request:
54
- method: get
55
- uri: http://admin:admin@localhost:7280/api/user?username=my
56
- body:
57
- encoding: US-ASCII
58
- string: ''
59
- headers:
60
- Accept-Encoding:
61
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
62
- Accept:
63
- - ! '*/*'
64
- User-Agent:
65
- - Ruby
66
- response:
67
- status:
68
- code: 200
69
- message: !binary |-
70
- T0s=
71
- headers:
72
- !binary "Q2FjaGUtQ29udHJvbA==":
73
- - !binary |-
74
- bm8tc3RvcmU=
75
- !binary "UHJhZ21h":
76
- - !binary |-
77
- bm8tY2FjaGU=
78
- !binary "Q29udGVudC1UeXBl":
79
- - !binary |-
80
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
81
- !binary "Q29udGVudC1FbmNvZGluZw==":
82
- - !binary |-
83
- Z3ppcA==
84
- !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
85
- - !binary |-
86
- Y2h1bmtlZA==
87
- !binary "U2VydmVy":
88
- - !binary |-
89
- SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
90
- body:
91
- encoding: ASCII-8BIT
92
- string: !binary |-
93
- H4sIAAAAAAAAAGWNMQrDMAxF95zCaK6L7ISSeu0VuoUOgnooVEmIlaEY370S
94
- 6db18d7/tXMOOAs9SQiSc64qUSYvzkWIV4UQMfQeow/jPYwpXhMO536IHi8J
95
- EU5HsdJGXFSvsJe8zcTZWv5AU6GZBX8vi9D7tuyzKMXfkNW2Mz2s69oXxG8h
96
- WqQAAAA=
97
- http_version:
98
- recorded_at: Tue, 19 Feb 2013 00:29:04 GMT
99
- recorded_with: VCR 2.4.0