Tags: axonops/cqlai
Tags
Add SSL host verification and insecure skip verify CLI flags (#77) * Add --no-ssl-host-verification and --no-ssl-insecure-skip-verify CLI flags Expose the SSL hostVerification and insecureSkipVerify config options via CLI flags and environment variables (CQLAI_NO_SSL_HOST_VERIFICATION, CQLAI_NO_SSL_INSECURE_SKIP_VERIFY). CLI flags take precedence over env vars, which take precedence over the config file. * Add BDD tests for --no-ssl-host-verification and --ssl-insecure-skip-verify flags Godog feature file and step definitions covering: flag overrides config, env var applies when flag is unset, CLI flag takes precedence over env var, and nil-pointer semantics when neither is set. * Fix cqlshrc SSL boolean values not being parsed case-insensitively Python's cqlsh writes True/False with capital letters. Our comparisons were case-sensitive so 'ssl = True' never enabled SSL from [connection], and 'validate = False' fell into the else branch and incorrectly set HostVerification=true instead of InsecureSkipVerify=true. Fix by using strings.ToLower before comparing boolean values in loadCQLSHRC.
Fix CLI option bugs, add cqlsh compatibility flags, and improve docs (#… …75) * Fix CLI option bugs, add cqlsh compatibility, and improve documentation - Fix default value detection using pflag.Changed() instead of == default - Add positional argument support (cqlai [host] [port]) for cqlsh compat - Implement $CQLSH_RC env var support as documented in README - Fix password prompt precedence: env var checked before interactive prompt - Add --format validation at parse time (ascii, json, csv, table) - Add --ssl flag for SSL/TLS connections without config file - Add --consistency flag with validation for batch automation - Wire --page-size through to interactive mode via ConnectionOptions - Change version short flag from -v to -V to free -v for future verbose - Pass consistency to batch mode SessionOptions (was missing) - Expand environment variable documentation from ~10 to 30+ entries - Update README and BATCH_MODE.md with new flags and usage examples * Update Japanese documentation to match English changes - Add --ssl, --consistency flags and positional args to README_jp.md CLI table - Change -v to -V for version short flag in README_jp.md - Expand env var section from ~9 to 30+ entries in README_jp.md - Add SSL, consistency, and positional arg examples to BATCH_MODE_jp.md * Fail fast parsisng args
Cluster metadata COMPLETE - 121 methods, 70 tests (61 unit + 9 integr… …ation), all passing, RefreshKeyspace implemented
Unit tests updated for all implementation changes Added 7 new unit tests: - Deterministic rendering (columns, maps, UDTs, sets) - WHERE IN operator - Idempotency verification Fixed 3 outdated tests: - BATCH semicolons (was wrong, now correct) - Set element ordering (alphabetical) - Numeric set ordering (lexicographic) 238 unit tests pass Coverage for all implementation changes complete
Session End: CQL testing infrastructure complete All 78 INSERT tests have CQL assertions (167 total) Deterministic rendering implemented TestMain pattern working 9 bugs found and fixed 245 unit tests passing 96 INSERT scenarios documented but not implemented BLOCKER IDENTIFIED: 34 tests require cluster metadata (schema awareness) - Primary key validation (15) - BATCH cross-partition (16) - Static columns (5) - Error validation (10) NEXT SESSION: Implement cluster metadata manager (internal/cluster/) Requirements in: claude-notes/cluster-metadata-requirements.md Resume with: CLUSTER_METADATA_START_PROMPT.txt AFTER CLUSTER METADATA: Resume testing with: RESUME_PROMPT_TESTING.md Implement 96 missing scenarios Achieve 100% INSERT coverage
PreviousNext