@@ -464,8 +464,7 @@ pub(crate) mod test_support {
464464 try_validate ( zk) . expect ( "validate should succeed for the test fixture" )
465465 }
466466
467- /// Runs the real validate step with a single TLS client-auth `AuthenticationClass`, mirroring
468- /// the `use-client-auth-tls` kuttl scenario.
467+ /// Runs the real validate step with a single TLS client-auth `AuthenticationClass`.
469468 pub fn validated_cluster_with_client_auth ( zk : & v1alpha1:: ZookeeperCluster ) -> ValidatedCluster {
470469 try_validate_with_auth (
471470 zk,
@@ -778,43 +777,16 @@ mod tests {
778777 fn test_vector_config_absent_when_agent_disabled ( ) {
779778 // Default logging has the Vector agent disabled, so no `vector.yaml` is added to the
780779 // ConfigMap. Pins the negative branch alongside `test_vector_agent_adds_vector_config`.
781- let zookeeper_yaml = r#"
782- apiVersion: zookeeper.stackable.tech/v1alpha1
783- kind: ZookeeperCluster
784- metadata:
785- name: simple-zookeeper
786- spec:
787- image:
788- productVersion: "3.9.5"
789- servers:
790- roleGroups:
791- default:
792- replicas: 3
793- "# ;
794- let cm = build_config_map ( zookeeper_yaml) . data . unwrap ( ) ;
780+ let cm = build_config_map ( SERVER_TLS_YAML ) . data . unwrap ( ) ;
795781 assert ! ( !cm. contains_key( "vector.yaml" ) ) ;
796782 }
797783
798784 #[ test]
799785 fn test_logback_default_structure ( ) {
800786 // Pins the structural parts of the rendered `logback.xml` that this operator controls (log
801- // dir + file name, console conversion pattern, max file size, appender wiring). This is the
802- // source of truth that used to live in the kuttl smoke `14-assert` heredoc; the levels are
803- // covered separately by `test_logback_renders_zookeeper_container_log_levels`.
804- let zookeeper_yaml = r#"
805- apiVersion: zookeeper.stackable.tech/v1alpha1
806- kind: ZookeeperCluster
807- metadata:
808- name: simple-zookeeper
809- spec:
810- image:
811- productVersion: "3.9.5"
812- servers:
813- roleGroups:
814- default:
815- replicas: 3
816- "# ;
817- let cm = build_config_map ( zookeeper_yaml) . data . unwrap ( ) ;
787+ // dir + file name, console conversion pattern, max file size, appender wiring). The levels
788+ // are covered separately by `test_logback_renders_zookeeper_container_log_levels`.
789+ let cm = build_config_map ( SERVER_TLS_YAML ) . data . unwrap ( ) ;
818790 let logback = cm. get ( "logback.xml" ) . unwrap ( ) ;
819791
820792 // Console appender + the operator's conversion pattern.
@@ -928,18 +900,14 @@ mod tests {
928900 }
929901
930902 // ---------------------------------------------------------------------------------------------
931- // TLS x client-auth matrix (candidate #1 in unit-tests.md) .
903+ // TLS x client-auth matrix.
932904 //
933- // These four tests own what the kuttl smoke `14-assert` `zoo.cfg` heredoc used to assert across
934- // the `use-server-tls` x `use-client-auth-tls` scenario matrix: the exact set of `zoo.cfg`
935- // properties and the ports/`ssl.*` lines that vary with TLS and client mTLS. They assert on the
936- // structured key/value map produced by the pure `zoo_cfg::build` seam (via `zoo_cfg_map`) rather
937- // than re-parsing rendered text, so key sets and values are compared exactly. Asserting the full
938- // key set catches accidentally added *or* removed properties, and makes the negative cases
939- // (`ssl.clientAuth` absent, etc.) fall out of the set equality instead of needing brittle
940- // `!contains` checks. Only two fixtures are needed: server TLS on vs. off. Client mTLS is layered
941- // on via `validated_cluster_with_client_auth`, which the previous `new_for_tests()` path could
942- // not reach.
905+ // These four tests own the `zoo.cfg` TLS/client-mTLS matrix the kuttl smoke `14-assert` heredoc
906+ // used to check: the exact property key set plus the ports/`ssl.*` lines that vary with server
907+ // TLS and client mTLS. They assert on the structured map from the pure `zoo_cfg::build` seam
908+ // (via `zoo_cfg_map`), so the full key set compares exactly: a missing or extra property fails
909+ // set equality, with no brittle `!contains` checks. Server TLS is toggled by the two fixtures;
910+ // client mTLS is layered on via `validated_cluster_with_client_auth`.
943911 // ---------------------------------------------------------------------------------------------
944912
945913 /// Server role group with default TLS (server `AuthenticationClass` off, server TLS on).
@@ -1112,8 +1080,8 @@ mod tests {
11121080 }
11131081
11141082 /// `server.<myid>` quorum lines are rendered into the per-rolegroup `zoo.cfg` with
1115- /// `myidOffset` applied and colons escaped, aggregated across *all* server role groups. Mirrors
1116- /// the kuttl smoke `14-assert` `server.N` lines (primary offset 10, secondary offset 20).
1083+ /// `myidOffset` applied and colons escaped, aggregated across *all* server role groups
1084+ /// (primary offset 10, secondary offset 20).
11171085 #[ test]
11181086 fn test_server_lines_use_myid_offset_across_rolegroups ( ) {
11191087 let zk = minimal_zk (
0 commit comments