Closed justdan96 closed 6 years ago
/cc @paulmey
can we have some tests for the new functionality?
I wasn't sure exactly what to add for the testing so hopefully what I've done is okay. SplitN is in there as well, I ended up creating a new func for parsing the username to make things simpler. I might look at checking if the username is valid and putting it into the same function, if I can find a decent spec for what is considered a valid username.
This way, we at least have some tests fail if the structure of the message changes.
Thanks!
Add version support from jh125486 Add workstation and domain support from jh125486 Enable to extract domain from username
Contributing pull request. Most of the heavy lifting was done by jh125486, I just added a few lines to read the domain from the username. This is required so our team can use domain credentials for logon in masterzen/winrm.