You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of no configuration or an empty configuration, the command was
not printed in the error message and thus made it inconvenient to add
the command to the list of regular expression. Thus always print the
denied command even when the is no configuration.
Copy file name to clipboardExpand all lines: test-restricted-ssh-commands
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -58,12 +58,12 @@ tearDown() {
58
58
}
59
59
60
60
test_missing_config() {
61
-
failure "true""foo""restricted-ssh-commands: No configuration in ${SHUNIT_TMPDIR}/etc/restricted-ssh-commands/foo. All commands are denied." 125
61
+
failure "true""foo""restricted-ssh-commands: No configuration in ${SHUNIT_TMPDIR}/etc/restricted-ssh-commands/foo. All commands including \"true\"are denied." 125
62
62
}
63
63
64
64
test_empty_config() {
65
65
add_rule "foo"""
66
-
failure "true""foo""restricted-ssh-commands: Empty configuration in ${SHUNIT_TMPDIR}/etc/restricted-ssh-commands/foo. All commands are denied." 125
66
+
failure "true""foo""restricted-ssh-commands: Empty configuration in ${SHUNIT_TMPDIR}/etc/restricted-ssh-commands/foo. All commands including \"true\"are denied." 125
0 commit comments