Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 480 Bytes

File metadata and controls

18 lines (11 loc) · 480 Bytes

Spying

In Spy mode, Hoverfly calls the real service if a request is not matched, otherwise, it simulates.

This mode allows you to spy on some of the endpoints of the services your test depends on, while letting other traffic to pass through.

try (Hoverfly hoverfly = new Hoverfly(configs(), SPY)) {

    hoverfly.start();
    hoverfly.importSimulation(classpath("simulation.json"));

    // do some requests here
}