openssh-portable/regress/pesterTests
Manoj Ampalam 17efb12f6f ssh client E2E tests (#138)
https://github.com/PowerShell/Win32-OpenSSH/issues/619
PowerShell/Win32-OpenSSH#623


* C2

* C3

* C4

* C5
2017-05-12 10:31:59 -07:00
..
testdata file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
Authorized_keys_fileperm.Tests.ps1 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
Cfginclude.Tests.ps1 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
CommonUtils.psm1 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
Hostkey_fileperm.Tests.ps1 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
KeyUtils.Tests.ps1 E2E tests for ssh key management 2017-05-10 14:47:03 -07:00
PlatformAbstractLayer.psm1 latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
PortForwarding.Tests.ps1 Test scripts updates and readme (#97) 2017-03-29 12:48:26 -07:00
PowerShell.SSH.Tests.ps1 Test scripts updates and readme (#97) 2017-03-29 12:48:26 -07:00
README.md Enabled SFTP E2E tests based on test framework changes (#101) 2017-03-31 11:47:24 -07:00
SCP.Tests.ps1 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
SFTP.Tests.ps1 Enabled SFTP E2E tests based on test framework changes (#101) 2017-03-31 11:47:24 -07:00
SSH.Tests.ps1 ssh client E2E tests (#138) 2017-05-12 10:31:59 -07:00
SSHDConfig.tests.ps1 Test scripts updates and readme (#97) 2017-03-29 12:48:26 -07:00
SSHD_Config Enabled SFTP E2E tests based on test framework changes (#101) 2017-03-31 11:47:24 -07:00
Userkey_fileperm.Tests.ps1 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110) 2017-05-01 14:18:20 -07:00
known_hosts latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_dsa latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_dsa.pub latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_ecdsa latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_ecdsa.pub latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_ed25519 latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_ed25519.pub latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_rsa latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_hostkey_rsa.pub latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_userssokey_ed25519 latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00
sshtest_userssokey_ed25519.pub latestw + Test Infra upgrades 2017-03-24 12:35:52 -07:00

README.md

Run OpenSSH Pester Tests:

To setup the test environment before test run:

Import-Module  .\openssh-portable\contrib\win32\openssh\OpenSSHTestHelper.psm1 Force
Setup-OpenSSHTestEnvironment

Setup-OpenSSHTestEnvironment contains below parameters:

  • -OpenSSHBinPath: Specify the location where ssh.exe should be picked up. If not specified, the function will prompt to user if he/she want to choose the first ssh.exe found in $env:path if exists.
  • -TestDataPath: Specify the location where the test binaries deploy to. The default is $env:SystemDrive\OpenSSHTests if it not specified.
  • -Quiet: If it is set, the function will do all the changes without prompting to user to confirm.
  • -DebugMode: If it is set, the subsequent tests will be running in debug mode. User can modify by setting $OpenSSHTestInfo["DebugMode"] .

To run the test suites:

Run-OpenSSHE2ETest
Run-OpenSSHUnitTest

To run a particular test, just run the script or the executatlbe directly

C:\git\openssh-portable\regress\pesterTests\SCP.Tests.ps1
C:\git\openssh-portable\bin\x64\Release\unittest-bitmap\unittest-bitmap.exe

To verify / modify (Ex- DebugMode) the Test setup environment

$OpenSSHTestInfo
$OpenSSHTestInfo["DebugMode"] = $true

To revert what's done in Setup-OpenSSHTestEnvironment:

Cleanup-OpenSSHTestEnvironment