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

test: modify to validate edge accepts non strings #514

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions server/src/frontend_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ mod tests {

#[tokio::test]
#[traced_test]
async fn can_handle_custom_context_fields_with_post() {
async fn can_handle_custom_context_fields_with_post_ignoring_non_string_values() {
let client_features_with_custom_context_field =
crate::tests::features_from_disk("../examples/with_custom_constraint.json");
let auth_key = "default:development.secret123".to_string();
Expand Down Expand Up @@ -1574,7 +1574,7 @@ mod tests {
.uri("/api/frontend")
.insert_header(ContentType::json())
.insert_header(("Authorization", auth_key.clone()))
.set_json(json!({ "properties": {"companyId": "bricks"}}))
.set_json(json!({ "properties": {"companyId": "bricks", "myId": 1234}}))
.to_request();
let result: FrontendResult = test::try_call_and_read_body_json(&app, req)
.await
Expand Down
Loading