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,26 @@
package ddns
import "testing"
func TestTencentSubdomain(t *testing.T) {
if tencentSubdomain("@") != "@" {
t.Fatal("expected @")
}
if tencentSubdomain("www") != "www" {
t.Fatal("expected www")
}
}
func TestCredentialsTencentCloud(t *testing.T) {
cred := CredentialsFromSave(SaveInput{
Provider: "tencentcloud",
APIToken: "AKIDxxx",
APISecret: "secret",
})
if cred.Provider != "tencentcloud" || !cred.HasValues() {
t.Fatal("expected tencentcloud credentials")
}
if err := cred.Validate("tencentcloud"); err != nil {
t.Fatal(err)
}
}