Skip to content

Function WebSiteBinding

Mark Wragg edited this page Jun 17, 2019 · 3 revisions

WebSiteBinding

SYNOPSIS

Test Binding of Web Site

DESCRIPTION

Used To Determine if Website is Running Desired Binding

PARAMETERS

Target [String]

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

Qualifier [string]

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

Property [String]

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

Should [ScriptBlock]

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

Assertions

Match, Be

EXAMPLES

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

WebSite TestSite http protocol { Should be "http" }

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

WebSite TestSite https bindingInformation { Should match '443' }

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

WebSite TestSite https sslFlags { Should be 1 }