Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-2167

NCMP integration tests intermittently failing due to health check

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • New Delhi Release
    • New Delhi Release
    • NCMP
    • None

      New NCMP integration tests are experiencing intermittent test failures due to the Mock DMI. When mockDmiServer.verify() is called, it may have received an unexpected request to http://mock-dmi-server/actuator/health, which is used for trust level - this is because there is a background thread running health checks.

      [ERROR] Failures: 
      [ERROR]   NcmpCmHandleCreateSpec.CM Handle retry after failed module sync.:193 Condition failed with Exception:
      
      mockDmiServer.verify()
      |             |
      |             java.lang.AssertionError: Some requests did not execute successfully.
      |              
      |             Failed request:
      |             GET http://mock-dmi-server/actuator/health, headers: [Accept:"application/json, text/plain, application/*+json"]
      |             java.lang.AssertionError: No further requests expected: HTTP GET http://mock-dmi-server/actuator/health
      |             3 request(s) executed:
      |             POST http://mock-dmi-server/dmi/v1/ch/ch-2/modules, headers: [Accept:"application/json, text/plain, application/*+json", Content-Type:"application/json", Content-Length:"25"]
      |             POST http://mock-dmi-server/dmi/v1/ch/ch-1/modules, headers: [Accept:"application/json, text/plain, application/*+json", Content-Type:"application/json", Content-Length:"25"]
      |             POST http://mock-dmi-server/dmi/v1/ch/ch-2/modules, headers: [Accept:"application/json, text/plain, application/*+json", Content-Type:"application/json", Content-Length:"25"]
      |              
      |             	at org.springframework.test.web.client.AbstractRequestExpectationManager.verifyInternal(AbstractRequestExpectationManager.java:156)
      |             	at org.springframework.test.web.client.AbstractRequestExpectationManager.verify(AbstractRequestExpectationManager.java:129)
      |             	at org.springframework.test.web.client.MockRestServiceServer.verify(MockRestServiceServer.java:116)
      |             	at org.onap.cps.integration.functional.NcmpCmHandleCreateSpec.CM Handle retry after failed module sync.(NcmpCmHandleCreateSpec.groovy:193)
      <org.springframework.test.web.client.MockRestServiceServer@215ce101 expectationManager=org.springframework.test.web.client.UnorderedRequestExpectationManager@196df0e2>

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: