-
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.
[INF-5307] - Update SDK with
ingress/mongodb
Integration Rule
We have recently added Integration Rules for MongoDB. This exposes them. An update the the Ably Terraform provider will come in a separate step.
- Loading branch information
1 parent
7e96bc9
commit 8b32290
Showing
2 changed files
with
47 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 |
---|---|---|
|
@@ -57,6 +57,22 @@ func TestRuleAmqpExtrernal(t *testing.T) { | |
testRule(t, target) | ||
} | ||
|
||
func TestRuleIngressMongo(t *testing.T) { | ||
target := &IngressMongoTarget{ | ||
Url: "mongodb://coco:[email protected]:27017", | ||
Watch: "COLLECTION", | ||
Database: "coconut", | ||
Collection: "coconut", | ||
Pipeline: "[{'$set': {'_ablyChannel': 'myChannel'}}]", | ||
FullDocument: "off", | ||
FullDocumentBeforeChange: "off", | ||
PrimarySite: "us-east-1-A", | ||
ProvisionedCapacity: 1, | ||
} | ||
|
||
testRule(t, target) | ||
} | ||
|
||
func TestRuleAmqp(t *testing.T) { | ||
target := &AmqpTarget{ | ||
Headers: []Header{{Name: "a", Value: "b"}}, | ||
|