Skip to content

Commit f5b7ecd

Browse files
committed
test: Fix various doc tests
1 parent ff8f0e0 commit f5b7ecd

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

crates/stackable-operator/src/cli/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub const AUTHOR: &str = "Stackable GmbH - [email protected]";
4343
/// use clap::Parser;
4444
///
4545
/// #[derive(Parser)]
46-
/// enum Command {
46+
/// enum CustomCommand {
4747
/// /// Print hello world message
4848
/// Hello,
4949
///

crates/stackable-webhook/src/servers/conversion.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,21 @@ impl ConversionWebhookServer {
126126
/// use stackable_operator::{
127127
/// kube::Client,
128128
/// crd::s3::{S3Connection, S3ConnectionVersion},
129-
/// cli::ProductOperatorRun,
129+
/// cli::{RunArguments, MaintenanceOptions},
130130
/// };
131131
///
132132
/// # async fn test() {
133133
/// // Things that should already be in you operator:
134134
/// const OPERATOR_NAME: &str = "product-operator";
135135
/// let client = Client::try_default().await.expect("failed to create Kubernetes client");
136-
/// let ProductOperatorRun {
136+
/// let RunArguments {
137137
/// operator_environment,
138-
/// disable_crd_maintenance,
138+
/// maintenance: MaintenanceOptions {
139+
/// disable_crd_maintenance,
140+
/// ..
141+
/// },
139142
/// ..
140-
/// } = ProductOperatorRun::parse();
143+
/// } = RunArguments::parse();
141144
///
142145
/// let crds_and_handlers = [
143146
/// (

0 commit comments

Comments
 (0)