Opened 7 years ago

Last modified 4 years ago

#15102 closed defect

Mock HTTP unit tests — at Initial Version

Reported by: Don-vip Owned by: team
Priority: normal Milestone: 17.08
Component: Unit tests Version:
Keywords: http mock Cc:

Description

We have several unit tests making real HTTP connections to real servers.
This causes quite a lot of problems:

  • HTTP connections are slow
  • Unit tests do not work without Internet access
  • Frequent fake regressions on Jenkins when a website is unavailable or does not respond in the allowed timeout

We should mock the HTTP answers to improve build reliability and performance.

Several solutions are listed on [StackOverflow https://stackoverflow.com/q/606352/2257172]

Change History (0)

Note: See TracTickets for help on using tickets.