I am getting the following integration test failures when running mvn clean install on the SDK.
[ERROR] BuildDistroIntegrationTest.testBuildDistroFromDistroFile:21->AbstractSdkIntegrationTest.assertFilePresent:222->AbstractSdkIntegrationTest.assertPathPresent:244 Expected /home/wikum/Documents/openmrs-sdk/integration-tests/target/test-classes/integration-test/target/web/frontend/index.html to be an existing file or directory
Expected: an existing file or directory
but: does not exist
[ERROR] SetupIntegrationTest.setup_shouldInstallServerFromDistroPropertiesDir:165->AbstractSdkIntegrationTest.assertPathPresent:244 Expected /home/wikum/Documents/openmrs-sdk/integration-tests/target/test-classes/integration-test/49914bf5-71d7-4755-a2e7-f597502f39d5/frontend/index.html to be an existing file or directory
Expected: an existing file or directory
but: does not exist
Could you give me some guidance on how to fix this issue?
Those tests may require a version of Node (16) to be installed on your computer and the default on the $PATH. (They run a somewhat outdated version of the CLI and there were some breaking changes between Node 16 and Node 18 to do with peer dependency resolution and the MD4 hash).
Then i think try out @ibacher’s suggestion
I also faced the same issue as i was trying out these project but i remember switching java versions
cc @dkayiwa
I ran the server and tried to access http://localhost:8080/openmrs/spa/login. But I am getting a 404 error.
When I tried to deploy O3 with Tomcat I got stuck in the same place.
Am I missing some steps? Any leads are highly appreciated.
Also, if you have the output of the commands you ran, that’s likely to have something very useful. It may also be necessary to run more up-to-date versions of things. Core 3.3.1 is from 2020 and a lot has changed since then.
@openmrs/esm-login-app should be the same version as core, but, you probably want the latest versions. The latest versions running on dev3 can be found in this link. Alternatively, the last released versions (what runs on test3) can be found in this link.
I updated and built the distro.properties file. After that when I tried localhost:8080/openmrs/spa/login I got the following error message.
No mapping for GET /openmrs/importmap.json
So I pasted a copy of importmap.json to /opt/tomcat/webapps/openmrs. After that /spa/login works fine but when it continues to the home page I am getting the following errors.
I have also seen replacing the version with next, ie *@openmrs/esm-outpatient-app=4.4.1-pre.1557 with *@openmrs/esm-outpatient-app=next but i don’t have alot of information about it