Skip to content

fix: drop stale test that required network_for_floating_ip - #30

Merged
atoomic merged 1 commit into
mainfrom
fix/create-vm-optional-floating-network
Sep 11, 2026
Merged

atoomic merged 1 commit into
mainfrom
fix/create-vm-optional-floating-network

Conversation

@atoomic

@atoomic atoomic commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Commit 8ae7cc1 made 'network_for_floating_ip' optional in create_vm, but a test asserting the old "field is required" die was merged in parallel from another branch. Neither branch saw the other, so main went red on every CI job.

Without a floating network, create_vm now runs the whole create flow, so the test hit unmocked endpoints and died on "Connection refused" instead of the expected message.

Remove the stale assertion and add t/create-vm-no-floating-ip.t, which covers the path nothing tested: create_vm succeeds with no floating network, returns the server, and never asks for a floating IP. That test fails if the requirement is reintroduced.

Also ignore local/, the cpm dependency directory CI already builds.

Commit 8ae7cc1 made 'network_for_floating_ip' optional in create_vm, but
a test asserting the old "field is required" die was merged in parallel
from another branch. Neither branch saw the other, so main went red on
every CI job.

Without a floating network, create_vm now runs the whole create flow, so
the test hit unmocked endpoints and died on "Connection refused" instead
of the expected message.

Remove the stale assertion and add t/create-vm-no-floating-ip.t, which
covers the path nothing tested: create_vm succeeds with no floating
network, returns the server, and never asks for a floating IP. That test
fails if the requirement is reintroduced.

Also ignore local/, the cpm dependency directory CI already builds.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@atoomic
atoomic merged commit f75fbd3 into main Sep 11, 2026
19 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.

1 participant