Skip to content

Commit e9cdc2f

Browse files
committed
test(docker): assert networkless host aliases
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 44ce29c commit e9cdc2f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • crates/openshell-driver-docker/src

‎crates/openshell-driver-docker/src/tests.rs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,14 @@ fn build_container_create_body_replaces_inherited_cmd_with_boundary_mode() {
21002100
Some(&vec!["apparmor=unconfined".to_string()])
21012101
);
21022102
assert_eq!(host_config.network_mode.as_deref(), Some("none"));
2103-
assert!(host_config.extra_hosts.is_none());
2103+
assert_eq!(
2104+
host_config.extra_hosts,
2105+
Some(vec![
2106+
"host.openshell.internal:host-gateway".to_string(),
2107+
"host.docker.internal:host-gateway".to_string(),
2108+
]),
2109+
"networkless workloads still receive stable host aliases"
2110+
);
21042111
assert!(create_body.networking_config.is_none());
21052112
}
21062113

0 commit comments

Comments
 (0)