Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Feb 26, 2024
1 parent e654732 commit b245f35
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/slicer/slicer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ var slicerTests = []slicerTest{{
slices:
myslice:
contents:
# Note the missing parent directories here.
# Note the missing /parent/ here.
/parent/new: {text: data1}
`,
},
result: map[string]string{
"/parent/": "dir 01777",
"/parent/": "dir 01777", // This is the magic.
"/parent/new": "file 0644 5b41362b",
},
}, {
Expand All @@ -133,30 +133,30 @@ var slicerTests = []slicerTest{{
slices:
myslice:
contents:
# Note the missing parent directories here.
# Note the missing /parent/ and /parent/permissions/ here.
/parent/permissions/new: {text: data1}
`,
},
result: map[string]string{
"/parent/": "dir 01777",
"/parent/permissions/": "dir 0764",
"/parent/": "dir 01777", // This is the magic.
"/parent/permissions/": "dir 0764", // This is the magic.
"/parent/permissions/new": "file 0644 5b41362b",
},
}, {
summary: "Create new directory under extracted directory",
summary: "Create new directory under extracted directory and preserve parent directory permissions",
slices: []setup.SliceKey{{"test-package", "myslice"}},
release: map[string]string{
"slices/mydir/test-package.yaml": `
package: test-package
slices:
myslice:
contents:
# Note the missing parent directories here.
# Note the missing /parent/ here.
/parent/new/: {make: true}
`,
},
result: map[string]string{
"/parent/": "dir 01777",
"/parent/": "dir 01777", // This is the magic.
"/parent/new/": "dir 0755",
},
}, {
Expand Down

0 comments on commit b245f35

Please sign in to comment.