feat: remove mx helper mode
This commit is contained in:
@@ -92,8 +92,8 @@ test('keygen script pins mx host key from plugin settings', function (): void {
|
||||
assert_contains('Pinned MX host key:', $output);
|
||||
});
|
||||
|
||||
test('keygen script prints helper forced command line when mx login mode is helper', function (): void {
|
||||
$keyDir = TEST_TMP . '/keys-helper';
|
||||
test('keygen script ignores helper mode variables and prints direct ssh line only', function (): void {
|
||||
$keyDir = TEST_TMP . '/keys-direct-only';
|
||||
$script = PLUGIN_ROOT . '/scripts/keygen.sh';
|
||||
$cmd = sprintf(
|
||||
'MAIL_LOGIN_KEY_DIR=%s MX_LOGIN_MODE=2 SERVERNAME=%s SOURCE_IP=%s %s',
|
||||
@@ -107,6 +107,7 @@ test('keygen script prints helper forced command line when mx login mode is help
|
||||
|
||||
assert_same(0, $code, implode("\n", $out));
|
||||
$output = implode("\n", $out);
|
||||
assert_contains('command="/usr/local/hitme_plugins/mail-login-helper/bin/create-login-url"', $output);
|
||||
assert_not_contains('command=', $output);
|
||||
assert_not_contains('mail-login-helper', $output);
|
||||
assert_contains('KLUCZ PLUGINU MX-Autologin DLA SERWERA h4', $output);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user