Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Describe "Get-IshDocumentObjData" -Tags "Read" {
Set-IshMetadataField -IshSession $ishSession -Name "FSTATUS" -Level Lng -ValueType Element -Value $ishStatusDraft
$ishObjectTopicA = Add-IshDocumentObj -IshSession $ishSession -FolderId $ishFolderTopic.IshFolderRef -IshType ISHModule -Lng $ishLng -Metadata $ishTopicMetadata -FileContent $ditaTopicFileContent
$ishObjectLibraryA = Add-IshDocumentObj -IshSession $ishSession -FolderId $ishFolderLib.IshFolderRef -IshType ISHLibrary -Lng $ishLng -Metadata $ishTopicMetadata -FileContent $ditaTopicFileContent

$ishLongTitleMetadata = Set-IshMetadataField -IshSession $ishSession -Name "FTITLE" -Level Logical -Value ("LongTitle" + ("A" * 250)) |
Set-IshMetadataField -IshSession $ishSession -Name "FAUTHOR" -Level Lng -ValueType Element -Value $ishUserAuthor |
Set-IshMetadataField -IshSession $ishSession -Name "FSTATUS" -Level Lng -ValueType Element -Value $ishStatusDraft
$ishObjectLongTitleTopic = Add-IshDocumentObj -IshSession $ishSession -FolderId $ishFolderTopic.IshFolderRef -IshType ISHModule -Lng $ishLng -Metadata $ishLongTitleMetadata -FileContent $ditaTopicFileContent
}
Context "Get-IshDocumentObjData FolderPathGroup" {
It "Parameter IshSession/IshObject invalid" {
Expand All @@ -54,6 +59,10 @@ Describe "Get-IshDocumentObjData" -Tags "Read" {
Write-Debug ("fileContent.Length[" + $fileContent.Length + "] fileContent.GetType()[" + $fileContent.GetType() + "] fileContent[" +$fileContent+"]")
$fileContent -notlike "*ISHRemoteStringCond*" | Should -Be $true
}
It "FolderPath with long FTITLE returns FileInfo without PathTooLongException" {
$fileInfo = Get-IshDocumentObjData -IshSession $ishSession -IshObject $ishObjectLongTitleTopic -FolderPath (Join-Path $tempFolder $cmdletName)
$fileInfo.GetType().Name | Should -BeExactly "FileInfo"
}
}
Context "Get-IshDocumentObjData IshObjectGroup" {
It "GetType().Name" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Trisoft.ISHRemote.HelperClasses
internal static class FileNameHelper
{
private const int MaximumFolderPathSize = 248;
private const int MaximumFilePathSize = 260;
private const int MaximumFilePathSize = 259;

private const int MaximumFileNameSize = 120;

Expand Down
Loading