(id: EUI64)
| 592 | } |
| 593 | |
| 594 | pub async fn create_gateway(id: EUI64) -> Gateway { |
| 595 | let tenant_id = { |
| 596 | let t = storage::tenant::test::create_tenant().await; |
| 597 | t.id |
| 598 | }; |
| 599 | |
| 600 | let gw = Gateway { |
| 601 | gateway_id: id, |
| 602 | tenant_id, |
| 603 | name: "gw".into(), |
| 604 | ..Default::default() |
| 605 | }; |
| 606 | |
| 607 | create(gw).await.unwrap() |
| 608 | } |
| 609 | |
| 610 | #[tokio::test] |
| 611 | async fn test_gateway() { |