nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
914 stars 275 forks source link

Implements #6208 #6209

Closed rogin closed 4 months ago

rogin commented 4 months ago

Enable reading the server name and environment name from environment variables. Utilized code from @jonbartels plugin.

rogin commented 4 months ago

Used a freshly built server under /server/setup.

Start server with java -jar .\mirth-server-launcher.jar, and bring the server down after each test.

Test 1: No envvars set. Start server. Complete the admin change password modal. Validate values are blank in UI. Test 2: set envvar _MC_SERVERNAME = 'Staging'. Start server. Validate its value in UI. Test 3: set envvar _MC_ENVNAME = 'Sys-001'. Start server. Validate both values in UI. Test 4: set envvar _MC_SERVERNAME = 'Prod', _MC_ENVNAME = 'Sys-002'. Start server. Validate both values in UI. Test 5: Unset envvars _MC_SERVERNAME and _MC_ENVNAME. Start server. Validate both values in UI are same used in test 4 (as they've been stored in DB).