feat: create standalone native fnOS repository

This commit is contained in:
2026-10-02 15:19:09 +08:00
parent 69f3c30fab
commit 6725fc131d
492 changed files with 94023 additions and 3 deletions
@@ -0,0 +1,19 @@
package nginx
import "testing"
func TestNginxHtpasswdHashNormalizesBcryptPrefix(t *testing.T) {
in := "$2a$10$abcdefghijklmnopqrstuv"
got := nginxHtpasswdHash(in)
want := "$2y$10$abcdefghijklmnopqrstuv"
if got != want {
t.Fatalf("got %q want %q", got, want)
}
}
func TestNginxHtpasswdHashLeavesOtherFormats(t *testing.T) {
in := "$apr1$abc123"
if got := nginxHtpasswdHash(in); got != in {
t.Fatalf("got %q want %q", got, in)
}
}