Skip to content

Commit

Permalink
bake: test export local and allow parent
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Dec 16, 2024
1 parent bb4161c commit 621d5f6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bake/entitlements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,20 @@ func TestValidateEntitlements(t *testing.T) {
FSRead: []string{expWd},
},
},
{
name: "ExportLocalAllowParent",
opt: build.Options{
ExportsLocalPathsTemporary: []string{
filepath.Join(dir1, "nonexistent", "subdir"),
},
},
conf: EntitlementConf{
FSWrite: []string{expDir1},
},
expected: EntitlementConf{
FSRead: []string{expWd},
},
},
{
name: "SecretFromSubFile",
opt: build.Options{
Expand Down

0 comments on commit 621d5f6

Please sign in to comment.