VectorBCO / windows-path-enumerate

Script for fix Windows path enumerate vulnerability
GNU General Public License v3.0
74 stars 20 forks source link

Automatic tests with Pester #10

Open VectorBCO opened 4 years ago

VectorBCO commented 4 years ago

Problem Script should be tested before execution in a prod environment. Test reg files already exists and can be used for manual tests, but manual tests is nit a good practice, and should be created autotests.

Test cases Pester tests should contain a scrith which will: [Done] - import reg files [Done] - run script without parameters and check that test services was fixed (positive and negative scenarious) [Done] - run script with -FixUninstall parameter and check that test uninstall strings fixed (positive and negative scenarious) [Done] - import reg files once again [Done] - execute script with -FixUninstall, -FixEnv and -CreateBackup parameters and check that backup files was created and contain correct values, and values in the registry are correct

**

VectorBCO commented 4 years ago

left one more testcase from this bundle