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.
- data/Gemfile +2 -0
- data/crowd-client.gemspec +2 -2
- data/lib/crowd-client.rb +5 -0
- data/lib/crowd-client/version.rb +1 -1
- data/spec/cassettes/Crowd_Client/_in_group_/should_confirm_users_are_in_groups.yml +47 -46
- data/spec/cassettes/Crowd_Client/_login/should_authenticate_and_return_a_session_token.yml +28 -28
- data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_AuthenticationFailed_if_authentication_fails.yml +27 -26
- data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_InactiveAccount_if_an_account_is_inactive.yml +27 -26
- data/spec/cassettes/Crowd_Client/_logout/should_logout_the_current_session.yml +98 -98
- data/spec/cassettes/Crowd_Client/_search/should_return_user.yml +38 -0
- data/spec/cassettes/Crowd_Client/_user_groups_username_/should_return_the_groups_of_the_user.yml +24 -24
- data/spec/cassettes/Crowd_Client/_user_token_/should_return_the_expanded_user.yml +52 -51
- data/spec/cassettes/Crowd_Client/_valid_session_/should_validate_the_current_session.yml +53 -53
- data/spec/cassettes/Crowd_Client_Group/_add_user/missing_group/should_raise_Exception_NotFound_for_missing_group.yml +70 -70
- data/spec/cassettes/Crowd_Client_Group/_add_user/should_add_the_user.yml +94 -94
- data/spec/cassettes/Crowd_Client_Group/_add_user/should_raise_Exception_NotFound_for_missing_user.yml +71 -71
- data/spec/cassettes/Crowd_Client_Group/_remove_user/should_remove_the_user.yml +114 -114
- data/spec/cassettes/Crowd_Client_Group/_users/should_return_all_of_the_users_in_the_group.yml +24 -24
- data/spec/cassettes/Crowd_Client_User/Creating_a_user/should_create_a_user_with_attributes.yml +70 -69
- data/spec/cassettes/Crowd_Client_User/Get_groups_for_user/should_be_in_the_group.yml +24 -24
- data/spec/cassettes/Crowd_Client_User/Update_user/should_update_user_properties.yml +92 -90
- data/spec/cassettes/Crowd_Client_User/_destroy/should_delete_the_user.yml +70 -69
- data/spec/cassettes/Crowd_Client_User/authenticate/should_return_false_if_the_password_is_invalid.yml +27 -26
- data/spec/cassettes/Crowd_Client_User/authenticate/should_return_true_if_the_password_is_valid.yml +26 -25
- data/spec/cassettes/Crowd_Client_User/change_password/should_allow_the_user_to_set_a_new_password.yml +92 -91
- data/spec/cassettes/Crowd_Client_User/display_name/.yml +25 -24
- data/spec/cassettes/Crowd_Client_User/email/.yml +25 -24
- data/spec/crowd-client_spec.rb +6 -0
- data/spec/spec_helper.rb +2 -1
- 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:
|
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
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
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
|
-
-
|
35
|
-
Date:
|
36
|
-
-
|
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:
|
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:
|
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
|
-
-
|
64
|
-
Set-Cookie:
|
65
|
-
- JSESSIONID=
|
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
|
-
-
|
72
|
-
Date:
|
73
|
-
-
|
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:
|
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
|
-
-
|
99
|
-
Set-Cookie:
|
100
|
-
- JSESSIONID=
|
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
|
-
-
|
107
|
-
body:
|
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:
|
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
|
-
-
|
132
|
-
Set-Cookie:
|
133
|
-
- JSESSIONID=
|
134
|
-
Date:
|
135
|
-
-
|
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:
|
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:
|
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
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
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
|
-
-
|
35
|
-
Date:
|
36
|
-
-
|
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:
|
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:
|
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
|
-
-
|
64
|
-
Set-Cookie:
|
65
|
-
- JSESSIONID=
|
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
|
-
-
|
72
|
-
Connection:
|
70
|
+
Date:
|
71
|
+
- Tue, 15 Jan 2013 17:34:41 GMT
|
72
|
+
Connection:
|
73
73
|
- close
|
74
|
-
body:
|
74
|
+
body: ! '{"reason":"USER_NOT_FOUND","message":"User <fake> does not exist"}'
|
75
75
|
http_version:
|
76
|
-
recorded_at:
|
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
|
-
-
|
99
|
-
Set-Cookie:
|
100
|
-
- JSESSIONID=
|
101
|
-
Date:
|
102
|
-
-
|
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:
|
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:
|
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
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
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
|
-
-
|
35
|
-
Date:
|
36
|
-
-
|
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:
|
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:
|
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
|
-
-
|
64
|
-
Set-Cookie:
|
65
|
-
- JSESSIONID=
|
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
|
-
-
|
72
|
-
Date:
|
73
|
-
-
|
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:
|
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
|
-
-
|
99
|
-
Set-Cookie:
|
100
|
-
- JSESSIONID=
|
101
|
-
Date:
|
102
|
-
-
|
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:
|
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
|
-
-
|
128
|
-
Set-Cookie:
|
129
|
-
- JSESSIONID=
|
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
|
-
-
|
136
|
-
body:
|
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:
|
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
|
-
-
|
161
|
-
Set-Cookie:
|
162
|
-
- JSESSIONID=
|
163
|
-
Date:
|
164
|
-
-
|
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:
|
167
|
+
recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
|
168
168
|
recorded_with: VCR 2.0.0.rc1
|