While working on I noticed that our performance test server does not have demo data. The problem also occurs if we want to deploy ref-distro locally, with demo-data-start.sh bash script.
I have checked locally that if we run ref-distro with docker-compose up command and then manually run docker image with demo data as described here it works correctly.
The return value of total elements is 6(in case of orders endpoint). It should be much more.
Locally for developers:
Run ref-distro with ./demo-data-start.sh
Get into postgres database container (docker exec -it container_id /bin/bash)
Log in with database username and password
Connect to correct database (open_lmis)
Check number of records for any table which is included in demo-data image (requisitions/orders etc).
Demo data is loaded correctly, locally and on performance test server.
In addition to fixing the issue, needs to be tested as a part of this ticket - i.e. this ticket can only be closed after 4128 is tested