[akamai] add api emulator for realistic testing - #9042
Conversation
🚀 Benchmarks reportTo see the full report comment with |
This simulates the Akamai SIEM API. It provides realistic validation of request signatures. It emulates the time and offset based queries by simulating a world in which a new event happens every 5 minutes. The offset cursor is simply the unix time in sec of the last returned event. This is a reproducer for the issues described in #9038. Those issues only occur on Elastic Agent < 8.11.0.
|
💚 Build Succeeded
History
|
efd6
left a comment
There was a problem hiding this comment.
It would be nice if we could have the emulator code in this repo and have it reviewed as well (I looked at it and it seems fine).
This was something I was debating with myself. I was thinking that perhaps it should be in some external elastic repo where we have CI and linting running specifically for Go code plus using our normal code review process. |
|
Package akamai - 2.22.0 containing this change is available at https://epr.elastic.co/search?package=akamai |



Proposed commit message
This simulates the Akamai SIEM API. It provides realistic validation of request signatures. It emulates the time and offset based queries by simulating a world in which a new event happens every 5 minutes. The offset cursor is simply the unix time in sec of the last returned event.
This is a reproducer for the issues described in #9038. Those issues only occur when the tests in this changeset run on Elastic Agent < 8.11.0.
Checklist
changelog.ymlfile.Related issues