-
Notifications
You must be signed in to change notification settings - Fork 3k
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
bgpv1: component test framework #25362
Merged
Merged
Conversation
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
maintainer-s-little-helper
bot
added
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
May 10, 2023
harsimran-pabla
added
the
release-note/misc
This PR makes changes that have no direct user impact.
label
May 10, 2023
maintainer-s-little-helper
bot
removed
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
May 10, 2023
harsimran-pabla
added
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
area/bgp
labels
May 10, 2023
maintainer-s-little-helper
bot
removed
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
May 10, 2023
harsimran-pabla
force-pushed
the
bgp_component_tests
branch
4 times, most recently
from
May 11, 2023 14:47
70634af
to
c0cc7bc
Compare
harsimran-pabla
force-pushed
the
bgp_component_tests
branch
2 times, most recently
from
May 11, 2023 18:01
554582a
to
515310a
Compare
harsimran-pabla
force-pushed
the
bgp_component_tests
branch
2 times, most recently
from
May 16, 2023 17:53
38d15bb
to
1153c16
Compare
YutaroHayakawa
approved these changes
May 18, 2023
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.
Now looks good to me 👍
One non-blocking comment: I'd prefer putting all context in the PR description into the commit message. So that we don't have to jump to GitHub every time.
/test |
Pass log parameters to gobgp logger instead of hardcoding them in log methods. This is done so we can reuse the logger and pass on different log fields. Signed-off-by: harsimran pabla <[email protected]>
Introducing bgp control plane component tests. This change introduces test harness and basic BGP tests related to podCIDR advertisements, lb service advertisements and neighbor events. Motivation of this change is to increase test coverage around boundaries of BGP subsystem and also to validate actual peering state at high level for primary BGP features. Types of test cases to add here would range from exposed BGP features like route advertisements and various neighbor configuration settings. Signed-off-by: harsimran pabla <[email protected]>
harsimran-pabla
force-pushed
the
bgp_component_tests
branch
from
May 18, 2023 17:32
1153c16
to
90d2f53
Compare
/test |
dylandreimerink
approved these changes
May 21, 2023
maintainer-s-little-helper
bot
added
the
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
label
May 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/bgp
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
release-note/misc
This PR makes changes that have no direct user impact.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introducing bgp control plane component tests. This change introduces test harness and basic BGP tests related to podCIDR advertisements, lb service advertisements and neighbor events.
Motivation of this change
Increase test coverage around boundaries of subcomponents
-- Controller : This is limited to that policy change calls correct reconciler methods.
-- Reconcilers : Tests validate the diffs are generated correctly and we are inspecting gobgp directly for validation. Direct inspection of gobgp might not be suitable here in long term, if another underlying routing agent is used.
Validate and make BGP Peering part of CI testing.
Types of test cases to add
This component level test is mainly cover high level BGP features
So, what I see following tests need to be added
-- Authentication
-- Timers
-- Graceful restart
-- Restarts
-- Any customer reported bugs and issues with order of operations.