Skip to content
Snippets Groups Projects
Commit cc343d31 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

win test

parent ffd48f2c
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,20 @@ c:\opt\consul\nomad run nginx.nmd
ping 1.0.0.0 -n 10 -w 100 > nul
for /l %%x in (1, 1, 10) do echo db.data.insert({"_id":%%x,"size":100,"name":"%%x","lastchange":1,"source":"none","buf_id":0,"meta":{"test":10}}) | %mongo_exe% %database_name% || goto :error
%1 127.0.0.1:8400 %database_name% %token_test_run% single || goto :error
echo db.dropDatabase() | %mongo_exe% %database_name%
for /l %%x in (1, 1, 10) do (
set images={"_id":1,"size":100,"name":"%%x_1","lastchange":1,"source":"none","buf_id":0,"meta":{"test":10}}
for /l %%j in (2, 1, 3) do (
set "images=%%images,{"_id":%%j,"size":100,"name":"%%x_%%j","lastchange":1,"source":"none","buf_id":0,"meta":{"test":10}}"
)
echo db.data.insert({"_id":$xx,"size":3,"images":[%%images]}) | %mongo_exe% %database_name% || goto :error
)
%1 127.0.0.1:8400 %database_name% %token_test_run% dataset || goto :error
%1 127.0.0.1:8400 %database_name% %token_test_run% || goto :error
goto :clean
......@@ -25,3 +36,4 @@ c:\opt\consul\nomad stop discovery
c:\opt\consul\nomad stop broker
c:\opt\consul\nomad stop nginx
echo db.dropDatabase() | %mongo_exe% %database_name%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment