-
Bug
-
Resolution: Done
-
Medium
-
Guilin Release
When building CLAMP, a test failure was noticed on the LoopRepositoriesItCase test case.
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.256 s <<< FAILURE! - in org.onap.clamp.loop.LoopRepositoriesItCase
[ERROR] crudTest Time elapsed: 0.254 s <<< FAILURE!
org.junit.ComparisonFailure: expected:<"[Not found]"> but was:<"[admin]">
at org.onap.clamp.loop.LoopRepositoriesItCase.crudTest(LoopRepositoriesItCase.java:230)
The root cause was because the AuthorizationControllerItCase does not clean up its test configuration. When the test order randomly changed, this test was run before the LoopRepositoriesItCase test case, causing that test case to fail due to test data residue.