Permalink
Browse files

Replaces Test007 with Test011 for issue #100

  • Loading branch information...
1 parent 285037f commit 807dd74ac1518c2fd252623f70f7125ec3ea5acb @chelnak chelnak committed Jan 6, 2017
@@ -1,56 +0,0 @@
-# --- Get data for the tests
-$JSON = Get-Content .\Variables.json -Raw | ConvertFrom-JSON
-
-# --- Startup
-$Connection = Connect-vRAServer -Server $JSON.Connection.vRAAppliance -Tenant $JSON.Connection.Tenant -Username $JSON.Connection.Username -Password $JSON.Connection.Password -IgnoreCertRequirements
-
-# --- Tests
-Describe -Name 'Content Package Tests' -Fixture {
-
- It -Name "Create named Content Package $($JSON.ContentPackage.Name)" -Test {
-
- $ContentPackageA = New-vRAContentPackage -Name $JSON.ContentPackage.Name -Description $JSON.ContentPackage.Description -BlueprintName $JSON.ContentPackage.BlueprintName
- $ContentPackageA.Name | Should Be $JSON.ContentPackage.Name
- }
-
- It -Name "Return named Content Package $($JSON.ContentPackage.Name)" -Test {
-
- $ContentPackageB = Get-vRAContentPackage -Name $JSON.ContentPackage.Name
- $ContentPackageB.Name | Should Be $JSON.ContentPackage.Name
- }
-
- It -Name "Export named Content Package $($JSON.ContentPackage.Name)" -Test {
-
- $ContentPackageC = Export-vRAContentPackage -Name $JSON.ContentPackage.Name -Path $JSON.ContentPackage.Path
- $ContentPackageC.FullName | Should Be $JSON.ContentPackage.FileName
- }
-
- It -Name "Remove named Content Package $($JSON.ContentPackage.Name)" -Test {
-
- Remove-vRAContentPackage -Name $JSON.ContentPackage.Name -Confirm:$false
-
- try {
-
- $ContentPackageD = Get-vRAContentPackage -Name $JSON.ContentPackage.Name
- }
- catch [Exception]{
-
- }
- $ContentPackageD | Should Be $null
- }
-
- It -Name "Test named Content Package $($JSON.ContentPackage.Name)" -Test {
-
- $TestStatus = Test-vRAContentPackage -File $JSON.ContentPackage.FileName
- $TestStatus.operationStatus | Should Be $JSON.ContentPackage.TestStatusMessage
- }
-
- It -Name "Import named Content Package $($JSON.ContentPackage.Name)" -Test {
-
- $ImportStatus = Import-vRAContentPackage -File $JSON.ContentPackage.FileName -Confirm:$false
- $ImportStatus.operationResults.Messages | Should Be $JSON.ContentPackage.ImportStatusMessage
- }
-}
-
-# --- Cleanup
-Disconnect-vRAServer -Confirm:$false

0 comments on commit 807dd74

Please sign in to comment.