-
Notifications
You must be signed in to change notification settings - Fork 70
Fix Application Update event to sync API keys based on events #1659
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
Open
VirajSalaka
wants to merge
9
commits into
wso2:main
Choose a base branch
from
VirajSalaka:application-fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2e5a5a9
Fix Application Update event to sync API keys based on events
VirajSalaka 592e262
Improvement: Introduce Api key Retrieval from Storage using Applicati…
VirajSalaka 8902cb4
Fix extracting application details along with the apikey
VirajSalaka f68c54f
Bug fix: API Key unbinding from Application does not apply in Policy …
VirajSalaka cb7a274
Revert "Bug fix: API Key unbinding from Application does not apply in…
VirajSalaka fc4b4a4
Reapply "Bug fix: API Key unbinding from Application does not apply i…
VirajSalaka ed05c90
Test fixes
VirajSalaka 48dd8ce
Retrieve removed API Keys based on persistence
VirajSalaka e173b42
Merge branch 'main' into application-fix
VirajSalaka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Track
RefreshSnapshot()in this recorder too.The new test is meant to catch any inline xDS work during
handleApplicationUpdatedEvent, but this double only records store/revoke/remove calls. If the client starts callingRefreshSnapshot()inline again,TestClient_handleApplicationUpdatedEvent_DoesNotRefreshXDSInlinestill passes.Suggested test fix
type recordingControlPlaneXDSManager struct { storeCallCount int revokeCallCount int removeCallCount int + refreshCallCount int } @@ func (m *recordingControlPlaneXDSManager) RefreshSnapshot() error { + m.refreshCallCount++ return nil }if xdsManager.removeCallCount != 0 { t.Fatalf("expected no inline xDS remove calls, got %d", xdsManager.removeCallCount) } + if xdsManager.refreshCallCount != 0 { + t.Fatalf("expected no inline xDS refresh calls, got %d", xdsManager.refreshCallCount) + } }🤖 Prompt for AI Agents