summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
AgeCommit message (Collapse)Author
2026-03-13Harden integration server startup checksPaul Buetow
2025-07-01perf: increase MaxConcurrentCats to 10 for integration testsPaul Buetow
- Changed MaxConcurrentCats from 2 to 10 in test configuration - TestDCat2 now completes in 11.93 seconds instead of 50 seconds (4.2x speedup) - Created test_server_complete.json with proper config structure - All integration tests now pass successfully The higher concurrency limit allows tests to process files much faster while still testing the queueing behavior with 100 files. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01fix: resolve turbo mode race condition and improve TestDCat2Paul Buetow
- Fixed race condition in periodicTruncateCheck by using context cancellation - Added turbo mode support to TestDCat2 server configuration - Removed problematic wait for pending files in readCommand.Start - Fixed potential panic when truncate channel is closed while goroutine is running The test now properly enables turbo mode on both client and server, preventing the timeout issues that occurred when only the client had turbo mode enabled. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-29test: remove dcat1d.txt from integration testsPaul Buetow
This test file contains no trailing newline, which DTail cannot preserve due to protocol limitations. The DTail protocol treats newlines as line delimiters and strips them during transmission, then re-adds them on display. This makes it impossible to distinguish between files with and without trailing newlines. This is expected behavior for a line-oriented log tool, not a bug. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25Add comprehensive test logging infrastructure to integration testsPaul Buetow
- Add test logging infrastructure to track command execution and file comparisons - Generate .log files for each test with command history and manual verification commands - Ensure all temporary test files use .tmp suffix for consistency - Clean up .tmp files before each test run (not after) for clean test starts - Update .gitignore to exclude generated test artifacts (.log, .query files) - Fix dserver test configurations to use .tmp suffix for output files - Fix expected test outputs for dgrep context tests This change improves test debugging and verification by providing detailed logs of what each test does and allows manual verification of test results. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-24Improve integration tests with colored output testsPaul Buetow
- Removed commented server mode code from TestDGrepStdin (stdin doesn't make sense with server mode) - Added TestDCat1Colors to test colored output in both serverless and server modes - Added TestDGrep1Colors to test colored output in both serverless and server modes - Fixed server metadata detection in colored output tests (look for "REMOTE" or "SERVER" without pipe) - Note: DMap colored output test was attempted but removed as DMap writes to CSV files, not stdout All integration tests now pass successfully. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-24Fix dcat tests for server mode and --plain flag handlingPaul Buetow
- Update dcat tests to use comma-separated file lists in server mode - Fix basehandler.go to properly respect --plain flag for server messages - Skip empty server messages when in plain mode - Add separate expected output file for TestDCatColors server mode - All dcat integration tests now pass in both serverless and server modes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2021-11-03Clarify the testPaul Buetow
2021-11-03Add integration test for long line splitting - Also fixed a bug regarding ↵Paul Buetow
this along the way
2021-11-02Bugfix: Dealing correctly with files without newline characters, also add ↵Paul Buetow
more tests
2021-10-31rename spartan mode to plain modePaul Buetow
2021-10-29Dont use relaxed SSH Auth mode anymore for integration testsPaul Buetow
2021-10-24Integration tests can run concurrently, so we now have unique TCP ports for eachPaul Buetow
2021-10-24integration tests use a different known_hosts path and also dont read any ↵Paul Buetow
external config files
2021-10-24Fix DCat color test.Paul Buetow
2021-10-19Set DTAIL_RUN_INTEGRATIONT_TEST to yes for integration testsPaul Buetow
2021-10-15Execute test directories individuallyPaul Buetow
2021-10-15add dcat color output testPaul Buetow
2021-10-15refactorPaul Buetow
2021-10-13add another dcat integration test - catting 100 files at oncePaul Buetow
2021-10-11refactorPaul Buetow
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-10add dtail health check unit test.Paul Buetow
2021-10-09refactorPaul Buetow
2021-10-02add dcat testPaul Buetow