Provide random responses in mocked getdata (JS)
allanbowe opened this issue · comments
Allan Bowe commented
Currently our mocked getdata response is static: https://github.com/sasjs/minimal-seed-app/blob/main/sasjs/mocks/services/common/getdata.js
We should randomly provide 2 or 3 different responses.
Actual responses can be obtained by deploying the app to SASjs Server with 'sas' as the primary RUN_TIMES setting.
We should sanitise any environment specific outputs before committing to the repo, eg:
"SYSUSERID":"sasjsuser",
"MF_GETUSER":"SASjs User",
"SYSSITE":"0",
"SYSTCPIPHOSTNAME":"https://sasjs.com",
"SYSVLONG":"",
"SYSHOSTINFOLONG":""