Reload trusted migration operator authority before approval consumption
ABSDEV Framework CI / framework-ci (push) Successful in 22s
ABSDEV Framework CI / framework-ci (push) Successful in 22s
This commit is contained in:
@@ -17,7 +17,7 @@ class MigrationTests(unittest.TestCase):
|
||||
self.fixture = test_approval_store.ApprovalStoreTests()
|
||||
self.addCleanup(self.fixture.doCleanups)
|
||||
self.fixture.setUp()
|
||||
self.ops = SiteOperations(self.fixture.root, operator_policy=self.fixture.policy)
|
||||
self.ops = SiteOperations(self.fixture.root, operator_policy=lambda: self.fixture.policy)
|
||||
self.fixture.store = self.ops.approvals
|
||||
self.fixture.save()
|
||||
|
||||
@@ -367,7 +367,7 @@ class MigrationTests(unittest.TestCase):
|
||||
def test_missing_execution_authority_blocks_before_containment(self):
|
||||
from core.operator_approval import OperatorApprovalPolicy
|
||||
|
||||
self.fixture.store.operator_policy = OperatorApprovalPolicy(
|
||||
self.fixture.policy = OperatorApprovalPolicy(
|
||||
self.fixture.grants[:1], sealing_key=self.fixture.key,
|
||||
)
|
||||
with self.assertRaises(MigrationError):
|
||||
|
||||
Reference in New Issue
Block a user