-
Notifications
You must be signed in to change notification settings - Fork 4
Add comprehensive unit tests for Akamai metrics functionality #941
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
AbdullahKaratas
wants to merge
27
commits into
sapcc:main
Choose a base branch
from
AbdullahKaratas:add-unit-tests-akamai-metrics
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 7 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7c3f450
fix: Security fixes for Akamai DNS metrics API - Fix URL injection vu…
abdullah-karatas ce8bd4f
security: fix domain authorization bypass in Akamai DNS metrics API
abdullah-karatas 7b24fb5
WIP
notandy aa9268e
move everything to generated RPC framework
notandy 5ecae81
Fix REUSE and go mod tidy
notandy a7ba1d5
Added missing parameter
ronchi-oss 1656693
Add comprehensive unit tests for Akamai metrics functionality
abdullah-karatas d840ef1
fix: use switch statement instead of if-else for datacenter ID compar…
abdullah-karatas 815416f
fix: handle Akamai historical data without explicit timestamps
abdullah-karatas 866f917
fix: remove unused extractMetricName function to satisfy linter
abdullah-karatas 52a4935
fix: add nil check for agent in PendingSync to prevent test panics
abdullah-karatas a62fe12
refactor: remove non-functional unit tests per team feedback
abdullah-karatas 1bc5e05
fix: resolve Akamai agent startup issues for RPC communication
abdullah-karatas ea94163
fix: prevent panic when Akamai dataRow has empty datacenters array
abdullah-karatas ec51ca6
Merge remote-tracking branch 'origin/main' into add-unit-tests-akamai…
abdullah-karatas b3bf1a8
Merge upstream main into add-unit-tests-akamai-metrics
abdullah-karatas 2315d6b
fix: correct CidrBlocksController initialization after merge
abdullah-karatas f92a9b3
fix: remove duplicate restapi/** entry in REUSE.toml
abdullah-karatas e1b8dcc
refactor: remove unused NewCidrBlocksController function
abdullah-karatas bbb2121
style: remove redundant akamai import alias
abdullah-karatas c0351c4
style: remove redundant akamaiAgent import alias
abdullah-karatas 1d42796
refactor: remove redundant global akamaiAgent and standalone RPC hand…
abdullah-karatas 028c5a5
refactor: remove unused GetDNSMetricsAkamai RPC method
abdullah-karatas f72ecfc
fix: remove unused imports after GetDNSMetricsAkamai removal
abdullah-karatas 48edb0e
chore: remove accidentally committed test files
abdullah-karatas 8b2ccb3
fix: address code review feedback in akamai driver
abdullah-karatas 2eff6ac
Merge branch 'main' into add-unit-tests-akamai-metrics
AbdullahKaratas 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
63 changes: 29 additions & 34 deletions
63
client/metrics/get_metrics_akamai_total_dns_requests_parameters.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.