Harmonization of strategies for contract testing in microservices UI
Vu, Duy Anh (2022)
Vu, Duy Anh
2022
Bachelor's Programme in Science and Engineering
Informaatioteknologian ja viestinnän tiedekunta - Faculty of Information Technology and Communication Sciences
This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Hyväksymispäivämäärä
2022-05-17
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tuni-202204273997
https://urn.fi/URN:NBN:fi:tuni-202204273997
Tiivistelmä
In microservices world, a reliable continuous integration (CI) and continuous deployment (CD) contributes significantly to the delivery speed and the success of the product. One major contributor to the result of CI-CD pipeline is testing. Microservices consists of a number of small services communicating with each other through a defined interface. Different services might be managed by different teams and people, and thus, the agreed interfaces of the communication between services are potentially violated. A reliable way of testing is needed to prevent such situation.
Consumer-driven contract testing (CDC), a fast and reliable test method, is introduced to test the interface of the interaction between two services. The case study project is lacking of the interface testing, which usually leads to mismatch between the expectations of the two services in an interaction. There exists already some API route testing, but these tests do not help catch potential problems as mentioned. The thesis implementation replaces such test with CDC which cover the API route testing, communication interface, and even more.
As a new and immature test method, CDC needs to be written in a systematic and robust way to ensure a good outcome. The thesis proposes a set of practices or guideline for the case study project to help bring a systematic way of writing CDC. Some workflows for managing CDC are also introduced. In a big project, a common guideline is highly important to avoid the divergence in the way of working, which would lead to potential errors and bad quality product. It is important to note that there is no panacea, so the guideline is adapted and suitable for the case project only.
Consumer-driven contract testing (CDC), a fast and reliable test method, is introduced to test the interface of the interaction between two services. The case study project is lacking of the interface testing, which usually leads to mismatch between the expectations of the two services in an interaction. There exists already some API route testing, but these tests do not help catch potential problems as mentioned. The thesis implementation replaces such test with CDC which cover the API route testing, communication interface, and even more.
As a new and immature test method, CDC needs to be written in a systematic and robust way to ensure a good outcome. The thesis proposes a set of practices or guideline for the case study project to help bring a systematic way of writing CDC. Some workflows for managing CDC are also introduced. In a big project, a common guideline is highly important to avoid the divergence in the way of working, which would lead to potential errors and bad quality product. It is important to note that there is no panacea, so the guideline is adapted and suitable for the case project only.
Kokoelmat
- Kandidaatintutkielmat [8235]