diff --git a/clt_tests/tests/plain-indexes-all.rep b/clt_tests/tests/plain-indexes-all.rep deleted file mode 100644 index 7c2e313..0000000 --- a/clt_tests/tests/plain-indexes-all.rep +++ /dev/null @@ -1,52 +0,0 @@ -You can use regex in the output sections. -More info here: https://github.com/manticoresoftware/clt#refine -Time taken for test: 63705ms -––– input ––– -(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null -––– output ––– -––– duration: 3ms (0.00%) ––– -––– input ––– -if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi -––– output ––– -Done -––– duration: 2015ms (3.16%) ––– -––– input ––– -docker ps -––– output ––– -CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -––– duration: 41ms (0.06%) ––– -––– input ––– -docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $? -––– output ––– -0 -––– duration: 60254ms (94.58%) ––– -––– input ––– -docker run -d -e CREATE_PLAIN_TABLES=1 --name manticore -v $(pwd)/clt_tests/tests/base/manticore-indexer-all.conf:/etc/manticoresearch/manticore.conf manticoresoftware/manticore:current -––– output ––– -3d57d33a2d7b0f323a1146914bc547cde2db7d104418274b139eef7e3609683f -––– duration: 760ms (1.19%) ––– -––– input ––– -if timeout 5 grep -qm1 'accepting connections' <(docker logs -f manticore); then echo 'accepting connections'; else echo 'Manticore failed to start properly in 10 seconds'; fi -––– output ––– -accepting connections -––– duration: 521ms (0.82%) ––– -––– input ––– -docker exec manticore mysql -e "SHOW TABLES\G;" -––– output ––– -*************************** 1. row *************************** -Index: idx1 -Type: local -––– duration: 49ms (0.08%) ––– -––– input ––– -docker exec manticore mysql -e "SELECT * FROM idx1\G;" -––– output ––– -*************************** 1. row *************************** -id: 1 -f: abc -*************************** 2. row *************************** -id: 2 -f: abc -*************************** 3. row *************************** -id: 3 -f: abc abc -––– duration: 62ms (0.10%) ––– diff --git a/clt_tests/tests/test-postgres-docker.rec b/clt_tests/tests/test-postgres-docker.rec index e46cd0b..8545824 100644 --- a/clt_tests/tests/test-postgres-docker.rec +++ b/clt_tests/tests/test-postgres-docker.rec @@ -8,7 +8,7 @@ docker run -d --name postgres --network app-network -e POSTGRES_USER=postgres -e ––– output ––– 0 ––– input ––– -sleep 5; timeout 30 grep -m2 'database system is ready to accept connections' <(docker logs -f postgres 2>&1) +timeout 35 grep -m2 'database system is ready to accept connections' <(docker logs -f postgres 2>&1) ––– output ––– #!/\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{3}/!# UTC [%{NUMBER}] LOG: database system is ready to accept connections #!/\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{3}/!# UTC [%{NUMBER}] LOG: database system is ready to accept connections diff --git a/clt_tests/tests/test-postgres-docker.rep b/clt_tests/tests/test-postgres-docker.rep deleted file mode 100644 index df1bdc8..0000000 --- a/clt_tests/tests/test-postgres-docker.rep +++ /dev/null @@ -1,65 +0,0 @@ -You can use regex in the output sections. -More info here: https://github.com/manticoresoftware/clt#refine -Time taken for test: 130986ms -––– input ––– -(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null -––– output ––– -––– duration: 11ms (0.01%) ––– -––– input ––– -if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi -––– output ––– -Done -––– duration: 2075ms (1.58%) ––– -––– input ––– -docker ps -––– output ––– -CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -––– duration: 21ms (0.02%) ––– -––– input ––– -docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $? -––– output ––– -0 -––– duration: 108115ms (82.54%) ––– -––– input ––– -docker network create app-network --driver bridge > /dev/null; echo $? -––– output ––– -0 -––– duration: 90ms (0.07%) ––– -––– input ––– -docker run -d --name postgres --network app-network -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=qazQASD! -e POSTGRES_DB=api_db -p 5432:5432 -v $(pwd)/clt_tests/tests/base/init.sql:/docker-entrypoint-initdb.d/init.sql postgres:latest > /dev/null 2>&1; echo $? -––– output ––– -0 -––– duration: 15041ms (11.48%) ––– -––– input ––– -sleep 5; timeout 30 grep -m2 'database system is ready to accept connections' <(docker logs -f postgres 2>&1) -––– output ––– -2024-09-11 20:43:41.832 UTC [48] LOG: database system is ready to accept connections -2024-09-11 20:43:42.145 UTC [1] LOG: database system is ready to accept connections -––– duration: 5053ms (3.86%) ––– -––– input ––– -docker run -d -e CREATE_PLAIN_TABLES=1 --name manticore --network app-network -v $(pwd)/clt_tests/tests/base/manticore-indexer-postgres.conf:/etc/manticoresearch/manticore.conf manticoresoftware/manticore:current -––– output ––– -94514fa9f4d8715f12f6342894ad2eea4ae6abafd01b22ba2336a41d119a2932 -––– duration: 269ms (0.21%) ––– -––– input ––– -if timeout 60 grep -qm1 'accepting connections' <(docker logs -f manticore); then echo 'accepting connections'; else echo 'Manticore failed to start properly in 60 seconds'; fi -––– output ––– -accepting connections -––– duration: 222ms (0.17%) ––– -––– input ––– -docker exec manticore mysql -h0 -P9306 -e "SHOW TABLES\G;" -––– output ––– -*************************** 1. row *************************** -Index: text_idx -Type: local -––– duration: 43ms (0.03%) ––– -––– input ––– -docker exec manticore mysql -h0 -P9306 -e "SELECT * FROM text_idx\G;" -––– output ––– -*************************** 1. row *************************** -id: 1 -name: Element 1 -*************************** 2. row *************************** -id: 2 -name: Element 2 -––– duration: 46ms (0.04%) –––