You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/common/configs/config_test.go
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2181,3 +2181,53 @@ partitions:
2181
2181
_, err=CreateConfig(data)
2182
2182
assert.ErrorContains(t, err, "group * max resource map[memory:90000 vcore:100000] of queue leaf is greater than immediate or ancestor parent maximum resource map[memory:10000 vcore:10000000]")
2183
2183
}
2184
+
2185
+
// TestUserGroupResolverConfig: tests the user group resolver configuration
2186
+
funcTestUserGroupResolverConfig(t*testing.T) {
2187
+
data:=`
2188
+
partitions:
2189
+
-
2190
+
name: default
2191
+
usergroupresolver:
2192
+
type: ldap
2193
+
placementrules:
2194
+
- name: tag
2195
+
value: namespace
2196
+
create: true
2197
+
queues:
2198
+
- name: root
2199
+
submitacl: '*'
2200
+
properties:
2201
+
application.sort.policy: fifo
2202
+
sample: value2
2203
+
`
2204
+
// validate the config and check after the update
2205
+
config, err:=CreateConfig(data)
2206
+
assert.NilError(t, err)
2207
+
2208
+
// check if the user group resolver is set correctly
0 commit comments