Skip to content

Commit

Permalink
remove undocumented net.port (#5409)
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Jan 8, 2024
1 parent 9a5d24b commit 5ec3461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/dataplane/translator/atc/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func (f IntField) String() string {
// https://docs.konghq.com/gateway/latest/reference/router-expressions-language/#available-fields

const (
FieldNetPort IntField = "net.port"
FieldNetDstPort IntField = "net.dst.port"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/dataplane/translator/atc/predicate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ func TestNewPredicate(t *testing.T) {
},
{
name: "unmatched types (LHS integer RHS string)",
lhs: FieldNetPort,
lhs: FieldNetDstPort,
op: OpEqual,
rhs: StringLiteral("/"),
expectedError: ErrTypeNotMatch,
},
{
name: "invalid operator (contains for integer)",
lhs: FieldNetPort,
lhs: FieldNetDstPort,
op: OpContains,
rhs: IntLiteral(10),
expectedError: ErrOperatorInvalid,
Expand Down

0 comments on commit 5ec3461

Please sign in to comment.