feat(delivery): integrate PostgreSQL delivery
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user