feat(delivery): integrate PostgreSQL delivery

This commit is contained in:
l x
2026-07-31 10:30:03 +08:00
parent 048ac6507e
commit 66fde73792
25 changed files with 2110 additions and 139 deletions
+10
View File
@@ -73,3 +73,13 @@ func TestAWXClientCreatesTokenFromCredentials(t *testing.T) {
t.Fatalf("token requests = %d, want 1", tokenRequests)
}
}
func TestAWXHostIPPrefersXInfraPublicAddress(t *testing.T) {
host := AWXInventoryHost{
Name: "postgresql-218-11-5-224",
Variables: `{"ansible_host":"127.0.0.1","xinfra_public_address":"218.11.5.224"}`,
}
if got := AWXHostIP(host); got != "218.11.5.224" {
t.Fatalf("AWXHostIP = %q, want public address", got)
}
}