Performance test server does not load all demo data

Description

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.

Reproduction steps

Perf test:

  1. Do GET request with admin token for any endpoint in https://perftest.openlmis.org (e. g. http://perftest.openlmis.org/api/orders )

  2. The return value of total elements is 6(in case of orders endpoint). It should be much more.

Locally for developers:

  1. Run ref-distro with ./demo-data-start.sh

  2. Get into postgres database container (docker exec -it container_id /bin/bash)

  3. Log in with database username and password

  4. Connect to correct database (open_lmis)

  5. Check number of records for any table which is included in demo-data image (requisitions/orders etc).

Expected Result

  • Demo data is loaded correctly, locally and on performance test server.

Acceptance criteria:

  • 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

Environment

None

Status

Assignee

Mateusz Wedeł

Reporter

Mateusz Wedeł

Labels

None

Story Points

5

Time tracking

40h

Sprint

None

Fix versions

Priority

Critical