Uploaded image for project: 'Clamp'
  1. Clamp
  2. CLAMP-946

Unit test fails due to test cleanup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Guilin Release
    • 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.

            liamfallon liamfallon
            liamfallon liamfallon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: