LEAS-2795 mc: read-only smoke user has a three character name at least (run 3923)
release / release (push) Failing after 1m52s

This commit is contained in:
Pavlo Ratushnyi
2026-11-14 13:36:58 +01:00
parent 06ea8746d3
commit f14f61e47c
+4 -4
View File
@@ -71,11 +71,11 @@ mcr_in() {
}
mcr_ro() {
docker run --rm --label "$LABEL" --network "$NET" -e "MC_HOST_r=http://ro:$RO_SECRET@minio:9000" "$CLIENT" "$@"
docker run --rm --label "$LABEL" --network "$NET" -e "MC_HOST_r=http://rouser:$RO_SECRET@minio:9000" "$CLIENT" "$@"
}
mcr_ro_in() {
docker run --rm -i --label "$LABEL" --network "$NET" -e "MC_HOST_r=http://ro:$RO_SECRET@minio:9000" "$CLIENT" "$@"
docker run --rm -i --label "$LABEL" --network "$NET" -e "MC_HOST_r=http://rouser:$RO_SECRET@minio:9000" "$CLIENT" "$@"
}
sha_of() {
@@ -139,8 +139,8 @@ case $mode in
fi
write_two_versions
read_back_versions
mcr admin user add s ro "$RO_SECRET" > /dev/null
mcr admin policy attach s readonly --user ro > /dev/null
mcr admin user add s rouser "$RO_SECRET" > /dev/null
mcr admin policy attach s readonly --user rouser > /dev/null
got=$(mcr_ro cat r/vbkt/key | sha256sum | cut -d' ' -f1)
[ "$got" = "$S2" ] || fail "the read-only user cannot read the key"
code=0