Skip to content

test: routing, filtering, and helper method coverage#14

Draft
Koan-Bot wants to merge 1 commit into
atoomic:masterfrom
Koan-Bot:koan.atoomic/test-routing-and-filtering
Draft

test: routing, filtering, and helper method coverage#14
Koan-Bot wants to merge 1 commit into
atoomic:masterfrom
Koan-Bot:koan.atoomic/test-routing-and-filtering

Conversation

@Koan-Bot

@Koan-Bot Koan-Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

What

Adds t/core-routing.t — a focused test file covering previously untested core behaviors.

Why

Routes dispatch, regex filtering, multi-field filtering, look_by_id_or_name, and several service routes (keypairs, networks, ports) had zero test coverage. This makes the existing behavior contractual so future changes don't silently break it.

How

Uses the existing mock infrastructure (Test::OpenStack::MetaAPI) with minimal JSON fixtures. Tests:

  • Routes::list_all enumerates all known routes
  • Unknown route dispatch dies with descriptive error
  • Regex filtering on list results (case-insensitive, no-match)
  • Exact-match filtering and multi-field AND filtering
  • look_by_id_or_name routing (name path, numeric ID path, missing resource error)
  • Keypairs, networks, and ports routes exercised end-to-end

Testing

prove -l -It/lib t/  # all tests pass

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Quality Report

Changes: 1 file changed, 354 insertions(+)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Test Routes::list_all, unknown route errors, regex and multi-field
filtering in Listable, look_by_id_or_name ID/name routing, and
previously untested service routes (keypairs, networks, ports).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant