Skip to content

Function Interface

Chris Hunt edited this page May 23, 2016 · 1 revision

Interface

SYNOPSIS

Test a local network interface.

DESCRIPTION

Test a local network interface and optionally and specific property.

PARAMETERS

Target [String]

[Parameter(
  Mandatory = $true,
  Position = 2)]

Property [String]

[Parameter(
  Position = 3,
  ParameterSetName = 'Set 2')]

Should [ScriptBlock]

[Parameter(
  Mandatory = $true,
  Position = 3,
  ParameterSetName = 'Set 1')]
[Parameter(
  Mandatory = $true,
  Position = 4,
  ParameterSetName = 'Set 2')]

Assertions

Be, BeNullOrEmpty

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

interface ethernet0 { should not BeNullOrEmpty }

-------------------------- EXAMPLE 2 --------------------------

interface ethernet0 status { should be 'up' }

-------------------------- EXAMPLE 3 --------------------------

Interface Ethernet0 linkspeed { should be '1 gbps' }

-------------------------- EXAMPLE 4 --------------------------

Interface Ethernet0 macaddress { should be '00-0C-29-F2-69-DD' }