Uploaded image for project: 'Rest Proxy'
  1. Rest Proxy
  2. RESTPROXY-2

UoE - REST Proxy module: Testing Setup

XMLWordPrintable

      Created a testing setup for rest-proxy module, using testcontainer with toxiproxy tool. We have 2 containers one to mock the API service and one toxiproxy container to connect to it and add some custom features like add latency, timeouts during the response. Right now we have the following unit test:

      • Normal execution, through the containers with a successful response.
      • Normal execution adding latency, successful response but checking that the response take more time due to the latency that we have added.
      • Error execution when there is no a definition provider, here we verify that the call to the containers is not done.
      • Error when the definition provider is not valid, here we verify that the call to the containers is not done.

        Acceptance criteria

              eespana Enrique Espana
              plendenmann Pierre-Yves Lendenmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoR