Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mitigando incosistências em API Rest através de testes de retrocompatibilidade

Mitigando incosistências em API Rest através de testes de retrocompatibilidade

Bruno Pulis

March 30, 2021
Tweet

More Decks by Bruno Pulis

Other Decks in Programming

Transcript

  1. GABRIEL SANTOS QA - Itaú Unibanco BRUNO PULIS QA -

    Concrete Solutions in/gabriel-santoss in/pulis
  2. Como vocês validariam o Swagger de uma API, com 100

    endpoints, que acabou de sofrer uma atualização? Foto por Nathan Dumlao em Unsplash
  3. Foto por Daniel Cheung em Unsplash Testes de RETROCOMPATIBILIDADE Icons

    por Flaticon Verifica se a versão atual do software é compatível com suas versões anteriores. v1 v2
  4. Photo by Daniel Cheung on Unsplash Foto por Freepik testes

    unitários testes de contrato versionamento Swagger-Diff
  5. $ swagger-diff .\swagger-antigo.json .\swagger-novo.json - missing endpoints - delete /pets/{}

    - get /pets/{} - post /pets - incompatible request params - get /pets - missing request param: tags (in: query, type: array) - missing request param: limit (in: query, type: integer) - incompatible response attributes - get /pets - missing default response Exemplo Local