fix: restore runtime workspace provisioning
This commit is contained in:
@@ -35,7 +35,6 @@ from bot_bottle.egress import EgressPlan, EgressRoute
|
||||
from bot_bottle.git_gate import GitGatePlan, GitGateUpstream
|
||||
from bot_bottle.manifest import ManifestGitEntry, Manifest
|
||||
from bot_bottle.supervise import SupervisePlan
|
||||
# from bot_bottle.workspace import workspace_plan
|
||||
|
||||
|
||||
class _Provider(AgentProvider):
|
||||
@@ -337,9 +336,7 @@ class TestSmolmachinesBottleExec(unittest.TestCase):
|
||||
|
||||
|
||||
class TestProvisionGit(unittest.TestCase):
|
||||
"""provision_git dispatches two independent passes (cwd .git
|
||||
copy + gitconfig insteadOf write); each no-ops on its own
|
||||
when its condition doesn't hold."""
|
||||
"""provision_git writes gitconfig insteadOf rules when configured."""
|
||||
|
||||
def setUp(self):
|
||||
self._tmp = tempfile.TemporaryDirectory(prefix="cb-prov-git.") # pylint: disable=consider-using-with
|
||||
@@ -354,14 +351,6 @@ class TestProvisionGit(unittest.TestCase):
|
||||
bottle.cp_in.assert_not_called()
|
||||
bottle.exec.assert_not_called()
|
||||
|
||||
# def test_copies_cwd_git_when_copy_cwd_and_git_present(self):
|
||||
# # DISABLED — workspace planning is currently commented out.
|
||||
# pass
|
||||
|
||||
# def test_skips_cwd_when_copy_cwd_false(self):
|
||||
# # DISABLED — workspace planning is currently commented out.
|
||||
# pass
|
||||
|
||||
def test_writes_gitconfig_with_ip_port_form_for_smolmachines(self):
|
||||
# Smolmachines's TSI-allowlisted guest dials git-gate via
|
||||
# smart HTTP at `127.0.0.1:<host port>` — the bundle's
|
||||
@@ -481,10 +470,5 @@ class TestProvisionGitUser(unittest.TestCase):
|
||||
self.assertIn("bot@example.com", calls[0][0])
|
||||
|
||||
|
||||
# class TestProvisionWorkspace(unittest.TestCase):
|
||||
# # DISABLED — workspace planning / provision_workspace are commented out.
|
||||
# pass
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user