Example: Microservice Lacking Tests

Learn how to test RODE, a simple ML-based web service for detecting and rotating objects in images.

We'll cover the following

Overview of RODE

Before practicing with tests, let’s imagine we build a simple ML-based web service, RODE (Rotated Object Detector). It takes some image as input, detects an object (its coordinates and angle because the object may be rotated), crops the object, rotates it back, and saves the result.

This scenario is very realistic. For example, you can imagine using something like this as part of the application that watches your home entrance and sends photos of people near your door.

Interacting with RODE

Our web service has a single entry point: a POST request that sends an image and receives detection results.

Get hands-on with 1200+ tech skills courses.