Skip to content

Commit aafbcd9

Browse files
committed
BF: added test that checks functionality with huge amount of groups and users
1 parent d78f7e2 commit aafbcd9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/tcl_files/config_host.tcl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,3 +3766,39 @@ proc host_conf_add_host_from_template {host_template_var} {
37663766
return $ret
37673767
}
37683768

3769+
## @brief return hosts with massive uid/gid range
3770+
#
3771+
# @return list of hostnames
3772+
#
3773+
proc host_conf_select_ehost_with_massive_uid_gid {} {
3774+
get_current_cluster_config_array ts_config
3775+
3776+
# @todo: we should add a TS host attribute to mark host that provide a huge amount of users and groups
3777+
set wanted_hosts {"ce-8-lx-amd64.*" "v01702.*"}
3778+
3779+
# seach wanted hosts in the list of available hosts
3780+
set selected_hosts {}
3781+
get_exechost_list exec_hosts
3782+
3783+
puts $exec_hosts
3784+
3785+
foreach host $exec_hosts {
3786+
foreach pattern $wanted_hosts {
3787+
if {[string match $pattern $host]} {
3788+
lappend selected_hosts $host
3789+
break
3790+
}
3791+
}
3792+
}
3793+
return $selected_hosts
3794+
}
3795+
3796+
## @brief return user with massive supplementary groups
3797+
#
3798+
# @param ehost host on which the user should exist
3799+
#
3800+
proc host_conf_get_user_with_massive_supplementary_groups {ehost} {
3801+
# user might be different per host
3802+
return "usr10000"
3803+
}
3804+

0 commit comments

Comments
 (0)