Update to containerization 0.20.0. (#1027)

- Use MACAddress for Attachment and CZ interfaces.
- Move data validation closer to API surface.
This commit is contained in:
J Logan
2026-01-07 10:35:19 -08:00
committed by GitHub
parent 356c8d2f88
commit 9cd5397b8c
5 changed files with 13 additions and 33 deletions
@@ -43,7 +43,10 @@ class TestCLICreateCommand: CLITest {
try waitForContainerRunning(name)
let inspectResp = try inspectContainer(name)
#expect(inspectResp.networks.count > 0, "expected at least one network attachment")
#expect(inspectResp.networks[0].macAddress == expectedMAC, "expected MAC address \(expectedMAC), got \(inspectResp.networks[0].macAddress ?? "nil")")
#expect(
inspectResp.networks[0].macAddress?.description == expectedMAC,
"expected MAC address \(expectedMAC), got \(inspectResp.networks[0].macAddress?.description ?? "nil")"
)
}
}