Skip to content

Commit

Permalink
+ API/CLI - finalize regression testing strategy #38
Browse files Browse the repository at this point in the history
+ install -force (all providers and APIs)
  • Loading branch information
SubPointSupport committed Apr 4, 2017
1 parent 6b26bfd commit 483bb53
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions Build/Pester/metapack.cli.provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,32 @@ Describe "metapack.cli.provision.spmeta2.o365" {
($exitCode) | Should Be 0
}

#It "Can install [$m2PackageId] package --force" {
It "Can install [$m2PackageId] package --force" {

# $args = @("install",
# "--id $m2PackageId",
# "--url $siteUrl"
# "--username", $userName,
# "--userpassword", $userPassword
# "--spversion", "o365",
# "--source", $nugetSource
# "--verbose",
# "--force"
# )

# $result = (RunMetaPackCLI $args $true)

# $output = $result.Output
# $exitCode = $result.ExitCode

# # no exception in output
# if($result.UseShellExecute -eq $false) {
# (OutputHasError $output) | Should Be $false
# }
$args = @("install",
"--id $m2PackageId",
"--url $siteUrl"
"--username", $userName,
"--userpassword", $userPassword
"--spversion", "o365",
"--source", $nugetSource
"--verbose",
"--force"
)

$result = (RunMetaPackCLI $args $true)

$output = $result.Output
$exitCode = $result.ExitCode

# no exception in output
if($result.UseShellExecute -eq $false) {
(OutputHasError $output) | Should Be $false
}

# # exist code, please 0
# ($exitCode) | Should Be 0
#}
# exist code, please 0
($exitCode) | Should Be 0
}
}

Describe "metapack.cli.provision.pnp.o365" {
Expand Down Expand Up @@ -90,32 +90,32 @@ Describe "metapack.cli.provision.pnp.o365" {
($exitCode) | Should Be 0
}

#It "Can install [$spPnPPackageId] package --force" {
It "Can install [$spPnPPackageId] package --force" {

# $args = @("install",
# "--id $spPnPPackageId",
# "--url $siteUrl"
# "--username", $userName,
# "--userpassword", $userPassword
# "--spversion", "o365",
# "--source", $nugetSource
# "--verbose",
# "--force"
# )

# $result = (RunMetaPackCLI $args $true)

# $output = $result.Output
# $exitCode = $result.ExitCode

# # no exception in output
# if($result.UseShellExecute -eq $false) {
# (OutputHasError $output) | Should Be $false
# }
$args = @("install",
"--id $spPnPPackageId",
"--url $siteUrl"
"--username", $userName,
"--userpassword", $userPassword
"--spversion", "o365",
"--source", $nugetSource
"--verbose",
"--force"
)

$result = (RunMetaPackCLI $args $true)

$output = $result.Output
$exitCode = $result.ExitCode

# no exception in output
if($result.UseShellExecute -eq $false) {
(OutputHasError $output) | Should Be $false
}

# # exist code, please 0
# ($exitCode) | Should Be 0
#}
# exist code, please 0
($exitCode) | Should Be 0
}
}

# SP2013 CSOM
Expand Down

0 comments on commit 483bb53

Please sign in to comment.