| | |
| | | .expect("bound json"); |
| | | assert_eq!("controlled_fixture", with_metadata["inputSourceCategory"]); |
| | | assert_eq!("fixture-01", with_metadata["clientFixtureSequence"]); |
| | | let next = AudioIngressMetadata { |
| | | input_source_category: "controlled_fixture".to_string(), |
| | | client_fixture_sequence: "fixture-02".to_string(), |
| | | }; |
| | | let next_line = session_start_line( |
| | | "call-001", |
| | | "trace-001", |
| | | "turn-0002", |
| | | "nonce-001", |
| | | Some(&next), |
| | | ) |
| | | .expect("next bound session line"); |
| | | let next_value: serde_json::Value = serde_json::from_slice(&next_line).expect("next json"); |
| | | assert_eq!("fixture-02", next_value["clientFixtureSequence"]); |
| | | assert_ne!( |
| | | with_metadata["clientFixtureSequence"], |
| | | next_value["clientFixtureSequence"] |
| | | ); |
| | | } |
| | | |
| | | #[test] |