Skip to content

Function WebSite

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

WebSite

SYNOPSIS

WebSite Settings

DESCRIPTION

Used To Determine if Website is Running Desired Settings

PARAMETERS

Target [String]

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

Property [String]

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

Should [ScriptBlock]

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

Assertions

Match, Be

EXAMPLES

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

WebSite TestSite state { Should be 'Started' }

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

Website TestSite physicalPath { Should be 'C:\IIS\Files\index.html' } 

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

Website TestSite binding { Should Match '*:80*' } 

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

Website TestSite name { Should be 'testsite' } 

-------------------------- EXAMPLE 5 --------------------------

Website TestSite ID { Should be 1 } 
Clone this wiki locally