#[cfg(feature = "azure-function")]
mod azure_tests {
#[test]
fn test_event_envelope_serialization() {
use serde_json::json;
#[derive(serde::Serialize)]
struct EventEnvelope {
signal_type: String,
table: String,
payload: serde_json::Value,
}
let envelope = EventEnvelope {
signal_type: "logs".to_string(),
table: "logs".to_string(),
payload: json!({"message": "test"}),
};
let json = serde_json::to_string(&envelope).unwrap();
assert!(json.contains("signal_type"));
assert!(json.contains("logs"));
}
}