Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungW3C IRC bots now open source(21.09.2026 um 13:13 Uhr)
Sichere ProgrammierungThe Weakest Leg(21.09.2026 um 08:30 Uhr)
Sichere ProgrammierungHow to Use st-core.fscss with Svelte (Compiled)(21.09.2026 um 13:00 Uhr)
Sichere ProgrammierungBuilding a Pre-Trade Oracle Safety Check for DeFi Agents(21.09.2026 um 13:03 Uhr)
Sichere ProgrammierungYour Finance Agent Needs an Evaluation Harness, Not Just a Prompt(21.09.2026 um 13:05 Uhr)
Server SecurityDatenleck bei GUTcert: Sorge um Energienetz-Geheimnisse(21.09.2026 um 12:30 Uhr)
Sichere ProgrammierungW3C IRC bots now open source(21.09.2026 um 13:13 Uhr)
Sichere ProgrammierungThe Weakest Leg(21.09.2026 um 08:30 Uhr)
Sichere ProgrammierungHow to Use st-core.fscss with Svelte (Compiled)(21.09.2026 um 13:00 Uhr)
Sichere ProgrammierungBuilding a Pre-Trade Oracle Safety Check for DeFi Agents(21.09.2026 um 13:03 Uhr)
Sichere ProgrammierungYour Finance Agent Needs an Evaluation Harness, Not Just a Prompt(21.09.2026 um 13:05 Uhr)
Server SecurityDatenleck bei GUTcert: Sorge um Energienetz-Geheimnisse(21.09.2026 um 12:30 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Stop running a JVM just to mock an API in your CI pipeline

If you've set up WireMock in a CI pipeline before, you know the pattern: pull a Docker image with a full JVM in it, wait for it to boot, configure stubs via a REST API or a pile of JSON files, then tear it down. For a Python project,…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

If you've set up WireMock in a CI pipeline before, you know the pattern: pull a Docker image with a full JVM in it, wait for it to boot, configure stubs via a REST API or a pile of JSON files, then tear it down. For a Python project, that's a second language runtime in your pipeline purely to answer GET /users with a canned response.



Mimicker is a Python-native alternative. It's a plain pip install, it starts in-process or via a one-line CLI call, and it has no JVM, no native dependencies, and no heavy runtime — just two small pure-Python libraries (PyYAML for config, colorlog for output).






The Python DSL






from mimicker.mimicker import mimicker, get

mimicker(8080).routes(
get("/hello").body({"message": "Hello, World!"}).status(200)
)






That's a running mock server on port 8080. No config file, no separate process to manage if you don't want one.






The same thing in YAML



For when you want stubs defined outside your test code, useful if QA or frontend devs need to spin up a mock without touching Python:




# stubs.yaml
routes:
- method: GET
path: /hello
status: 200
body:
message: Hello, World!









mimicker serve --config stubs.yaml









Where WireMock still wins



WireMock is mature, has a huge feature set (request matching on nearly anything, record-and-playback, fault injection, a proper admin API), and if you're already in a JVM shop, it's a known quantity. Mimicker doesn't try to match that surface area — it's intentionally smaller.






Where mimicker is a better fit



You're testing a Python service, you don't want a second runtime in CI, and you want stub definitions your whole team can read without learning WireMock's JSON mapping format.






Using it in CI



There's an official GitHub Action:




steps:
- uses: actions/checkout@v4
- uses: mimickerhq/mimicker-action@v1
with:
config: stubs/api.yaml
- name: Run tests
run: pytest






It also ships something WireMock doesn't have out of the box: a stub coverage report. After your tests run, it tells you which stubs were actually hit, so if you delete an endpoint from the real API and forget to update the stub, you find out in CI instead of in production three weeks later.




- name: Mimicker coverage report
if: always()
run: bash ${{ steps.mock.outputs.report-script }}






Add fail-on-unused: true and the job fails outright if a stub goes stale.






Try it



Mimicker is at github.com/mimickerhq/mimicker, docs at mimickerhq.github.io/mimicker. It's still small — if you try it and something's missing for your use case, that's exactly the kind of issue I want to hear about.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Stop running a JVM just to mock an API in your CI pipeline

Thematisch verwandte Begriffe: Stop, running, just, mock · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94040 | A flaw has been found in vas3k TaxHacker up to 0.8.5. Affected by this v…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick