(
env: &PocketIc,
control_panel_id: Principal,
user_id: Principal,
day: usize,
i: usize,
)
| 825 | } |
| 826 | |
| 827 | fn deploy_station( |
| 828 | env: &PocketIc, |
| 829 | control_panel_id: Principal, |
| 830 | user_id: Principal, |
| 831 | day: usize, |
| 832 | i: usize, |
| 833 | ) -> ApiResult<DeployStationResponse> { |
| 834 | let deploy_station_args = DeployStationInput { |
| 835 | name: format!("station_{user_id}_{day}_{i}"), |
| 836 | admins: vec![DeployStationAdminUserInput { |
| 837 | identity: user_id, |
| 838 | username: "admin".to_string(), |
| 839 | }], |
| 840 | associate_with_caller: Some(AssociateWithCallerInput { labels: vec![] }), |
| 841 | subnet_selection: None, |
| 842 | }; |
| 843 | update_candid_as::<_, (ApiResult<DeployStationResponse>,)>( |
| 844 | env, |
| 845 | control_panel_id, |
| 846 | user_id, |
| 847 | "deploy_station", |
| 848 | (deploy_station_args,), |
| 849 | ) |
| 850 | .unwrap() |
| 851 | .0 |
| 852 | } |
no outgoing calls
no test coverage detected