Fix Docker VM tests for container status detection on node creation

The create() method now calls _get_container_state() after creating the
container to detect if the container is already running. Mock this method
in all test_create_* tests so the new code path doesn't fail with
KeyError: 'State' when the Docker.query mock response lacks a State field.
This commit is contained in:
YueGuobin committed 2026-06-03 22:17:43 +08:00
1 parent 9712e9328a
commit 2adc09604c
1 file changed
+727 -707
File diff suppressed because it is too large. Load diff