-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the
ingress-postgres-outbox
ingress rule
This is currently in Alpha. It wasn't previously added so it makes sense to add it whilst I'm working on the MongoDB ingress rule.
- Loading branch information
1 parent
b98f465
commit 9282214
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,21 @@ func TestRuleIngressMongo(t *testing.T) { | |
testIngressRule(t, target) | ||
} | ||
|
||
func TestRuleIngressPostgresOutbox(t *testing.T) { | ||
target := &IngressPostgresOutboxTarget{ | ||
Url: "postgres://user:[email protected]:5432/your-database-name", | ||
OutboxTableSchema: "public", | ||
OutboxTableName: "outbox", | ||
NodesTableSchema: "public", | ||
NodesTableName: "nodes", | ||
SslMode: "prefer", | ||
SslRootCert: "-----BEGIN CERTIFICATE----- MIIFiTCCA3GgAwIBAgIUYO1Lomxzj7VRawWwEFiQht9OLpUwDQYJKoZIhvcNAQEL BQAwTDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE1pY2hpZ2FuMQ8wDQYDVQQHDAZX ...snip... TOfReTlUQzgpXRW5h3n2LVXbXQhPGcVitb88Cm2R8cxQwgB1VncM8yvmKhREo2tz 7Y+sUx6eIl4dlNl9kVrH1TD3EwwtGsjUNlFSZhg= -----END CERTIFICATE-----", | ||
PrimarySite: "us-east-1-A", | ||
} | ||
|
||
testIngressRule(t, target) | ||
} | ||
|
||
func testIngressRule(t *testing.T, target Target) { | ||
client, _ := newTestClient(t) | ||
app := newTestApp(t, &client) | ||
|