The node-engine states it gives a directory's contents their new owner
readsNow states the reader capability directory-contents-owner, which mesh-sdk's ManifestNeeds names for every manifest declaring runs-as, so the module graph orders a move to an account of its own after this engine runs on its node. Builds: design 47 H2 H-A-554 (1), H-A-556
This commit is contained in:
@@ -382,6 +382,10 @@ func testTheNodeKeyCarriesTheNodesFacts(t *testing.T) {
|
||||
if !slices.Contains(got.Record.ManifestReads, nodeengine.ManifestReadWordWantVersion) || slices.Contains(got.Record.Capabilities, "want-parts") {
|
||||
t.Errorf("the record states reads %v and capabilities %v, want the word want:version and no want-parts", got.Record.ManifestReads, got.Record.Capabilities)
|
||||
}
|
||||
// And that it gives a directory's contents the directory's new owner (H-A-556).
|
||||
if !slices.Contains(got.Record.ManifestReads, catalogue.ReadDirectoryContentsOwner) {
|
||||
t.Errorf("the record states reads %v, want %s", got.Record.ManifestReads, catalogue.ReadDirectoryContentsOwner)
|
||||
}
|
||||
// Among them, that it fills a seat's reach from the seat holder's listen (ADR 0632 §1).
|
||||
// And the words and forms it builds (design 42 zfs-owns-zfs §4, answer A-13).
|
||||
for _, read := range []string{catalogue.ReadForm + catalogue.ReferenceFormSeatReach, "word:resources.if-config",
|
||||
@@ -1056,9 +1060,11 @@ func slicesIndex(rs []ResourceHealth, id string) int {
|
||||
return -1
|
||||
}
|
||||
|
||||
// statedReads is the contract's reads with the word that the engine reads a want by its version (design 47 H §772).
|
||||
// statedReads is the contract's reads with the word that the engine reads a want by its version (design 47 H §772) and
|
||||
// that it gives a directory's contents its new owner (H-A-556).
|
||||
func statedReads() []string {
|
||||
return slices.Sorted(slices.Values(append(catalogue.ManifestReads(), nodeengine.ManifestReadWordWantVersion)))
|
||||
return slices.Sorted(slices.Values(append(catalogue.ManifestReads(), nodeengine.ManifestReadWordWantVersion,
|
||||
catalogue.ReadDirectoryContentsOwner)))
|
||||
}
|
||||
|
||||
// TestHave runs this file's tests, each a subtest named as its function was (design 47 H2 §819, the test budget).
|
||||
|
||||
@@ -58,6 +58,9 @@ func readsNow() []string {
|
||||
}
|
||||
out := make([]string, 0, len(set))
|
||||
set[nodeengine.ManifestReadWordWantVersion] = true
|
||||
// And that it gives a directory's contents the directory's new owner (internal/apply giveContents; H-A-556): a module
|
||||
// declaring runs-as needs it, so its move waits for this engine on its node.
|
||||
set[catalogue.ReadDirectoryContentsOwner] = true
|
||||
for r := range set {
|
||||
out = append(out, r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user