Skip to content

How to unit test with a stage? #5789

Answered by Xuanwo
Xuanwo asked this question in Q&A
Jun 6, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

ctx.get_user_manager().add_stage() works.

let ctx = create_query_context().await?;
let user_stage_info = UserStageInfo {
    stage_name: "test".to_string(),
    stage_type: StageType::Internal,
    ..Default::default()
};
// Add an internal stage for testing.
ctx.get_user_manager()
    .add_stage(&ctx.get_tenant(), user_stage_info.clone(), false)
    .await?;

Replies: 1 comment 1 reply

Comment options

Xuanwo
Jun 6, 2022
Collaborator Author

You must be logged in to vote
1 reply
@sundy-li
Comment options

Answer selected by Xuanwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants