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,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: ! '{"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
@@ -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
+ 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
@@ -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
+ 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
@@ -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
+ 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
@@ -0,0 +1,99 @@
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
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/user/2
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
+ H4sIAAAAAAAAAIWSXW+CMBSG7/0VpNdiypcu3LnBFpJNDcK1OUJZmrXUlWJi
44
+ jP997awRncnu2ue87/lqjyPHQZwoqEEBih3HOWqimaKcdAr4TkPkYy9wceD6
45
+ uPBmMY7iKJiE05mrTxij8dmxAwm80/LjSYOToeg+a98RmdWa+OMrKKkhCEf1
46
+ 09T3ahxNYRuE1SWv7kL1Ji+aV4ruCRpYW+DERMz5wgkHyjRse8Ysaqjs1OKs
47
+ HWAGj+h3LxRk7fNBEVPV9SwX8vOmdX23nSfp67x8LzYv5bpYfqT5Zpm/bbIE
48
+ XYW2CkpIAz1TlwicB4odJXti2ZaJ6ouYvA2wjgyHWknBxa2atnuq/qh1xeKw
49
+ +62YLoo0X+XZOr3fW9bN29TuamiuJAFFRZuAIg8eP4yDaBKGd4/PRU0bWv1v
50
+ jAJrNH9kdPoBpMgiQ4ACAAA=
51
+ http_version:
52
+ recorded_at: Wed, 20 Mar 2013 22:05:53 GMT
53
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/userRole/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
+ H4sIAAAAAAAAAF3PP2/CMBAF8J1PYXmOozunIZW3SiwMZYEFIYZTcpUsMEGO
44
+ maJ8d87lb7v+5Ht+b5wppQMn6iiRdkqpUUQs+cBDonAW1BawMmANNBtsHDQO
45
+ m9JaobkD0MXt4kyRwiDPx0lgyqrvqbtnbOyPvOyEsHjBigLnb9bb9dfie7l6
46
+ JB779sD5cYoXvlsbmZLvTwtKfKsGcwMfBqWadRVIoRIADNRv1ULf+R/f/jvM
47
+ m9BUuMHa1ejgs/ylP5s4Bj8McpaH7cY3yBnUBX/S0z7v3c+mK6NIym1NAQAA
48
+ http_version:
49
+ recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
50
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,128 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:admin@localhost:7280/api/authToken/06zavyo44u0bv00dpqvrba2mkh-0a3xef19j13kr0xgtehwba1b3w
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
+ H4sIAAAAAAAAAC3MQQqAIBAF0H2nGGadMRoleI4uMKCBoCApbcS7N1G7z+P/
44
+ 3ycAzKGx58boAKCLiLWYQ22ciyAa0qsio8ge2jqyTttl06Rod0Q4f4vCF+cq
45
+ 9T4Exqv4v3a8OUUv6eRUw5jGA3x6xw54AAAA
46
+ http_version:
47
+ recorded_at: Thu, 07 Feb 2013 23:07:17 GMT
48
+ - request:
49
+ method: post
50
+ uri: http://admin:admin@localhost:7280/api/authToken
51
+ body:
52
+ encoding: UTF-8
53
+ string: ! '{"appCode":"CPP"}'
54
+ headers:
55
+ Content-Type:
56
+ - application/json
57
+ Accept:
58
+ - ! '*/*'
59
+ User-Agent:
60
+ - Ruby
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Cache-Control:
67
+ - no-store
68
+ Pragma:
69
+ - no-cache
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ Transfer-Encoding:
73
+ - chunked
74
+ Server:
75
+ - Jetty(7.6.3.v20120416)
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ! "{\n \"metadata\": {\n \"timestamp\": \"2013-02-07T17:08:45.162-06:00\",\n
79
+ \ \"params\": {}\n },\n \"data\": [\n \"108j8jdtxxjqp0ra106aa3092j\",\n
80
+ \ \"09z8kiq7f273c0jilp86a0fiks\"\n ]\n}"
81
+ http_version:
82
+ recorded_at: Thu, 07 Feb 2013 23:08:45 GMT
83
+ - request:
84
+ method: get
85
+ uri: http://admin:admin@localhost:7280/api/authToken/108j8jdtxxjqp0ra106aa3092j-09z8kiq7f273c0jilp86a0fiks
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ''
89
+ headers:
90
+ Accept-Encoding:
91
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
92
+ Accept:
93
+ - ! '*/*'
94
+ User-Agent:
95
+ - Ruby
96
+ response:
97
+ status:
98
+ code: 200
99
+ message: !binary |-
100
+ T0s=
101
+ headers:
102
+ !binary "Q2FjaGUtQ29udHJvbA==":
103
+ - !binary |-
104
+ bm8tc3RvcmU=
105
+ !binary "UHJhZ21h":
106
+ - !binary |-
107
+ bm8tY2FjaGU=
108
+ !binary "Q29udGVudC1UeXBl":
109
+ - !binary |-
110
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
111
+ !binary "Q29udGVudC1FbmNvZGluZw==":
112
+ - !binary |-
113
+ Z3ppcA==
114
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
115
+ - !binary |-
116
+ Y2h1bmtlZA==
117
+ !binary "U2VydmVy":
118
+ - !binary |-
119
+ SmV0dHkoNy42LjMudjIwMTIwNDE2KQ==
120
+ body:
121
+ encoding: ASCII-8BIT
122
+ string: !binary |-
123
+ H4sIAAAAAAAAAF3NPQ7DIAyG4T2nQJ5DZdIfIs7RC1jCA1IdRUC6IO4eo3bK
124
+ +sjv5zYZA8KVIlWCYIxpKmo1CZdKsivCgu5ucbHo384HXMPjeXN+tfgKiDD/
125
+ ip0ySdHz1hX6ULiufumTokLNB/+zo3DeSHj8oShpg1FP/QSeOIqYmgAAAA==
126
+ http_version:
127
+ recorded_at: Thu, 07 Feb 2013 23:08:45 GMT
128
+ recorded_with: VCR 2.4.0