API Definition and Developer Experience
Keeping the Cloudflare API 'all green' using Python-based testing

Keeping the Cloudflare API 'all green' using Python-based testing

3/7/2023 · Elie Mitrani

What this post added

Introduced Scout, a Python-based automated testing system leveraging Pytest and OpenAPI schemas to verify the end-to-end behavior of Cloudflare's APIs. Scout addresses limitations of previous testing frameworks by enabling easier JSON response matching, request validation against OpenAPI schemas, parallel test execution, and environment-specific testing. It uses Pytest fixtures and marks for targeted resource allocation and validation, and stores results in Cloudflare Workers KV for presentation via a Worker.

Read the original post ↗