test(secrets): satisfy static coverage checks
test / integration-docker (pull_request) Successful in 20s
test / unit (pull_request) Successful in 46s
lint / lint (push) Successful in 2m46s
test / integration-firecracker (pull_request) Successful in 3m26s
test / coverage (pull_request) Successful in 22s
test / publish-infra (pull_request) Has been skipped
tracker-policy-pr / check-pr (pull_request) Failing after 14m24s
test / integration-docker (pull_request) Successful in 20s
test / unit (pull_request) Successful in 46s
lint / lint (push) Successful in 2m46s
test / integration-firecracker (pull_request) Successful in 3m26s
test / coverage (pull_request) Successful in 22s
test / publish-infra (pull_request) Has been skipped
tracker-policy-pr / check-pr (pull_request) Failing after 14m24s
This commit is contained in:
@@ -8,7 +8,7 @@ import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import Mock, call, patch
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from bot_bottle.orchestrator.reprovision import reprovision_bottles
|
||||
from bot_bottle.backend.firecracker import consolidated_launch as fc
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import dataclasses
|
||||
import unittest
|
||||
|
||||
from bot_bottle.backend.docker.consolidated_compose import consolidated_agent_compose
|
||||
@@ -48,7 +49,7 @@ class TestConsolidatedAgentCompose(unittest.TestCase):
|
||||
|
||||
def test_env_var_secret_stays_a_bare_name(self) -> None:
|
||||
plan = _plan(with_egress=True, supervise=True, with_git=True)
|
||||
plan = type(plan)(**{**vars(plan), "env_var_secret": "secret-value"})
|
||||
plan = dataclasses.replace(plan, env_var_secret="secret-value")
|
||||
env = consolidated_agent_compose(
|
||||
plan, gateway_ip=_GW, source_ip=_IP, network=_NET,
|
||||
)["services"]["agent"]["environment"]
|
||||
|
||||
@@ -75,6 +75,7 @@ class TestDispatch(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(201, status)
|
||||
bottle_id = payload["bottle_id"]
|
||||
assert isinstance(bottle_id, str)
|
||||
self.orch._tokens.clear()
|
||||
status, response = dispatch(
|
||||
self.orch, "POST", f"/bottles/{bottle_id}/reprovision_gateway",
|
||||
|
||||
Reference in New Issue
Block a user