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
@@ -1,139 +1,139 @@
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=A7EDC3C42E7B3B2C39563999A7A06DFC; Path=/crowd
29
- Location:
25
+ X-Crowd-User-Management-Version:
26
+ - '1.1'
27
+ Set-Cookie:
28
+ - JSESSIONID=DB891B71B3E0F1C66D6D3810F040E318; 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:56:59 GMT
40
- - request:
39
+ recorded_at: Tue, 15 Jan 2013 17:34:41 GMT
40
+ - request:
41
41
  method: post
42
42
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/direct?groupname=MyGroup
43
- body: "{\"name\":\"group_add@example.com\"}"
44
- headers:
45
- Accept:
43
+ body: ! '{"name":"group_add@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: 201
56
56
  message: Created
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=25B78F520DC2777DFB390EAB8AE9F8B5; Path=/crowd
66
- Location:
62
+ X-Crowd-User-Management-Version:
63
+ - '1.1'
64
+ Set-Cookie:
65
+ - JSESSIONID=D008AADA7E879CA4F283F7037D5421E0; Path=/crowd
66
+ Location:
67
67
  - http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/direct?groupname=MyGroup&username=group_add@example.com
68
- Content-Type:
68
+ Content-Type:
69
69
  - application/json
70
- Content-Length:
71
- - "0"
72
- Date:
73
- - Wed, 21 Dec 2011 20:56:59 GMT
74
- body: ""
70
+ Content-Length:
71
+ - '0'
72
+ Date:
73
+ - Tue, 15 Jan 2013 17:34:41 GMT
74
+ body: ''
75
75
  http_version:
76
- recorded_at: Wed, 21 Dec 2011 20:56:59 GMT
77
- - request:
76
+ recorded_at: Tue, 15 Jan 2013 17:34:41 GMT
77
+ - request:
78
78
  method: get
79
79
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/nested?groupname=MyGroup
80
- body: ""
81
- headers:
82
- Accept:
80
+ body: ''
81
+ headers:
82
+ Accept:
83
83
  - application/json
84
- Authorization:
84
+ Authorization:
85
85
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
86
- Expect:
87
- - ""
88
- response:
89
- status:
86
+ Expect:
87
+ - ''
88
+ response:
89
+ status:
90
90
  code: 200
91
91
  message: OK
92
- headers:
93
- Server:
92
+ headers:
93
+ Server:
94
94
  - Apache-Coyote/1.1
95
- X-Embedded-Crowd-Version:
95
+ X-Embedded-Crowd-Version:
96
96
  - Crowd/2.3.3
97
- X-Crowd-User-Management-Version:
98
- - "1.1"
99
- Set-Cookie:
100
- - JSESSIONID=79EBB59CD9A9AC93B34E8C0FE0F03541; Path=/crowd
101
- Content-Type:
97
+ X-Crowd-User-Management-Version:
98
+ - '1.1'
99
+ Set-Cookie:
100
+ - JSESSIONID=D9D383AE45E788F4C6EF8A47F77712C2; Path=/crowd
101
+ Content-Type:
102
102
  - application/json
103
- Transfer-Encoding:
103
+ Transfer-Encoding:
104
104
  - chunked
105
- Date:
106
- - Wed, 21 Dec 2011 20:56:59 GMT
107
- body: "{\"expand\":\"user\",\"users\":[{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_add@example.com\",\"rel\":\"self\"},\"name\":\"group_add@example.com\"},{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com\",\"rel\":\"self\"},\"name\":\"user@example.com\"}]}"
105
+ Date:
106
+ - Tue, 15 Jan 2013 17:34:41 GMT
107
+ body: ! '{"expand":"user","users":[{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_add@example.com","rel":"self"},"name":"group_add@example.com"},{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"}]}'
108
108
  http_version:
109
- recorded_at: Wed, 21 Dec 2011 20:56:59 GMT
110
- - request:
109
+ recorded_at: Tue, 15 Jan 2013 17:34:41 GMT
110
+ - request:
111
111
  method: delete
112
112
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_add@example.com
113
- body: ""
114
- headers:
115
- Accept:
113
+ body: ''
114
+ headers:
115
+ Accept:
116
116
  - application/json
117
- Authorization:
117
+ Authorization:
118
118
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
119
- Expect:
120
- - ""
121
- response:
122
- status:
119
+ Expect:
120
+ - ''
121
+ response:
122
+ status:
123
123
  code: 204
124
124
  message: No Content
125
- headers:
126
- Server:
125
+ headers:
126
+ Server:
127
127
  - Apache-Coyote/1.1
128
- X-Embedded-Crowd-Version:
128
+ X-Embedded-Crowd-Version:
129
129
  - Crowd/2.3.3
130
- X-Crowd-User-Management-Version:
131
- - "1.1"
132
- Set-Cookie:
133
- - JSESSIONID=51027B4478F09AAD6E8526E38593CC83; Path=/crowd
134
- Date:
135
- - Wed, 21 Dec 2011 20:56:59 GMT
136
- body: ""
130
+ X-Crowd-User-Management-Version:
131
+ - '1.1'
132
+ Set-Cookie:
133
+ - JSESSIONID=70248A3719E0B881F4B8DA82D9C9990E; Path=/crowd
134
+ Date:
135
+ - Tue, 15 Jan 2013 17:34:41 GMT
136
+ body: ''
137
137
  http_version:
138
- recorded_at: Wed, 21 Dec 2011 20:56:59 GMT
138
+ recorded_at: Tue, 15 Jan 2013 17:34:41 GMT
139
139
  recorded_with: VCR 2.0.0.rc1
@@ -1,106 +1,106 @@
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=50DC1999D27D945063BE9A127BDD2055; Path=/crowd
29
- Location:
25
+ X-Crowd-User-Management-Version:
26
+ - '1.1'
27
+ Set-Cookie:
28
+ - JSESSIONID=97702BDEA3456F2A4F094F128B68BC32; 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:56:59 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=MyGroup
43
- body: "{\"name\":\"fake\"}"
44
- headers:
45
- Accept:
43
+ body: ! '{"name":"fake"}'
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: 400
56
56
  message: Bad Request
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=6692C3EFD30A16B2A487764A5F9F85BA; Path=/crowd
66
- Content-Type:
62
+ X-Crowd-User-Management-Version:
63
+ - '1.1'
64
+ Set-Cookie:
65
+ - JSESSIONID=071585407652DB98C98C6D5E277027EC; 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
- Connection:
70
+ Date:
71
+ - Tue, 15 Jan 2013 17:34:41 GMT
72
+ Connection:
73
73
  - close
74
- body: "{\"reason\":\"USER_NOT_FOUND\",\"message\":\"User <fake> does not exist\"}"
74
+ body: ! '{"reason":"USER_NOT_FOUND","message":"User <fake> does not exist"}'
75
75
  http_version:
76
- recorded_at: Wed, 21 Dec 2011 20:56:59 GMT
77
- - request:
76
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
77
+ - request:
78
78
  method: delete
79
79
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_add@example.com
80
- body: ""
81
- headers:
82
- Accept:
80
+ body: ''
81
+ headers:
82
+ Accept:
83
83
  - application/json
84
- Authorization:
84
+ Authorization:
85
85
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
86
- Expect:
87
- - ""
88
- response:
89
- status:
86
+ Expect:
87
+ - ''
88
+ response:
89
+ status:
90
90
  code: 204
91
91
  message: No Content
92
- headers:
93
- Server:
92
+ headers:
93
+ Server:
94
94
  - Apache-Coyote/1.1
95
- X-Embedded-Crowd-Version:
95
+ X-Embedded-Crowd-Version:
96
96
  - Crowd/2.3.3
97
- X-Crowd-User-Management-Version:
98
- - "1.1"
99
- Set-Cookie:
100
- - JSESSIONID=5D443C58B7CEFDE2929A3BF1D72CE685; Path=/crowd
101
- Date:
102
- - Wed, 21 Dec 2011 20:56:59 GMT
103
- body: ""
97
+ X-Crowd-User-Management-Version:
98
+ - '1.1'
99
+ Set-Cookie:
100
+ - JSESSIONID=76B353C0885617CA8DAD323D57B3E532; Path=/crowd
101
+ Date:
102
+ - Tue, 15 Jan 2013 17:34:41 GMT
103
+ body: ''
104
104
  http_version:
105
- recorded_at: Wed, 21 Dec 2011 20:56:59 GMT
105
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
106
106
  recorded_with: VCR 2.0.0.rc1
@@ -1,168 +1,168 @@
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_removal@example.com\",\"active\":true,\"password\":{\"value\":\"test\"},\"first-name\":\"Group\",\"last-name\":\"Removal\",\"email\":\"group_removal@example.com\"}"
7
- headers:
8
- Accept:
6
+ body: ! '{"name":"group_removal@example.com","active":true,"password":{"value":"test"},"first-name":"Group","last-name":"Removal","email":"group_removal@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=F2A86EF86DD480237A83E1950BA203CF; Path=/crowd
29
- Location:
25
+ X-Crowd-User-Management-Version:
26
+ - '1.1'
27
+ Set-Cookie:
28
+ - JSESSIONID=DC3C97F560DC50FC6505DE1ECA622171; Path=/crowd
29
+ Location:
30
30
  - http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_removal@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=MyGroup
43
- body: "{\"name\":\"group_removal@example.com\"}"
44
- headers:
45
- Accept:
43
+ body: ! '{"name":"group_removal@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: 201
56
56
  message: Created
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=7AAFB570E2326FDE5BCA9648E25F1D26; Path=/crowd
66
- Location:
62
+ X-Crowd-User-Management-Version:
63
+ - '1.1'
64
+ Set-Cookie:
65
+ - JSESSIONID=A4199CD459CB885B84D682AF19158954; Path=/crowd
66
+ Location:
67
67
  - http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/direct?groupname=MyGroup&username=group_removal@example.com
68
- Content-Type:
68
+ Content-Type:
69
69
  - application/json
70
- Content-Length:
71
- - "0"
72
- Date:
73
- - Wed, 21 Dec 2011 20:56:59 GMT
74
- body: ""
70
+ Content-Length:
71
+ - '0'
72
+ Date:
73
+ - Tue, 15 Jan 2013 17:34:41 GMT
74
+ body: ''
75
75
  http_version:
76
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
77
- - request:
76
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
77
+ - request:
78
78
  method: delete
79
79
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/direct?groupname=MyGroup&username=group_removal@example.com
80
- body: ""
81
- headers:
82
- Accept:
80
+ body: ''
81
+ headers:
82
+ Accept:
83
83
  - application/json
84
- Authorization:
84
+ Authorization:
85
85
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
86
- Expect:
87
- - ""
88
- response:
89
- status:
86
+ Expect:
87
+ - ''
88
+ response:
89
+ status:
90
90
  code: 204
91
91
  message: No Content
92
- headers:
93
- Server:
92
+ headers:
93
+ Server:
94
94
  - Apache-Coyote/1.1
95
- X-Embedded-Crowd-Version:
95
+ X-Embedded-Crowd-Version:
96
96
  - Crowd/2.3.3
97
- X-Crowd-User-Management-Version:
98
- - "1.1"
99
- Set-Cookie:
100
- - JSESSIONID=5BD726BC203970B40786154AB0A1BB23; Path=/crowd
101
- Date:
102
- - Wed, 21 Dec 2011 20:56:59 GMT
103
- body: ""
97
+ X-Crowd-User-Management-Version:
98
+ - '1.1'
99
+ Set-Cookie:
100
+ - JSESSIONID=411B2D176177EA1317E72330318EF10B; Path=/crowd
101
+ Date:
102
+ - Tue, 15 Jan 2013 17:34:41 GMT
103
+ body: ''
104
104
  http_version:
105
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
106
- - request:
105
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
106
+ - request:
107
107
  method: get
108
108
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/group/user/nested?groupname=MyGroup
109
- body: ""
110
- headers:
111
- Accept:
109
+ body: ''
110
+ headers:
111
+ Accept:
112
112
  - application/json
113
- Authorization:
113
+ Authorization:
114
114
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
115
- Expect:
116
- - ""
117
- response:
118
- status:
115
+ Expect:
116
+ - ''
117
+ response:
118
+ status:
119
119
  code: 200
120
120
  message: OK
121
- headers:
122
- Server:
121
+ headers:
122
+ Server:
123
123
  - Apache-Coyote/1.1
124
- X-Embedded-Crowd-Version:
124
+ X-Embedded-Crowd-Version:
125
125
  - Crowd/2.3.3
126
- X-Crowd-User-Management-Version:
127
- - "1.1"
128
- Set-Cookie:
129
- - JSESSIONID=A6ED43666233EC38D44426C6A2F39DBE; Path=/crowd
130
- Content-Type:
126
+ X-Crowd-User-Management-Version:
127
+ - '1.1'
128
+ Set-Cookie:
129
+ - JSESSIONID=474A8AC433367B5531551CA1FA719096; Path=/crowd
130
+ Content-Type:
131
131
  - application/json
132
- Transfer-Encoding:
132
+ Transfer-Encoding:
133
133
  - chunked
134
- Date:
135
- - Wed, 21 Dec 2011 20:56:59 GMT
136
- 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\"}]}"
134
+ Date:
135
+ - Tue, 15 Jan 2013 17:34:41 GMT
136
+ 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"}]}'
137
137
  http_version:
138
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
139
- - request:
138
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
139
+ - request:
140
140
  method: delete
141
141
  uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=group_removal@example.com
142
- body: ""
143
- headers:
144
- Accept:
142
+ body: ''
143
+ headers:
144
+ Accept:
145
145
  - application/json
146
- Authorization:
146
+ Authorization:
147
147
  - Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
148
- Expect:
149
- - ""
150
- response:
151
- status:
148
+ Expect:
149
+ - ''
150
+ response:
151
+ status:
152
152
  code: 204
153
153
  message: No Content
154
- headers:
155
- Server:
154
+ headers:
155
+ Server:
156
156
  - Apache-Coyote/1.1
157
- X-Embedded-Crowd-Version:
157
+ X-Embedded-Crowd-Version:
158
158
  - Crowd/2.3.3
159
- X-Crowd-User-Management-Version:
160
- - "1.1"
161
- Set-Cookie:
162
- - JSESSIONID=686EFA16C0C550586F18CC09D153BB9C; Path=/crowd
163
- Date:
164
- - Wed, 21 Dec 2011 20:56:59 GMT
165
- body: ""
159
+ X-Crowd-User-Management-Version:
160
+ - '1.1'
161
+ Set-Cookie:
162
+ - JSESSIONID=D9AC73DD7F2A61BE7D468F239CC696FC; Path=/crowd
163
+ Date:
164
+ - Tue, 15 Jan 2013 17:34:41 GMT
165
+ body: ''
166
166
  http_version:
167
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
167
+ recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
168
168
  recorded_with: VCR 2.0.0.rc1