crowd-client 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/Gemfile +2 -0
  2. data/crowd-client.gemspec +2 -2
  3. data/lib/crowd-client.rb +5 -0
  4. data/lib/crowd-client/version.rb +1 -1
  5. data/spec/cassettes/Crowd_Client/_in_group_/should_confirm_users_are_in_groups.yml +47 -46
  6. data/spec/cassettes/Crowd_Client/_login/should_authenticate_and_return_a_session_token.yml +28 -28
  7. data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_AuthenticationFailed_if_authentication_fails.yml +27 -26
  8. data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_InactiveAccount_if_an_account_is_inactive.yml +27 -26
  9. data/spec/cassettes/Crowd_Client/_logout/should_logout_the_current_session.yml +98 -98
  10. data/spec/cassettes/Crowd_Client/_search/should_return_user.yml +38 -0
  11. data/spec/cassettes/Crowd_Client/_user_groups_username_/should_return_the_groups_of_the_user.yml +24 -24
  12. data/spec/cassettes/Crowd_Client/_user_token_/should_return_the_expanded_user.yml +52 -51
  13. data/spec/cassettes/Crowd_Client/_valid_session_/should_validate_the_current_session.yml +53 -53
  14. data/spec/cassettes/Crowd_Client_Group/_add_user/missing_group/should_raise_Exception_NotFound_for_missing_group.yml +70 -70
  15. data/spec/cassettes/Crowd_Client_Group/_add_user/should_add_the_user.yml +94 -94
  16. data/spec/cassettes/Crowd_Client_Group/_add_user/should_raise_Exception_NotFound_for_missing_user.yml +71 -71
  17. data/spec/cassettes/Crowd_Client_Group/_remove_user/should_remove_the_user.yml +114 -114
  18. data/spec/cassettes/Crowd_Client_Group/_users/should_return_all_of_the_users_in_the_group.yml +24 -24
  19. data/spec/cassettes/Crowd_Client_User/Creating_a_user/should_create_a_user_with_attributes.yml +70 -69
  20. data/spec/cassettes/Crowd_Client_User/Get_groups_for_user/should_be_in_the_group.yml +24 -24
  21. data/spec/cassettes/Crowd_Client_User/Update_user/should_update_user_properties.yml +92 -90
  22. data/spec/cassettes/Crowd_Client_User/_destroy/should_delete_the_user.yml +70 -69
  23. data/spec/cassettes/Crowd_Client_User/authenticate/should_return_false_if_the_password_is_invalid.yml +27 -26
  24. data/spec/cassettes/Crowd_Client_User/authenticate/should_return_true_if_the_password_is_valid.yml +26 -25
  25. data/spec/cassettes/Crowd_Client_User/change_password/should_allow_the_user_to_set_a_new_password.yml +92 -91
  26. data/spec/cassettes/Crowd_Client_User/display_name/.yml +25 -24
  27. data/spec/cassettes/Crowd_Client_User/email/.yml +25 -24
  28. data/spec/crowd-client_spec.rb +6 -0
  29. data/spec/spec_helper.rb +2 -1
  30. metadata +24 -22
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/search?entity-type=user&restriction=email=user@example.com
6
+ body: ''
7
+ headers:
8
+ Accept:
9
+ - application/json
10
+ Authorization:
11
+ - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
12
+ Expect:
13
+ - ''
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ X-Embedded-Crowd-Version:
22
+ - Crowd/2.3.3
23
+ X-Crowd-User-Management-Version:
24
+ - '1.1'
25
+ Set-Cookie:
26
+ - JSESSIONID=D9FD1EE1F63817E389212B285D8A95F2; Path=/crowd
27
+ Cache-Control:
28
+ - no-cache, no-store, no-transform
29
+ Content-Type:
30
+ - application/json
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Date:
34
+ - Tue, 15 Jan 2013 17:34:42 GMT
35
+ body: ! '{"expand":"user","users":[{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"}]}'
36
+ http_version:
37
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
38
+ recorded_with: VCR 2.0.0.rc1
@@ -1,36 +1,36 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
5
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/group/nested?username=user@example.com
6
- body: ""
7
- headers:
8
- Accept:
6
+ body: ''
7
+ headers:
8
+ Accept:
9
9
  - application/json
10
- Authorization:
10
+ Authorization:
11
11
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
12
- Expect:
13
- - ""
14
- response:
15
- status:
12
+ Expect:
13
+ - ''
14
+ response:
15
+ status:
16
16
  code: 200
17
17
  message: OK
18
- headers:
19
- Server:
18
+ headers:
19
+ Server:
20
20
  - Apache-Coyote/1.1
21
- X-Embedded-Crowd-Version:
21
+ X-Embedded-Crowd-Version:
22
22
  - Crowd/2.3.3
23
- X-Crowd-User-Management-Version:
24
- - "1.1"
25
- Set-Cookie:
26
- - JSESSIONID=87F8D87FCB5F7A7E5EB0777634F4E57D; Path=/crowd
27
- Content-Type:
23
+ X-Crowd-User-Management-Version:
24
+ - '1.1'
25
+ Set-Cookie:
26
+ - JSESSIONID=92F26670DB402AEF1D471B95B2BAD637; Path=/crowd
27
+ Content-Type:
28
28
  - application/json
29
- Transfer-Encoding:
29
+ Transfer-Encoding:
30
30
  - chunked
31
- Date:
32
- - Wed, 21 Dec 2011 20:57:00 GMT
33
- body: "{\"expand\":\"group\",\"groups\":[{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/group?groupname=MyGroup\",\"rel\":\"self\"},\"name\":\"MyGroup\"},{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/group?groupname=users\",\"rel\":\"self\"},\"name\":\"users\"}]}"
31
+ Date:
32
+ - Tue, 15 Jan 2013 17:34:42 GMT
33
+ body: ! '{"expand":"group","groups":[{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/group?groupname=MyGroup","rel":"self"},"name":"MyGroup"},{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/group?groupname=users","rel":"self"},"name":"users"}]}'
34
34
  http_version:
35
- recorded_at: Wed, 21 Dec 2011 20:57:01 GMT
35
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
36
36
  recorded_with: VCR 2.0.0.rc1
@@ -1,75 +1,76 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session
6
- body: "{\"username\":\"user@example.com\",\"password\":\"password\"}"
7
- headers:
8
- Accept:
6
+ body: ! '{"username":"user@example.com","password":"password"}'
7
+ headers:
8
+ Accept:
9
9
  - application/json
10
- Authorization:
10
+ Authorization:
11
11
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
12
- Content-Type:
12
+ Content-Type:
13
13
  - application/json
14
- Expect:
15
- - ""
16
- response:
17
- status:
14
+ Expect:
15
+ - ''
16
+ response:
17
+ status:
18
18
  code: 201
19
19
  message: Created
20
- headers:
21
- Server:
20
+ headers:
21
+ Server:
22
22
  - Apache-Coyote/1.1
23
- X-Embedded-Crowd-Version:
23
+ X-Embedded-Crowd-Version:
24
24
  - Crowd/2.3.3
25
- X-Crowd-User-Management-Version:
26
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=BB2640BF87D8BB482B40BDEDE8897CE0; Path=/crowd
29
- Cache-Control:
25
+ X-Crowd-User-Management-Version:
26
+ - '1.1'
27
+ Set-Cookie:
28
+ - JSESSIONID=785665B25D2C53E96A5D1D853157865D; Path=/crowd
29
+ Cache-Control:
30
30
  - no-cache, no-store, no-transform
31
- Location:
32
- - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00
33
- Content-Type:
31
+ Location:
32
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
33
+ Content-Type:
34
34
  - application/json
35
- Transfer-Encoding:
35
+ Transfer-Encoding:
36
36
  - chunked
37
- Date:
38
- - Wed, 21 Dec 2011 20:57:00 GMT
39
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"user\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com\",\"rel\":\"self\"},\"name\":\"user@example.com\"},\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
37
+ Date:
38
+ - Tue, 15 Jan 2013 17:34:42 GMT
39
+ body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
40
40
  http_version:
41
- recorded_at: Wed, 21 Dec 2011 20:57:01 GMT
42
- - request:
41
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
42
+ - request:
43
43
  method: get
44
- uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00?expand=user
45
- body: ""
46
- headers:
47
- Accept:
44
+ uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00?expand=user
45
+ body: ''
46
+ headers:
47
+ Accept:
48
48
  - application/json
49
- Authorization:
49
+ Authorization:
50
50
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
51
- Expect:
52
- - ""
53
- response:
54
- status:
51
+ Expect:
52
+ - ''
53
+ response:
54
+ status:
55
55
  code: 200
56
56
  message: OK
57
- headers:
58
- Server:
57
+ headers:
58
+ Server:
59
59
  - Apache-Coyote/1.1
60
- X-Embedded-Crowd-Version:
60
+ X-Embedded-Crowd-Version:
61
61
  - Crowd/2.3.3
62
- X-Crowd-User-Management-Version:
63
- - "1.1"
64
- Set-Cookie:
65
- - JSESSIONID=2F1A330F8CA7E54C49FE8DE303382404; Path=/crowd
66
- Content-Type:
62
+ X-Crowd-User-Management-Version:
63
+ - '1.1'
64
+ Set-Cookie:
65
+ - JSESSIONID=2748651F5F9D7DFE89BE842DDD8D9E7D; Path=/crowd
66
+ Content-Type:
67
67
  - application/json
68
- Transfer-Encoding:
68
+ Transfer-Encoding:
69
69
  - chunked
70
- Date:
71
- - Wed, 21 Dec 2011 20:57:00 GMT
72
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"user\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com\",\"rel\":\"self\"},\"name\":\"user@example.com\",\"first-name\":\"Example\",\"last-name\":\"User\",\"display-name\":\"Example User\",\"email\":\"user@example.com\",\"password\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=user@example.com\",\"rel\":\"edit\"}},\"active\":true,\"attributes\":{\"attributes\":[],\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=user@example.com\",\"rel\":\"self\"}}},\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
70
+ Date:
71
+ - Tue, 15 Jan 2013 17:34:42 GMT
72
+ body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com","first-name":"Example","last-name":"User","display-name":"Example
73
+ User","email":"user@example.com","password":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=user@example.com","rel":"edit"}},"active":true,"attributes":{"attributes":[],"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=user@example.com","rel":"self"}}},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
73
74
  http_version:
74
- recorded_at: Wed, 21 Dec 2011 20:57:01 GMT
75
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
75
76
  recorded_with: VCR 2.0.0.rc1
@@ -1,79 +1,79 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session
6
- body: "{\"username\":\"user@example.com\",\"password\":\"password\"}"
7
- headers:
8
- Accept:
6
+ body: ! '{"username":"user@example.com","password":"password"}'
7
+ headers:
8
+ Accept:
9
9
  - application/json
10
- Authorization:
10
+ Authorization:
11
11
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
12
- Content-Type:
12
+ Content-Type:
13
13
  - application/json
14
- Expect:
15
- - ""
16
- response:
17
- status:
14
+ Expect:
15
+ - ''
16
+ response:
17
+ status:
18
18
  code: 201
19
19
  message: Created
20
- headers:
21
- Server:
20
+ headers:
21
+ Server:
22
22
  - Apache-Coyote/1.1
23
- X-Embedded-Crowd-Version:
23
+ X-Embedded-Crowd-Version:
24
24
  - Crowd/2.3.3
25
- X-Crowd-User-Management-Version:
26
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=EA513801017DA2AB7838EF7EFD3EEC5D; Path=/crowd
29
- Cache-Control:
25
+ X-Crowd-User-Management-Version:
26
+ - '1.1'
27
+ Set-Cookie:
28
+ - JSESSIONID=BCB80C2AF4A111CF55780FBC70053C8D; Path=/crowd
29
+ Cache-Control:
30
30
  - no-cache, no-store, no-transform
31
- Location:
32
- - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00
33
- Content-Type:
31
+ Location:
32
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
33
+ Content-Type:
34
34
  - application/json
35
- Transfer-Encoding:
35
+ Transfer-Encoding:
36
36
  - chunked
37
- Date:
38
- - Wed, 21 Dec 2011 20:57:00 GMT
39
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"user\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com\",\"rel\":\"self\"},\"name\":\"user@example.com\"},\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
37
+ Date:
38
+ - Tue, 15 Jan 2013 17:34:42 GMT
39
+ body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
40
40
  http_version:
41
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
42
- - request:
41
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
42
+ - request:
43
43
  method: post
44
- uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00
45
- body: "{}"
46
- headers:
47
- Accept:
44
+ uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
45
+ body: ! '{}'
46
+ headers:
47
+ Accept:
48
48
  - application/json
49
- Authorization:
49
+ Authorization:
50
50
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
51
- Content-Type:
51
+ Content-Type:
52
52
  - application/json
53
- Expect:
54
- - ""
55
- response:
56
- status:
53
+ Expect:
54
+ - ''
55
+ response:
56
+ status:
57
57
  code: 200
58
58
  message: OK
59
- headers:
60
- Server:
59
+ headers:
60
+ Server:
61
61
  - Apache-Coyote/1.1
62
- X-Embedded-Crowd-Version:
62
+ X-Embedded-Crowd-Version:
63
63
  - Crowd/2.3.3
64
- X-Crowd-User-Management-Version:
65
- - "1.1"
66
- Set-Cookie:
67
- - JSESSIONID=57B97B17CC2E49CBB88BA9E297094E4C; Path=/crowd
68
- Cache-Control:
64
+ X-Crowd-User-Management-Version:
65
+ - '1.1'
66
+ Set-Cookie:
67
+ - JSESSIONID=1E41A8DFDC3889F195E2C0886D7C0FE3; Path=/crowd
68
+ Cache-Control:
69
69
  - no-cache, no-store, no-transform
70
- Content-Type:
70
+ Content-Type:
71
71
  - application/json
72
- Transfer-Encoding:
72
+ Transfer-Encoding:
73
73
  - chunked
74
- Date:
75
- - Wed, 21 Dec 2011 20:57:00 GMT
76
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"user\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com\",\"rel\":\"self\"},\"name\":\"user@example.com\"},\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
74
+ Date:
75
+ - Tue, 15 Jan 2013 17:34:42 GMT
76
+ body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
77
77
  http_version:
78
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
78
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
79
79
  recorded_with: VCR 2.0.0.rc1
@@ -1,104 +1,104 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user
6
- body: "{\"name\":\"group_add@example.com\",\"active\":true,\"password\":{\"value\":\"test\"},\"first-name\":\"Group\",\"last-name\":\"Add\",\"email\":\"group_add@example.com\"}"
7
- headers:
8
- Accept:
6
+ body: ! '{"name":"group_add@example.com","active":true,"password":{"value":"test"},"first-name":"Group","last-name":"Add","email":"group_add@example.com"}'
7
+ headers:
8
+ Accept:
9
9
  - application/json
10
- Authorization:
10
+ Authorization:
11
11
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
12
- Content-Type:
12
+ Content-Type:
13
13
  - application/json
14
- Expect:
15
- - ""
16
- response:
17
- status:
14
+ Expect:
15
+ - ''
16
+ response:
17
+ status:
18
18
  code: 201
19
19
  message: Created
20
- headers:
21
- Server:
20
+ headers:
21
+ Server:
22
22
  - Apache-Coyote/1.1
23
- X-Embedded-Crowd-Version:
23
+ X-Embedded-Crowd-Version:
24
24
  - Crowd/2.3.3
25
- X-Crowd-User-Management-Version:
26
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=A7A8118996BE4B4BAD17D034153E43AB; Path=/crowd
29
- Location:
25
+ X-Crowd-User-Management-Version:
26
+ - '1.1'
27
+ Set-Cookie:
28
+ - JSESSIONID=04DB7BDD147693C408A7FC75C23D412C; Path=/crowd
29
+ Location:
30
30
  - http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_add@example.com
31
- Content-Type:
31
+ Content-Type:
32
32
  - application/json
33
- Content-Length:
34
- - "0"
35
- Date:
36
- - Wed, 21 Dec 2011 20:56:59 GMT
37
- body: ""
33
+ Content-Length:
34
+ - '0'
35
+ Date:
36
+ - Tue, 15 Jan 2013 17:34:41 GMT
37
+ body: ''
38
38
  http_version:
39
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
40
- - request:
39
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
40
+ - request:
41
41
  method: post
42
42
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/direct?groupname=FakeGroup
43
- body: "{\"name\":\"user@example.com\"}"
44
- headers:
45
- Accept:
43
+ body: ! '{"name":"user@example.com"}'
44
+ headers:
45
+ Accept:
46
46
  - application/json
47
- Authorization:
47
+ Authorization:
48
48
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
49
- Content-Type:
49
+ Content-Type:
50
50
  - application/json
51
- Expect:
52
- - ""
53
- response:
54
- status:
51
+ Expect:
52
+ - ''
53
+ response:
54
+ status:
55
55
  code: 404
56
56
  message: Not Found
57
- headers:
58
- Server:
57
+ headers:
58
+ Server:
59
59
  - Apache-Coyote/1.1
60
- X-Embedded-Crowd-Version:
60
+ X-Embedded-Crowd-Version:
61
61
  - Crowd/2.3.3
62
- X-Crowd-User-Management-Version:
63
- - "1.1"
64
- Set-Cookie:
65
- - JSESSIONID=7E84F240BA6301AA7C247CC8535153C6; Path=/crowd
66
- Content-Type:
62
+ X-Crowd-User-Management-Version:
63
+ - '1.1'
64
+ Set-Cookie:
65
+ - JSESSIONID=02F3BE6E1E56441C8219CA64448DAEB8; Path=/crowd
66
+ Content-Type:
67
67
  - application/json
68
- Transfer-Encoding:
68
+ Transfer-Encoding:
69
69
  - chunked
70
- Date:
71
- - Wed, 21 Dec 2011 20:56:59 GMT
72
- body: "{\"reason\":\"GROUP_NOT_FOUND\",\"message\":\"Group <FakeGroup> does not exist\"}"
70
+ Date:
71
+ - Tue, 15 Jan 2013 17:34:41 GMT
72
+ body: ! '{"reason":"GROUP_NOT_FOUND","message":"Group <FakeGroup> does not exist"}'
73
73
  http_version:
74
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
75
- - request:
74
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
75
+ - request:
76
76
  method: delete
77
77
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_add@example.com
78
- body: ""
79
- headers:
80
- Accept:
78
+ body: ''
79
+ headers:
80
+ Accept:
81
81
  - application/json
82
- Authorization:
82
+ Authorization:
83
83
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
84
- Expect:
85
- - ""
86
- response:
87
- status:
84
+ Expect:
85
+ - ''
86
+ response:
87
+ status:
88
88
  code: 204
89
89
  message: No Content
90
- headers:
91
- Server:
90
+ headers:
91
+ Server:
92
92
  - Apache-Coyote/1.1
93
- X-Embedded-Crowd-Version:
93
+ X-Embedded-Crowd-Version:
94
94
  - Crowd/2.3.3
95
- X-Crowd-User-Management-Version:
96
- - "1.1"
97
- Set-Cookie:
98
- - JSESSIONID=EA8822C0DBA88C9324B76799E9CBC890; Path=/crowd
99
- Date:
100
- - Wed, 21 Dec 2011 20:56:59 GMT
101
- body: ""
95
+ X-Crowd-User-Management-Version:
96
+ - '1.1'
97
+ Set-Cookie:
98
+ - JSESSIONID=D5A80F719C836346CB6E7F0C04D81217; Path=/crowd
99
+ Date:
100
+ - Tue, 15 Jan 2013 17:34:41 GMT
101
+ body: ''
102
102
  http_version:
103
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
103
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
104
104
  recorded_with: VCR 2.0.0.rc1