Adds module code structure, build script, test script, and API bindings

This commit is contained in:
dmilov
2020-09-28 11:25:47 +03:00
parent fe6932a5fe
commit 64e0b52224
28 changed files with 3122 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
#**************************************************************************
# Copyright (c) VMware, Inc. All rights reserved.
#**************************************************************************
param(
[Parameter(Mandatory = $true)]
[string]
$VcAddress,
[Parameter(Mandatory = $true)]
[string]
$VcUser,
[Parameter(Mandatory = $true)]
[string]
$VcUserPassword
)
function Test-PesterIsAvailable() {
$pesterModule = Get-Module Pester -List
if ($pesterModule -eq $null) {
throw "Pester Module is not available"
}
}
Test-PesterIsAvailable
$testFiles = Get-ChildItem -Path $PSScriptRoot -Filter "*.Tests.ps1"
Invoke-Pester `
-Script @{
Path = $PSScriptRoot
Parameters = @{
VcAddress = $VcAddress
VcUser = $VcUser
VcUserPassword = $VcUserPassword
}
}