test(macos-container): add launch integration smoke
lint / lint (push) Successful in 1m44s
test / unit (pull_request) Successful in 37s
test / integration (pull_request) Successful in 20s

This commit is contained in:
2026-06-10 20:01:08 -04:00
parent d923871fd2
commit f7f9892b53
5 changed files with 299 additions and 29 deletions
+5 -2
View File
@@ -29,12 +29,15 @@ class TestMacosContainerAvailability(unittest.TestCase):
class TestMacosContainerCommands(unittest.TestCase):
def test_build_image(self):
with patch.object(util.subprocess, "run") as run:
with patch.object(util.subprocess, "run") as run, \
patch.object(util.os, "environ", {
"BOT_BOTTLE_MACOS_CONTAINER_DNS": "9.9.9.9",
}):
util.build_image("bot-bottle-agent:latest", "/repo", dockerfile="/repo/Dockerfile")
self.assertEqual(
[
"container", "build", "-t", "bot-bottle-agent:latest",
"-f", "/repo/Dockerfile", "/repo",
"--dns", "9.9.9.9", "-f", "/repo/Dockerfile", "/repo",
],
run.call_args.args[0],
)