@@ -415,67 +415,4 @@ mod tests {
415
415
panic ! ( "must return RequiredFileMissing when file was not found" )
416
416
}
417
417
}
418
-
419
- #[ test]
420
- fn product_operator_run_watch_namespace ( ) {
421
- // cli with namespace
422
- let opts = ProductOperatorRun :: parse_from ( [
423
- "run" ,
424
- "--product-config" ,
425
- "bar" ,
426
- "--watch-namespace" ,
427
- "foo" ,
428
- "--operator-namespace" ,
429
- "stackable-operators" ,
430
- "--operator-service-name" ,
431
- "foo-operator" ,
432
- "--kubernetes-node-name" ,
433
- "baz" ,
434
- ] ) ;
435
- assert_eq ! (
436
- opts,
437
- ProductOperatorRun {
438
- product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
439
- watch_namespace: WatchNamespace :: One ( "foo" . to_string( ) ) ,
440
- cluster_info: KubernetesClusterInfoOptions {
441
- kubernetes_cluster_domain: None ,
442
- kubernetes_node_name: "baz" . to_string( )
443
- } ,
444
- telemetry: Default :: default ( ) ,
445
- operator_environment: OperatorEnvironmentOptions {
446
- operator_namespace: "stackable-operators" . to_string( ) ,
447
- operator_service_name: "foo-operator" . to_string( ) ,
448
- }
449
- }
450
- ) ;
451
-
452
- // no cli / no env
453
- let opts = ProductOperatorRun :: parse_from ( [
454
- "run" ,
455
- "--product-config" ,
456
- "bar" ,
457
- "--operator-namespace" ,
458
- "stackable-operators" ,
459
- "--operator-service-name" ,
460
- "foo-operator" ,
461
- "--kubernetes-node-name" ,
462
- "baz" ,
463
- ] ) ;
464
- assert_eq ! (
465
- opts,
466
- ProductOperatorRun {
467
- product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
468
- watch_namespace: WatchNamespace :: All ,
469
- cluster_info: KubernetesClusterInfoOptions {
470
- kubernetes_cluster_domain: None ,
471
- kubernetes_node_name: "baz" . to_string( )
472
- } ,
473
- telemetry: Default :: default ( ) ,
474
- operator_environment: OperatorEnvironmentOptions {
475
- operator_namespace: "stackable-operators" . to_string( ) ,
476
- operator_service_name: "foo-operator" . to_string( ) ,
477
- }
478
- }
479
- ) ;
480
- }
481
418
}
0 commit comments