test(identity): add isolated browser mail fixture
This commit is contained in:
1 parent
86f562f5b6
commit
24638d46d2
20 files changed
+885
-20
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Rootless Docker maps container root to the owner of a host bind mount. A
|
||||
# non-root container UID instead maps to a subordinate host UID and cannot
|
||||
# write the owner's artifact directory. In rootful Docker, match the host UID.
|
||||
e2e_playwright_user() {
|
||||
local security_options=$1
|
||||
local host_uid=$2
|
||||
local host_gid=$3
|
||||
|
||||
if [[ "$security_options" == *'"name=rootless"'* ]]; then
|
||||
printf '0:0\n'
|
||||
return
|
||||
fi
|
||||
printf '%s:%s\n' "$host_uid" "$host_gid"
|
||||
}
|
||||
Reference in new issue
Block a user