H1 the-word-from-the-contract: the engine states directory-contents-owner from the seat's contract
Builds: design 47 H2 H-A-622, H-A-640 (hq 6b8373ce)
This commit is contained in:
@@ -383,8 +383,8 @@ func testTheNodeKeyCarriesTheNodesFacts(t *testing.T) {
|
||||
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)
|
||||
if !slices.Contains(got.Record.ManifestReads, nodeengine.ManifestReadWordDirectoryContentsOwner) {
|
||||
t.Errorf("the record states reads %v, want %s", got.Record.ManifestReads, nodeengine.ManifestReadWordDirectoryContentsOwner)
|
||||
}
|
||||
// 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).
|
||||
@@ -1064,7 +1064,7 @@ func slicesIndex(rs []ResourceHealth, id string) int {
|
||||
// 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,
|
||||
catalogue.ReadDirectoryContentsOwner)))
|
||||
nodeengine.ManifestReadWordDirectoryContentsOwner)))
|
||||
}
|
||||
|
||||
// TestHave runs this file's tests, each a subtest named as its function was (design 47 H2 §819, the test budget).
|
||||
|
||||
@@ -60,7 +60,7 @@ func readsNow() []string {
|
||||
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
|
||||
set[nodeengine.ManifestReadWordDirectoryContentsOwner] = true
|
||||
for r := range set {
|
||||
out = append(out, r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user