Skip to content

test(utils): replace obsolete router hostname fixture in cc locate tests - #148

Merged
cmulk merged 1 commit into
sandialabs:mainfrom
GhostofGoes:test-cc-locate-guest-hostname
Oct 10, 2026
Merged

cmulk merged 1 commit into
sandialabs:mainfrom
GhostofGoes:test-cc-locate-guest-hostname

Conversation

@GhostofGoes

Copy link
Copy Markdown
Contributor

Description

Two mm_cc_client_locate tests modeled a router whose guest hostname phenix lowercased and rewrote (VM Site_A.RTR reporting site-a-rtr). phenix no longer rewrites router hostnames (sandialabs/sceptre-phenix#347), and the topology schema rejects _ and . in hostnames, so that guest can't exist anymore.

A guest hostname can still differ from the minimega VM name. One example is a Windows VM that the startup app hasn't renamed yet. The tests now use that case, so they still check that lookup goes through the VM UUID. Test-only change.

Related Issues/PRs

Type of Change

  • Bugfix (fix)
  • Feature (feat)
  • Documentation (docs)
  • Refactor (refactor)
  • Chore (CI, build, dependencies, etc.) (chore)
  • Other (please describe): tests (test)

Checklist

  • This PR conforms to the process detailed in the Contributing Guide.
  • I have included no proprietary/sensitive information in my code or the PR.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have tested my code (describe below).

Testing

In src/python: ruff check, ruff format --check, codespell, vulture, and pytest (697 passed).

🤖 Generated with Claude Code

The cc locate tests modeled a router whose guest hostname phenix
lowercased and rewrote ("Site_A.RTR" reporting "site-a-rtr"). phenix no
longer rewrites router hostnames (sandialabs/sceptre-phenix#347), and
the topology schema rejects "_" and "." in hostnames, so that guest can
no longer exist.

A guest hostname can still differ from the minimega VM name, for example
on a Windows VM that the startup app has not yet renamed. Use that case
so the tests keep checking that lookup goes through the VM UUID.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@GhostofGoes
GhostofGoes marked this pull request as ready for review September 28, 2026 23:02
@cmulk
cmulk merged commit ad5150a into sandialabs:main Oct 10, 2026
3 checks passed
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.

2 participants