(name: &str, collection: &str)
| 211 | use crate::event::cdc::stream_def::*; |
| 212 | |
| 213 | fn sample_def(name: &str, collection: &str) -> ChangeStreamDef { |
| 214 | ChangeStreamDef { |
| 215 | tenant_id: 1, |
| 216 | name: name.into(), |
| 217 | collection: collection.into(), |
| 218 | op_filter: OpFilter::all(), |
| 219 | format: StreamFormat::Json, |
| 220 | retention: RetentionConfig::default(), |
| 221 | compaction: CompactionConfig::default(), |
| 222 | webhook: crate::event::webhook::WebhookConfig::default(), |
| 223 | late_data: LateDataPolicy::default(), |
| 224 | kafka: crate::event::kafka::KafkaDeliveryConfig::default(), |
| 225 | owner: "admin".into(), |
| 226 | created_at: 0, |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | #[test] |
| 231 | fn register_and_lookup() { |
no outgoing calls