Commit Graph
2 Commits
  • test(charts): comprehensive test improvements and expansions
    Phase 1: Improve and expand existing test coverage with edge cases,
    validations, and regression tests.
    
    Changes:
    - Rename cache_persistence_test → persistence_test with full coverage
      for config, media, and cache persistence (60+ tests)
    - Rename service_ipv6_test → service_test with full service coverage
      including types, ports, annotations, LoadBalancer settings (80+ tests)
    - Rename startup_probe_test → probes_test covering all three probe types:
      startup, liveness, readiness with all configurations (60+ tests)
    - Expand networkpolicy_test with IPv4/IPv6 CIDR validations, egress
      restrictions, and edge cases (+13 tests)
    - Expand init_containers_test with full container spec and merge order
      validation (+5 tests)
    - Expand envfrom_test with prefix, optional, and multiple source
      combinations (+9 tests)
    
    Test coverage improvements:
    - All edge cases for persistence types (pvc, hostPath, emptyDir)
    - Service type validation (ClusterIP, NodePort, LoadBalancer, ExternalName)
    - Probe types validation (httpGet, tcpSocket, exec)
    - NetworkPolicy CIDR format validation (IPv4/IPv6)
    - Comprehensive regression tests for default behavior
    
    Total: 6 improved test files, 230+ new test cases
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    Signed-off-by: Aleksei Sviridkin <f@lex.la>
  • test(init): add tests for initContainers deprecation and extraInitContainers
    Add helm-unittest tests for init containers:
    - No init containers by default
    - extraInitContainers support (single and multiple)
    - Full container spec preservation (command, args, volumeMounts, securityContext)
    - Backward compatibility with deprecated initContainers parameter
    - Merging of initContainers and extraInitContainers
    - Correct ordering when both are specified
    
    Add NOTES.txt with init containers information:
    - Show count of configured init containers
    - Deprecation warning when old initContainers parameter is used
    - Migration guidance to extraInitContainers
    
    This fixes the critical bug where extraInitContainers didn't work and
    provides clear migration path from deprecated initContainers.
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    Signed-off-by: Aleksei Sviridkin <f@lex.la>