DexterPOSH / PSRemotely

Remote operations validation framework, exposes a DSL to wrap existing Pester/PoshSpec based validation tests.
http://psremotely.readthedocs.io/en/latest/
MIT License
46 stars 7 forks source link

Appveyor - issue with creating PSSession inside tests #37

Closed DexterPOSH closed 7 years ago

DexterPOSH commented 7 years ago

As part of the integration and unit tests, we create PSSession to the localhost to test things. These are failing. Created a simple POC for this

Code - https://github.com/DexterPOSH/test/blob/master/build.ps1

Appveyor Build details - See the build messages

DexterPOSH commented 7 years ago

Fixed this issue by specifying -EnableNetworkAccess switch while creating a loopback session. Strange though !

Guessing that this has to be done with the integration tests as well.

DexterPOSH commented 7 years ago

Fixed with the above workaround.