feat: add comprehensive Pester and standalone E2E test suite (96 tests) and code audit report
This commit is contained in:
@@ -566,7 +566,7 @@ function New-NetAppQtreeAction {
|
||||
$body["svm"] = @{ name = $svm }
|
||||
}
|
||||
|
||||
$res = Invoke-NetAppRestRequest -ClusterEndpoint $endpoint -UriPath "/api/storage/qtrees" -Method "POST" -Body $body -Username $user -Password $pass -IgnoreSsl $ignoreSsl -TimeoutSec $TimeoutSec
|
||||
$null = Invoke-NetAppRestRequest -ClusterEndpoint $endpoint -UriPath "/api/storage/qtrees" -Method "POST" -Body $body -Username $user -Password $pass -IgnoreSsl $ignoreSsl -TimeoutSec $TimeoutSec
|
||||
|
||||
return [PSCustomObject]@{
|
||||
Success = $true
|
||||
@@ -624,7 +624,7 @@ function New-NetAppShareAction {
|
||||
$body["svm"] = @{ name = $svm }
|
||||
}
|
||||
|
||||
$res = Invoke-NetAppRestRequest -ClusterEndpoint $endpoint -UriPath "/api/protocols/cifs/shares" -Method "POST" -Body $body -Username $user -Password $pass -IgnoreSsl $ignoreSsl -TimeoutSec $TimeoutSec
|
||||
$null = Invoke-NetAppRestRequest -ClusterEndpoint $endpoint -UriPath "/api/protocols/cifs/shares" -Method "POST" -Body $body -Username $user -Password $pass -IgnoreSsl $ignoreSsl -TimeoutSec $TimeoutSec
|
||||
|
||||
return [PSCustomObject]@{
|
||||
Success = $true
|
||||
@@ -711,7 +711,7 @@ function Set-NetAppShareAcl {
|
||||
|
||||
return [PSCustomObject]@{
|
||||
Success = $false
|
||||
Message = "NetApp Share ACL 반영 실패 ($MaxRetries회 재시도 초과): $lastError"
|
||||
Message = "NetApp Share ACL 반영 실패 ($($MaxRetries)회 재시도 초과): $lastError"
|
||||
Attempts = $attempt
|
||||
IsLive = $true
|
||||
}
|
||||
@@ -772,7 +772,7 @@ function Set-NetAppQuotaRule {
|
||||
elseif ($QuotaType -eq "group") { $body["group"] = @{ name = $Target } }
|
||||
}
|
||||
|
||||
$res = Invoke-NetAppRestRequest -ClusterEndpoint $endpoint -UriPath "/api/storage/quota/rules" -Method "POST" -Body $body -Username $user -Password $pass -IgnoreSsl $ignoreSsl -TimeoutSec $TimeoutSec
|
||||
$null = Invoke-NetAppRestRequest -ClusterEndpoint $endpoint -UriPath "/api/storage/quota/rules" -Method "POST" -Body $body -Username $user -Password $pass -IgnoreSsl $ignoreSsl -TimeoutSec $TimeoutSec
|
||||
|
||||
return [PSCustomObject]@{
|
||||
Success = $true
|
||||
|
||||
Reference in New Issue
Block a user