@@ -103,10 +103,10 @@ void createsConsumerDependantAcls() {
103
103
.topics (List .of ("t1" , "t2" ))
104
104
).block ();
105
105
106
- //Read, Describe on topics, Read on consumerGroups
106
+ //Read, Describe on topics and consumerGroups
107
107
Collection <AclBinding > createdBindings = createdCaptor .getValue ();
108
108
assertThat (createdBindings )
109
- .hasSize (6 )
109
+ .hasSize (8 )
110
110
.contains (new AclBinding (
111
111
new ResourcePattern (ResourceType .TOPIC , "t1" , PatternType .LITERAL ),
112
112
new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )))
@@ -122,9 +122,15 @@ void createsConsumerDependantAcls() {
122
122
.contains (new AclBinding (
123
123
new ResourcePattern (ResourceType .GROUP , "cg1" , PatternType .LITERAL ),
124
124
new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )))
125
+ .contains (new AclBinding (
126
+ new ResourcePattern (ResourceType .GROUP , "cg1" , PatternType .LITERAL ),
127
+ new AccessControlEntry (principal , host , AclOperation .DESCRIBE , AclPermissionType .ALLOW )))
128
+ .contains (new AclBinding (
129
+ new ResourcePattern (ResourceType .GROUP , "cg2" , PatternType .LITERAL ),
130
+ new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )))
125
131
.contains (new AclBinding (
126
132
new ResourcePattern (ResourceType .GROUP , "cg2" , PatternType .LITERAL ),
127
- new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )));
133
+ new AccessControlEntry (principal , host , AclOperation .DESCRIBE , AclPermissionType .ALLOW )));
128
134
}
129
135
130
136
@ Test
@@ -145,10 +151,10 @@ void createsConsumerDependantAclsWhenTopicsAndGroupsSpecifiedByPrefix() {
145
151
.topicsPrefix ("topicPref" )
146
152
).block ();
147
153
148
- //Read, Describe on topics, Read on consumerGroups
154
+ //Read, Describe on topics and consumerGroups
149
155
Collection <AclBinding > createdBindings = createdCaptor .getValue ();
150
156
assertThat (createdBindings )
151
- .hasSize (3 )
157
+ .hasSize (4 )
152
158
.contains (new AclBinding (
153
159
new ResourcePattern (ResourceType .TOPIC , "topicPref" , PatternType .PREFIXED ),
154
160
new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )))
@@ -157,7 +163,10 @@ void createsConsumerDependantAclsWhenTopicsAndGroupsSpecifiedByPrefix() {
157
163
new AccessControlEntry (principal , host , AclOperation .DESCRIBE , AclPermissionType .ALLOW )))
158
164
.contains (new AclBinding (
159
165
new ResourcePattern (ResourceType .GROUP , "cgPref" , PatternType .PREFIXED ),
160
- new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )));
166
+ new AccessControlEntry (principal , host , AclOperation .READ , AclPermissionType .ALLOW )))
167
+ .contains (new AclBinding (
168
+ new ResourcePattern (ResourceType .GROUP , "cgPref" , PatternType .PREFIXED ),
169
+ new AccessControlEntry (principal , host , AclOperation .DESCRIBE , AclPermissionType .ALLOW )));
161
170
}
162
171
163
172
@ Test
0 commit comments