-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E2E: add announcement tests #19
Conversation
Signed-off-by: Federico Paolinelli <[email protected]>
Signed-off-by: Federico Paolinelli <[email protected]>
acb9fb1
to
aa5ecc8
Compare
ValidatePrefixesForNeighbor(f, nodes, "fc00:f853:ccd:e799::/64", "fc00:f853:ccd:e800::/64") | ||
} | ||
}, | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a dual case at this point or not yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
var notFound RouteNotFoundError | ||
if errors.As(err, ¬Found) { | ||
return false, nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the specific error is different from a conversion error or something not recoverable.
Even though routeForCIDR can only return that type of error, it's better to handle the specific error separately from the generic one, it will make the logic future proof.
e2etests/pkg/routes/routes.go
Outdated
return frr.Route{}, RouteNotFoundError(fmt.Sprintf("route %s not found", cidr)) | ||
} | ||
|
||
func havePrefix(pod *v1.Pod, pairingFamily ipfamily.Family, prefix *net.IPNet, nextHop, vrf string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated to this pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I reworked a lot of the logic in the "incoming prefixes" PR and backported the files, this sneaked in. Removing
e2etests/tests/advertisement.go
Outdated
} | ||
}, | ||
}), | ||
ginkgo.Entry("DUAL - Advertise with mode allowall", params{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DUAL
-> DUALSTACK
as that is what we skip in the ci? (although this passes on these lanes)
We add basic announcement tests where all the nodes announce the same ips to all / some neighbors. Signed-off-by: Federico Paolinelli <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
We add basic announcement tests where all the nodes announce the same
ips to all / some neighbors.