pull/31201/merge
Terry Howe 1 week ago committed by GitHub
commit fabc57b8b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -355,6 +355,13 @@ func TestOCIPusher_Push_ChartOperations(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// Permission-related behavior can differ when running as root.
// The "chart read error" case relies on chmod 0000 causing a read failure,
// which root may bypass in some environments (e.g., Ubuntu containers).
if tt.name == "chart read error" && os.Geteuid() == 0 {
t.Skip("skipping permission test when running as root: chmod 0000 may not deny access for root")
}
chartRef := tt.chartRef
var cleanup func()

Loading…
Cancel
Save