test(rust): fix access controls for `ockam_api` identity test`
@@ -4,7 +4,7 @@ use ockam_api::identity::IdentityService;
use ockam_core::api::{Request, Response, Status};
use ockam_core::compat::rand::random;
use ockam_core::errcode::{Kind, Origin};
-use ockam_core::{route, AsyncTryClone, Error, LocalSourceOnly, Result};
+use ockam_core::{route, AsyncTryClone, Error, LocalOnwardOnly, LocalSourceOnly, Result};
use ockam_identity::change_history::IdentityHistoryComparison;
use ockam_node::Context;
use ockam_vault::Vault;
@@ -161,14 +161,14 @@ async fn full_flow(ctx: &mut Context) -> Result<()> {
"1",
IdentityService::new(ctx, vault1.async_try_clone().await?).await?,
LocalSourceOnly,
- LocalSourceOnly,
+ LocalOnwardOnly,
)
.await?;
ctx.start_worker(
"2",
IdentityService::new(ctx, vault2.async_try_clone().await?).await?,
LocalSourceOnly,
- LocalSourceOnly,
+ LocalOnwardOnly,
)
.await?;
