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

PreferNodeProperty - extend support to specify Credential #49

Closed DexterPOSH closed 6 years ago

DexterPOSH commented 7 years ago

There are two ways to let PSRemotely know which credentials to use to connect to the remote node.

There is a downside to the second approach, it only looks for the attribute named credential (constraint on the name to be specific). Also if both credential hash and the credential attribute are present, the latter gets precedence.

Based on @iainbrighton's idea of using PreferNodeProperty, refer the issue for the idea -> https://github.com/DexterPOSH/PSRemotely/issues/47.

Can we extend the same behavior for the credentials too? Would it make more sense this way? I think so.

Note - This would be a breaking change if anyone is using PSRemotely that way 😆.

DexterPOSH commented 7 years ago

This will be worked upon now. This will let you specify an attribute in the node configuration data to be used for connecting to the node.

Note - Once a credential attribute is specified to be used with PreferNodeProperty. This will be removed when populating $node var in the PSRemotely node's session.

DexterPOSH commented 6 years ago

Oops! Forgot to mention this but v.1.0.4 of PSRemotely supports this. We have been using this in our validation extensively.