Skip to content

Commit

Permalink
Revert "Fix working_dir negative test error expectation (#1348)"
Browse files Browse the repository at this point in the history
This reverts commit 2028de8.

During local testing a gcs with an older version of security policy
was used when doing the fix: #1322. As we can see, the quotations
weren't there. However, later a PR was merged, which added them: #1311

Signed-off-by: Maksim An <maksiman@microsoft.com>
  • Loading branch information
anmaxvl committed Apr 22, 2022
1 parent db5e1b1 commit 77b0ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cri-containerd/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func Test_RunContainer_InvalidContainerConfigs_NotAllowed(t *testing.T) {
req.Config.WorkingDir = "/non/existent"
return nil
},
expectedError: "working_dir /non/existent unmatched by policy rule",
expectedError: "working_dir \"/non/existent\" unmatched by policy rule",
},
{
name: "InvalidCommand",
Expand Down

0 comments on commit 77b0ccc

Please sign in to comment.