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

Remove passing argument list while creating PSSession #45

Closed DexterPOSH closed 7 years ago

DexterPOSH commented 7 years ago

Passing argument list to populate the Node variable in the PSRemoting session has limitations, as complex configuration data can not be passed. See below that passing nested arrays or hashes fails if we continue this way:

@{
    AllNodes = @(
        @{
            NodeName='*';
            DomainFQDN='dexter.lab';
            Networks = @( # nested array of hashes this can not be passed using application arguments
                @{
                    Name = 'ConvergedNetwork1'
                    VlanID = 101
                },
                @{
                    Name = 'ConvergedNetwork2'
                    VlanID = 102
                }
            )
        },
        @{
            NodeName="Node1";
            ServiceName = 'bits';
            Type='Compute';

        },
        @{
            NodeName='Node2';
            ServiceName = 'winrm';
            Type='Storage';
        }
    )
}
DexterPOSH commented 7 years ago

Fixed in v1.0.2 release