Skip to content
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

Extract and use real-world data in tests #138

Merged
merged 6 commits into from
Nov 11, 2024
Merged

Extract and use real-world data in tests #138

merged 6 commits into from
Nov 11, 2024

Conversation

adam-cattermole
Copy link
Member

@adam-cattermole adam-cattermole commented Nov 8, 2024

  • Also update the cel-interpreter explicitly to grab this change (Added missing timestamp macros clarkmcc/cel-rust#106)
  • The data we expect when sending GRPC requests needed updating as there were changes to the request.scheme, the request.time as well as the ordering of some headers

@adam-cattermole adam-cattermole self-assigned this Nov 8, 2024
@@ -10,7 +10,7 @@ use crate::data;
use crate::data::PropertyPath;
use crate::data::{AttributeValue, Predicate};
use crate::service::GrpcService;
use cel_interpreter::functions::duration;
use cel_interpreter::functions::time::duration;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh... yeah! Blame me for that one 😢

src/data/cel.rs Outdated Show resolved Hide resolved
@adam-cattermole adam-cattermole force-pushed the test-data branch 2 times, most recently from fd23df0 to c58d7ed Compare November 8, 2024 11:17
Copy link
Member

@didierofrivia didierofrivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@adam-cattermole adam-cattermole merged commit 76fa368 into main Nov 11, 2024
13 checks passed
@adam-cattermole adam-cattermole deleted the test-data branch November 11, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants