Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 1a44f22

Browse files
committed
clean up whitespace, document connectivity object whch fixes #6,replace UnblockUrl paramter with UrlPattern, but still original UnblockUrl idea in output, put server certificate properties in one object, fix license
1 parent 7c61408 commit 1a44f22

25 files changed

+489
-421
lines changed

Examples/Adobe/ARMUpdate/ARMUpdateConnectivity.psm1

+28-28
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Import-Module -Name HttpConnectivityTester -Force
66
# Import-Module .\ARMUpdateConnectivity.psm1
77

88
# 2. run one of the following:
9-
# $connectivity = Get-ARMUpdateConnectivity
9+
# $connectivity = Get-ARMUpdateConnectivity
1010
# $connectivity = Get-ARMUpdateConnectivity -Verbose
11-
# $connectivity = Get-ARMUpdateConnectivity -PerformBlueCoatLookup
11+
# $connectivity = Get-ARMUpdateConnectivity -PerformBlueCoatLookup
1212
# $connectivity = Get-ARMUpdateConnectivity -Verbose -PerformBlueCoatLookup
1313

1414
# 3. filter results:
@@ -19,57 +19,57 @@ Import-Module -Name HttpConnectivityTester -Force
1919

2020
Function Get-ARMUpdateConnectivity() {
2121
<#
22-
.SYNOPSIS
22+
.SYNOPSIS
2323
Gets connectivity information for Adobe Reader updates.
24-
25-
.DESCRIPTION
24+
25+
.DESCRIPTION
2626
Gets connectivity information for Adobe Reader updates.
27-
28-
.PARAMETER PerformBlueCoatLookup
27+
28+
.PARAMETER PerformBlueCoatLookup
2929
Use Symantec BlueCoat SiteReview to lookup what SiteReview category the URL is in.
30-
31-
.EXAMPLE
30+
31+
.EXAMPLE
3232
Get-ARMUpdateConnectivity
33-
34-
.EXAMPLE
33+
34+
.EXAMPLE
3535
Get-ARMUpdateConnectivity -Verbose
36-
37-
.EXAMPLE
36+
37+
.EXAMPLE
3838
Get-ARMUpdateConnectivity -PerformBlueCoatLookup
39-
40-
.EXAMPLE
39+
40+
.EXAMPLE
4141
Get-ARMUpdateConnectivity -Verbose -PerformBlueCoatLookup
4242
#>
4343
[CmdletBinding()]
4444
[OutputType([System.Collections.Generic.List[pscustomobject]])]
45-
Param(
45+
Param(
4646
[Parameter(Mandatory=$false, HelpMessage='Whether to perform a BlueCoat Site Review lookup on the URL. Warning: The BlueCoat Site Review REST API is rate limited.')]
4747
[switch]$PerformBluecoatLookup
4848
)
4949

5050
$parameters = $PSBoundParameters
5151

52-
$isVerbose = $verbosePreference -eq 'Continue'
52+
$isVerbose = $verbosePreference -eq 'Continue'
5353

5454
$data = New-Object System.Collections.Generic.List[pscustomobject]
55-
56-
$data.Add([pscustomobject]@{ TestUrl = 'http://armmf.adobe.com'; UnblockUrl = 'http://armmf.adobe.com'; StatusCode = 404; Description = 'Adobe update metadata download'; IgnoreCertificateValidationErrors=$false })
57-
$data.Add([pscustomobject]@{ TestUrl = 'https://armmf.adobe.com'; UnblockUrl = 'https://armmf.adobe.com'; StatusCode = 404; Description = 'Adobe update metadata download'; IgnoreCertificateValidationErrors=$false })
5855

59-
$data.Add([pscustomobject]@{ TestUrl = 'http://ardownload.adobe.com'; UnblockUrl = 'http://ardownload.adobe.com'; StatusCode = 404; Description = 'Adobe updates download'; IgnoreCertificateValidationErrors=$false })
60-
$data.Add([pscustomobject]@{ TestUrl = 'https://ardownload.adobe.com'; UnblockUrl = 'https://ardownload.adobe.com'; StatusCode = 404; Description = 'Adobe updates download'; IgnoreCertificateValidationErrors=$true })
56+
$data.Add([pscustomobject]@{ TestUrl = 'http://armmf.adobe.com'; StatusCode = 404; Description = 'Adobe update metadata download'; IgnoreCertificateValidationErrors=$false })
57+
$data.Add([pscustomobject]@{ TestUrl = 'https://armmf.adobe.com'; StatusCode = 404; Description = 'Adobe update metadata download'; IgnoreCertificateValidationErrors=$false })
58+
59+
$data.Add([pscustomobject]@{ TestUrl = 'http://ardownload.adobe.com'; StatusCode = 404; Description = 'Adobe updates download'; IgnoreCertificateValidationErrors=$false })
60+
$data.Add([pscustomobject]@{ TestUrl = 'https://ardownload.adobe.com'; StatusCode = 404; Description = 'Adobe updates download'; IgnoreCertificateValidationErrors=$true })
61+
62+
$data.Add([pscustomobject]@{ TestUrl = 'http://ardownload2.adobe.com'; StatusCode = 404; Description = 'Adobe incremental updates download'; IgnoreCertificateValidationErrors=$false })
63+
$data.Add([pscustomobject]@{ TestUrl = 'https://ardownload2.adobe.com'; StatusCode = 404; Description = 'Adobe incremental updates download'; IgnoreCertificateValidationErrors=$false })
6164

62-
$data.Add([pscustomobject]@{ TestUrl = 'http://ardownload2.adobe.com'; UnblockUrl = 'http://ardownload2.adobe.com'; StatusCode = 404; Description = 'Adobe incremental updates download'; IgnoreCertificateValidationErrors=$false })
63-
$data.Add([pscustomobject]@{ TestUrl = 'https://ardownload2.adobe.com'; UnblockUrl = 'https://ardownload2.adobe.com'; StatusCode = 404; Description = 'Adobe incremental updates download'; IgnoreCertificateValidationErrors=$false })
65+
$data.Add([pscustomobject]@{ TestUrl = 'http://crl.adobe.com'; StatusCode = 404; Description = 'Adobe Certificate Revocation List'; IgnoreCertificateValidationErrors=$false })
6466

65-
$data.Add([pscustomobject]@{ TestUrl = 'http://crl.adobe.com'; UnblockUrl = 'http://crl.adobe.com'; StatusCode = 404; Description = 'Adobe Certificate Revocation List'; IgnoreCertificateValidationErrors=$false })
66-
6767
$results = New-Object System.Collections.Generic.List[pscustomobject]
6868

6969
$data | ForEach-Object {
70-
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -UnblockUrl $_.UnblockUrl -ExpectedStatusCode $_.StatusCode -Description $_.Description -IgnoreCertificateValidationErrors:($_.IgnoreCertificateValidationErrors) -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
70+
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -ExpectedStatusCode $_.StatusCode -Description $_.Description -IgnoreCertificateValidationErrors:($_.IgnoreCertificateValidationErrors) -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
7171
$results.Add($connectivity)
72-
}
72+
}
7373

7474
return $results
7575
}

Examples/Adobe/ARMUpdate/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
| http://ardownload2.adobe.com | http://ardownload2.adobe.com | Adobe incremental updates download |
2222
| https://ardownload2.adobe.com| https://ardownload2.adobe.com | Adobe incremental updates download |
2323
| http://crl.adobe.com| http://crl.adobe.com | Adobe Certificate Revocation List |
24-
24+
2525
### References
2626
* [Adobe Enterprise Toolkit >> Enterprise Administration Guide >> Service and Online Feature Configuration - Endpoint Configuration](https://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/services.html#endpoint-configuration)

Examples/Apple/MacOSUpdate/MacOSUpdateConnectivity.psm1

+24-26
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Import-Module -Name HttpConnectivityTester -Force
66
# Import-Module .\MacOSUpdateConnectivity.psm1
77

88
# 2. run one of the following:
9-
# $connectivity = Get-MacOSUpdateConnectivity
9+
# $connectivity = Get-MacOSUpdateConnectivity
1010
# $connectivity = Get-MacOSUpdateConnectivity -Verbose
11-
# $connectivity = Get-MacOSUpdateConnectivity -PerformBlueCoatLookup
11+
# $connectivity = Get-MacOSUpdateConnectivity -PerformBlueCoatLookup
1212
# $connectivity = Get-MacOSUpdateConnectivity -Verbose -PerformBlueCoatLookup
1313

1414
# 3. filter results:
@@ -19,54 +19,52 @@ Import-Module -Name HttpConnectivityTester -Force
1919

2020
Function Get-MacOSUpdateConnectivity() {
2121
<#
22-
.SYNOPSIS
22+
.SYNOPSIS
2323
Gets connectivity information for macOS updates.
24-
25-
.DESCRIPTION
24+
25+
.DESCRIPTION
2626
Gets connectivity information for macOS updates.
27-
28-
.PARAMETER PerformBlueCoatLookup
27+
28+
.PARAMETER PerformBlueCoatLookup
2929
Use Symantec BlueCoat SiteReview to lookup what SiteReview category the URL is in.
30-
31-
.EXAMPLE
30+
31+
.EXAMPLE
3232
Get-MacOSUpdateConnectivity
33-
34-
.EXAMPLE
33+
34+
.EXAMPLE
3535
Get-MacOSUpdateConnectivity -Verbose
36-
37-
.EXAMPLE
36+
37+
.EXAMPLE
3838
Get-MacOSUpdateConnectivity -PerformBlueCoatLookup
39-
40-
.EXAMPLE
39+
40+
.EXAMPLE
4141
Get-MacOSUpdateConnectivity -Verbose -PerformBlueCoatLookup
4242
#>
4343
[CmdletBinding()]
4444
[OutputType([System.Collections.Generic.List[pscustomobject]])]
45-
Param(
45+
Param(
4646
[Parameter(Mandatory=$false, HelpMessage='Whether to perform a BlueCoat Site Review lookup on the URL. Warning: The BlueCoat Site Review REST API is rate limited.')]
4747
[switch]$PerformBluecoatLookup
4848
)
4949

5050
$parameters = $PSBoundParameters
5151

52-
$isVerbose = $verbosePreference -eq 'Continue'
52+
$isVerbose = $verbosePreference -eq 'Continue'
5353

5454
$data = New-Object System.Collections.Generic.List[pscustomobject]
55-
56-
$data.Add([pscustomobject]@{ TestUrl = 'https://swscan.apple.com'; UnblockUrl = 'https://swscan.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$false })
57-
$data.Add([pscustomobject]@{ TestUrl = 'https://swcdnlocator.apple.com'; UnblockUrl = 'https://swcdnlocator.apple.com'; StatusCode = 501; Description = ''; IgnoreCertificateValidationErrors=$false })
5855

59-
# $data.Add([pscustomobject]@{ TestUrl = 'https://swquery.apple.com'; UnblockUrl = 'https://swquery.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$false }) # DNS failure
60-
$data.Add([pscustomobject]@{ TestUrl = 'https://swdownload.apple.com'; UnblockUrl = 'https://swdownload.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$true })
61-
$data.Add([pscustomobject]@{ TestUrl = 'https://swcdn.apple.com'; UnblockUrl = 'https://swcdn.apple.com'; StatusCode = 404; Description = ''; IgnoreCertificateValidationErrors=$true })
62-
$data.Add([pscustomobject]@{ TestUrl = 'https://swdist.apple.com'; UnblockUrl = 'https://swdist.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$false })
56+
$data.Add([pscustomobject]@{ TestUrl = 'https://swscan.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$false })
57+
$data.Add([pscustomobject]@{ TestUrl = 'https://swcdnlocator.apple.com'; StatusCode = 501; Description = ''; IgnoreCertificateValidationErrors=$false })
58+
$data.Add([pscustomobject]@{ TestUrl = 'https://swdownload.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$true })
59+
$data.Add([pscustomobject]@{ TestUrl = 'https://swcdn.apple.com'; StatusCode = 404; Description = ''; IgnoreCertificateValidationErrors=$true })
60+
$data.Add([pscustomobject]@{ TestUrl = 'https://swdist.apple.com'; StatusCode = 403; Description = ''; IgnoreCertificateValidationErrors=$false })
6361

6462
$results = New-Object System.Collections.Generic.List[pscustomobject]
6563

6664
$data | ForEach-Object {
67-
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -UnblockUrl $_.UnblockUrl -ExpectedStatusCode $_.StatusCode -Description $_.Description -IgnoreCertificateValidationErrors:($_.IgnoreCertificateValidationErrors) -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
65+
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -ExpectedStatusCode $_.StatusCode -Description $_.Description -IgnoreCertificateValidationErrors:($_.IgnoreCertificateValidationErrors) -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
6866
$results.Add($connectivity)
69-
}
67+
}
7068

7169
return $results
7270
}

Examples/Apple/MacOSUpdate/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
| https://swdownload.apple.com | https://swdownload.apple.com | |
2020
| https://swcdn.apple.com | https://swcdn.apple.com | |
2121
| https://swdist.apple.com | https://swdist.apple.com | |
22-
22+
2323
### References
2424
* [Requirements for Software Update service](https://support.apple.com/en-us/HT200149)
2525
* [OS X: Server addresses used by Software Update](https://support.apple.com/en-us/HT202943)

Examples/Google/ChromeBrowser/ChromeUpdateConnectivity.psm1

+32-28
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Import-Module -Name HttpConnectivityTester -Force
66
# Import-Module .\ChromeUpdateConnectivity.psm1
77

88
# 2. run one of the following:
9-
# $connectivity = Get-ChromeUpdateConnectivity
9+
# $connectivity = Get-ChromeUpdateConnectivity
1010
# $connectivity = Get-ChromeUpdateConnectivity -Verbose
11-
# $connectivity = Get-ChromeUpdateConnectivity -PerformBlueCoatLookup
11+
# $connectivity = Get-ChromeUpdateConnectivity -PerformBlueCoatLookup
1212
# $connectivity = Get-ChromeUpdateConnectivity -Verbose -PerformBlueCoatLookup
1313

1414
# 3. filter results:
@@ -19,55 +19,59 @@ Import-Module -Name HttpConnectivityTester -Force
1919

2020
Function Get-ChromeUpdateConnectivity() {
2121
<#
22-
.SYNOPSIS
22+
.SYNOPSIS
2323
Gets connectivity information for Chrome updates.
24-
25-
.DESCRIPTION
24+
25+
.DESCRIPTION
2626
Gets connectivity information for Chrome updates.
27-
28-
.PARAMETER PerformBlueCoatLookup
27+
28+
.PARAMETER PerformBlueCoatLookup
2929
Use Symantec BlueCoat SiteReview to lookup what SiteReview category the URL is in.
30-
31-
.EXAMPLE
30+
31+
.EXAMPLE
3232
Get-ChromeUpdateConnectivity
33-
34-
.EXAMPLE
33+
34+
.EXAMPLE
3535
Get-ChromeUpdateConnectivity -Verbose
36-
37-
.EXAMPLE
36+
37+
.EXAMPLE
3838
Get-ChromeUpdateConnectivity -PerformBlueCoatLookup
39-
40-
.EXAMPLE
39+
40+
.EXAMPLE
4141
Get-ChromeUpdateConnectivity -Verbose -PerformBlueCoatLookup
4242
#>
4343
[CmdletBinding()]
4444
[OutputType([System.Collections.Generic.List[pscustomobject]])]
45-
Param(
45+
Param(
4646
[Parameter(Mandatory=$false, HelpMessage='Whether to perform a BlueCoat Site Review lookup on the URL. Warning: The BlueCoat Site Review REST API is rate limited.')]
4747
[switch]$PerformBluecoatLookup
4848
)
4949

5050
$parameters = $PSBoundParameters
5151

52-
$isVerbose = $verbosePreference -eq 'Continue'
52+
$isVerbose = $verbosePreference -eq 'Continue'
5353

5454
$data = New-Object System.Collections.Generic.List[pscustomobject]
55-
56-
$data.Add([pscustomobject]@{ TestUrl = 'http://redirector.gvt1.com'; UnblockUrl = 'http://*.gvt1.com'; StatusCode = 404; Description = '' })
57-
$data.Add([pscustomobject]@{ TestUrl = 'https://redirector.gvt1.com'; UnblockUrl = 'https://*.gvt1.com'; StatusCode = 404; Description = '' })
58-
$data.Add([pscustomobject]@{ TestUrl = 'http://update.googleapis.com/service/update2'; UnblockUrl = 'http://update.googleapis.com'; StatusCode = 404; Description = '' })
59-
$data.Add([pscustomobject]@{ TestUrl = 'https://update.googleapis.com/service/update2'; UnblockUrl = 'https://update.googleapis.com'; StatusCode = 404; Description = '' })
60-
$data.Add([pscustomobject]@{ TestUrl = 'https://clients2.google.com'; UnblockUrl = 'https://clients2.google.com'; StatusCode = 404; Description = '' })
61-
$data.Add([pscustomobject]@{ TestUrl = 'https://clients5.google.com'; UnblockUrl = 'https://clients5.google.com'; StatusCode = 404; Description = '' })
62-
$data.Add([pscustomobject]@{ TestUrl = 'https://tools.google.com'; UnblockUrl = 'https://tools.google.com'; StatusCode = 200; Description = '' })
63-
$data.Add([pscustomobject]@{ TestUrl = 'http://dl.google.com'; UnblockUrl = 'http://dl.google.com'; StatusCode = 200; Description = '' })
55+
56+
$data.Add([pscustomobject]@{ TestUrl = 'http://redirector.gvt1.com'; UrlPattern = 'http://*.gvt1.com'; StatusCode = 404; Description = '' })
57+
$data.Add([pscustomobject]@{ TestUrl = 'https://redirector.gvt1.com'; UrlPattern = 'https://*.gvt1.com'; StatusCode = 404; Description = '' })
58+
$data.Add([pscustomobject]@{ TestUrl = 'http://update.googleapis.com/service/update2'; StatusCode = 404; Description = '' })
59+
$data.Add([pscustomobject]@{ TestUrl = 'https://update.googleapis.com/service/update2'; StatusCode = 404; Description = '' })
60+
$data.Add([pscustomobject]@{ TestUrl = 'https://clients2.google.com'; StatusCode = 404; Description = '' })
61+
$data.Add([pscustomobject]@{ TestUrl = 'https://clients5.google.com'; StatusCode = 404; Description = '' })
62+
$data.Add([pscustomobject]@{ TestUrl = 'https://tools.google.com'; StatusCode = 200; Description = '' })
63+
$data.Add([pscustomobject]@{ TestUrl = 'http://dl.google.com'; StatusCode = 200; Description = '' })
6464

6565
$results = New-Object System.Collections.Generic.List[pscustomobject]
6666

6767
$data | ForEach-Object {
68-
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -UnblockUrl $_.UnblockUrl -ExpectedStatusCode $_.StatusCode -Description $_.Description -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
68+
if ('UrlPattern' -in $_.PSObject.Properties.Name) {
69+
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -UrlPattern $_.UrlPattern -ExpectedStatusCode $_.StatusCode -Description $_.Description -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
70+
} else {
71+
$connectivity = Get-HttpConnectivity -TestUrl $_.TestUrl -ExpectedStatusCode $_.StatusCode -Description $_.Description -PerformBluecoatLookup:$PerformBluecoatLookup -Verbose:$isVerbose
72+
}
6973
$results.Add($connectivity)
70-
}
74+
}
7175

7276
return $results
7377
}

Examples/Google/ChromeBrowser/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
| Test URL | URL to Unblock | Description |
1616
| -- | -- | -- |
1717
| http://redirector.gvt1.com | http://*.gvt1.com | |
18-
| https://redirector.gvt1.com | https://*.gvt1.com | |
19-
| http://update.googleapis.com/service/update2 | http://update.googleapis.com | |
20-
| https://update.googleapis.com/service/update2 | https://update.googleapis.com | |
18+
| https://redirector.gvt1.com | https://*.gvt1.com | |
19+
| http://update.googleapis.com/service/update2 | http://update.googleapis.com | |
20+
| https://update.googleapis.com/service/update2 | https://update.googleapis.com | |
2121
| https://clients2.google.com | https://clients2.google.com | |
2222
| https://clients5.google.com | https://clients5.google.com | |
2323
| https://tools.google.com | https://tools.google.com | |
2424
| http://dl.google.com | http://dl.google.com | |
25-
25+
2626
### References
2727
* [Manage Chrome updates (Windows) - Questions - What URLs are used for Chrome Browser updates?](https://support.google.com/chrome/a/answer/6350036?hl=en)

Examples/Microsoft/WindowsAnalytics/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Windows Analytics Update Compliance
3333
| https://adl.windows.com | https://adl.windows.com | Allows the compatibility update to receive the latest compatibility data from Microsoft. |
3434
| https://watson.telemetry.microsoft.com | https://watson.telemetry.microsoft.com | Windows Error Reporting (WER); required for Device Health and Update Compliance AV reports. Not used by Upgrade Readiness. |
3535
| https://oca.telemetry.microsoft.com | https://oca.telemetry.microsoft.com | Online Crash Analysis; required for Device Health and Update Compliance AV reports. Not used by Upgrade Readiness. |
36-
36+
3737

3838
Windows Analytics Upgrade Readiness
3939

@@ -42,7 +42,7 @@ Windows Analytics Upgrade Readiness
4242
| https://v10.events.data.microsoft.com | https://v10.events.data.microsoft.com | Connected User Experience and Diagnostic component endpoint for use with Windows 10 1803 and later. |
4343
| https://v10.vortex-win.data.microsoft.com | https://v10.vortex-win.data.microsoft.com | Connected User Experience and Diagnostic component endpoint for Windows 10 1709 and earlier. |
4444
| https://vortex.data.microsoft.com | https://v10.vortex-win.data.microsoft.com | Connected User Experience and Diagnostic component endpoint for operating systems older than Windows 10. |
45-
| https://settings-win.data.microsoft.com | https://settings-win.data.microsoft.com | Enables the compatibility update to send data to Microsoft. |
45+
| https://settings-win.data.microsoft.com | https://settings-win.data.microsoft.com | Enables the compatibility update to send data to Microsoft. |
4646
| https://adl.windows.com | https://adl.windows.com | Allows the compatibility update to receive the latest compatibility data from Microsoft. |
4747

4848
### References

0 commit comments

Comments
 (0)