When running only the package org.etsi.osl.services.api:
ResourceOrderIntegrationTest
testResourceOrderCreate --> java.lang.AssertionError: Status expected:<200> but was:<500>
AlarmManagementIntegrationTest
testAlarmCreateAndUpdateRoutes --> java.lang.NullPointerException: Cannot invoke "org.etsi.osl.tmf.am642.model.Alarm.getAckState()" because "alarm" is null
org.opentest4j.AssertionFailedError: expected: 2 but was: 4
testVINNISBT
org.opentest4j.AssertionFailedError: expected: 2 but was: 4
testBundledSpec
org.opentest4j.AssertionFailedError: expected: 5 but was: 7
addCatalogAddCategory
org.opentest4j.AssertionFailedError: expected: 2 but was: 4
testCloneSpec
org.opentest4j.AssertionFailedError: expected: 1 but was: 3
_countDefaultProperties
org.opentest4j.AssertionFailedError: expected: 1 but was: 3
testSpecAttachment
org.opentest4j.AssertionFailedError: expected: 2 but was: 4
testExternhalSpecUpdate
org.opentest4j.AssertionFailedError: expected: 2 but was: 4
testSpecAttributesUpdate
org.opentest4j.AssertionFailedError: expected: 2 but was: 4
testSpecDelete
org.opentest4j.AssertionFailedError: expected: 1 but was: 3
testGSTUpdate
org.opentest4j.AssertionFailedError: expected: 1 but was: 3
All assertion errors have an offset of 2. Since when running the test on its own does not fail, I guess the DB instead of being initialised, is updated with inserting again the initial resources of the test.
Similar errors could be found in other test suites as well.
These were fixed by adding @AutoConfigureTestDatabase.
After fixing these errors when running all the tests together we got:
passed (✓)
failed (X)
290
25
ResourceOrderIntegrationTest
testResourceOrderCreate --> java.lang.AssertionError: Status expected:<200> but was:<500>
package org.etsi.osl.services.service;
ServiceRepoServiceTest
All tests due to java errors.
@ktrantzas Since all remaining errors seem to be due to more intricate reasons, I suggest to create 2 different issues, one for ResourceOrderIntegrationTest and one for ServiceRepoServiceTest in order to further investigate them.