Skip to content

Commit

Permalink
fixup! [INF-5307] - Update SDK with ingress/mongodb Integration Rule
Browse files Browse the repository at this point in the history
  • Loading branch information
graham-russell committed Dec 10, 2024
1 parent 526417e commit 968c0db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,6 @@ type IngressMongoTarget struct {
// The URL of the MongoDB server.
Url string `json:"url,omitempty"`
// Watch is the collection to watch.
Watch string `json:"watch,omitempty"`
// The database to watch.
Database string `json:"database,omitempty"`
// The collection to watch.
Collection string `json:"collection,omitempty"`
Expand All @@ -487,8 +485,6 @@ type IngressMongoTarget struct {
FullDocumentBeforeChange string `json:"fullDocumentBeforeChange,omitempty"`
// The primary site.
PrimarySite string `json:"primarySite,omitempty"`
// The provisioned capacity.
ProvisionedCapacity int `json:"provisionedCapacity,omitempty"`
}

// IngressMongoTarget implements the Target interface.
Expand Down
2 changes: 0 additions & 2 deletions rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ func TestRuleAmqpExtrernal(t *testing.T) {
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)
Expand Down

0 comments on commit 968c0db

Please sign in to comment.