mirror of
https://github.com/bpmforge/kryptkeeper.git
synced 2026-11-23 16:02:01 +00:00
e0d82a4ed0
First stable release. Notes: docs/release/RELEASE_NOTES_v1.0.0.md Lab record: docs/release/LIVE_RESULTS_v1.0.0.md
21 lines
704 B
Go
21 lines
704 B
Go
// Copyright 2026 Kryptkeeper Authors
|
||
//
|
||
// SPDX-License-Identifier: Apache-2.0
|
||
|
||
package bootstrap
|
||
|
||
import "testing"
|
||
|
||
func TestUnreadablePathOfStripsQuotes(t *testing.T) {
|
||
for in, want := range map[string]string{
|
||
"UNREADABLE_PATH: h:find: '/etc/ssl/private': Permission denied": "/etc/ssl/private",
|
||
"UNREADABLE_PATH: h:find: ‘/etc/ssl/private’: Permission denied": "/etc/ssl/private",
|
||
"UNREADABLE_PATH: h:/etc/nginx/ssl/locked.crt: permission denied": "/etc/nginx/ssl/locked.crt",
|
||
"UNREADABLE_PATH: h:find: “/opt/x”: Permission denied": "/opt/x",
|
||
} {
|
||
if got := unreadablePathOf(in); got != want {
|
||
t.Errorf("unreadablePathOf(%q) = %q, want %q", in, got, want)
|
||
}
|
||
}
|
||
}
|