sgtoj / PSConnectWise

PowerShell Module that provide several CmdLets to interact with ConnectWise REST API service.
MIT License
45 stars 13 forks source link

Build Test are Failing after Last Commit(s) #35

Closed sgtoj closed 8 years ago

sgtoj commented 8 years ago

Fix the 3 failures...

Invoking Pester...
Describing CWCompany
   Context Get-CWCompany
    [+] gets company and checks for the id field 1.08s
    [+] gets company and pipes it through the Select-Object cmdlet for the id property 186ms
    [+] gets the id and subject properties of a company by using the -Property param 159ms
    [+] gets companies by passing array of company ids to the -ID param 427ms
    [+] gets list of companies that were piped to the cmdlet 424ms
    [+] gets company based on the -Filter param 297ms
    [+] gets company based on the -Filter param and uses the SizeLimit param 284ms
    [+] gets companies and sorts company id by descending piping cmdlet through Sort-Object cmdlet 405ms
    [+] wildcard search using Identifier parameter with SizeLimit parameter 776ms
    [+] get single company by Identifier parameter 272ms
    [+] wildcard search using Name parameter with SizeLimit parameter 674ms
    [+] get single company by Name parameter 288ms
    [+] wildcard search using Name parameter with Descending parameter 767ms
Describing CWCompanyContact
   Context Get-CWCompanyContact
    [+] gets a single contact 302ms
    [+] gets company contact entries for a company and check that the results is an array 268ms
    [+] gets a single contact from a company and pipes it through the Select-Object cmdlet for the id property of the first object 250ms
    [+] search for contact by first name 259ms
    [+] gets a single contact 131ms
    [+] search for contact by last name 265ms
    [+] wildcard search for contact by first name 387ms
    [+] wildcard search for contact by last name 376ms
    [+] wildcard search with the Descending parameter 380ms
Describing CWConnectionInfo
   Context Get-CWConnectionInfo
    [+] gets server connection information and checks it for the domain 149ms
Describing CWServiceBoard
   Context Get-CWServiceBoard
    [+] gets board and checks for the id field 266ms
    [+] gets board and pipes it through the Select-Object cmdlet for the id property 119ms
    [+] gets boards by passing array of board ids to the -ID param 520ms
    [+] gets list of boards that were piped to the cmdlet 515ms
    [+] gets board based on the -Filter param 224ms
    [+] gets board based on the -Filter param and uses the SizeLimit param 223ms
    [+] gets boards and sorts board id by descending piping cmdlet through Sort-Object cmdlet 680ms
    [+] wildcard search using Name parameter with SizeLimit parameter 216ms
    [+] get single board by Name parameter 211ms
Describing CWServiceBoardStatus
   Context Get-CWServiceBoardStatus
    [+] gets board status and check that the results is an array 405ms
    [+] gets board and pipes it through the Select-Object cmdlet for the id property of the first object 276ms
Describing CWServiceBoardSubtype
   Context Get-CWServiceBoardSubtype
    [+] gets board status and check that the results is an array 868ms
    [+] gets board and pipes it through the Select-Object cmdlet for the id property of the first object 236ms
Describing CWServiceBoardType
   Context Get-CWServiceBoardType
    [+] gets board status and check that the results is an array 501ms
    [+] gets board and pipes it through the Select-Object cmdlet for the id property of the first object 237ms
Describing CWServiceTicket
   Context Get-CWServiceTicket
    [+] gets ticket and checks for the id field 729ms
    [+] gets ticket and pipes it through the Select-Object cmdlet for the id property 275ms
    [+] gets the id and subject properties of a ticket by using the -Property param 283ms
    [+] gets tickets by passing array of ticket ids to the -ID param 1.1s
    [+] gets list of tickets that were piped to the cmdlet 1.14s
    [+] gets ticket based on the -Filter param 755ms
    [+] gets ticket based on the -Filter param and uses the SizeLimit param 1.14s
    [+] gets tickets and sorts ticket id by descending piping cmdlet through Sort-Object cmdlet 1.12s
    [-] wildcard search using Summary parameter with SizeLimit parameter 14.45s
      at <ScriptBlock>, C:\Users\Brian\OneDrive\Development\GitHub\PSConnectWise\test\CWServiceTicket.Tests.ps1: line 78
      Expected: {True}
      But was:  {False}
      78:           $count -gt 0 -and $count -le $sizeLimit | Should Be $true;
      at <ScriptBlock>, C:\Users\Brian\OneDrive\Development\GitHub\PSConnectWise\test\CWServiceTicket.Tests.ps1: line 78
    [+] get tickets by Summary parameter 4.12s
    [+] wildcard search using Filter parameter with Descending parameter 3.2s
   Context New-CWServiceTicket
    [+] create a new service ticket and check for the ticket number 884ms
   Context Update-CWServiceTicket
    [+] change the subject of a ticket 833ms
WARNING: {
  "code": "InvalidObject",
  "message": "ticket object is invalid",
  "errors": [
    {
      "code": "MissingRequiredField",
      "message": "The summary field is required.",
      "resource": "ticket",
      "field": "summary"
    }
  ]
}
    [-] change the status of a ticket 324ms
      at <ScriptBlock>, C:\Users\Brian\OneDrive\Development\GitHub\PSConnectWise\test\CWServiceTicket.Tests.ps1: line 137
      Expected: {True}
      But was:  {False}
      137:          $ticket.status.id -eq $statusID | Should Be $true; 
      at <ScriptBlock>, C:\Users\Brian\OneDrive\Development\GitHub\PSConnectWise\test\CWServiceTicket.Tests.ps1: line 137
WARNING: {
  "code": "InvalidObject",
  "message": "ticket object is invalid",
  "errors": [
    {
      "code": "MissingRequiredField",
      "message": "The summary field is required.",
      "resource": "ticket",
      "field": "summary"
    }
  ]
}
    [-] change the status of a ticket and set the board ID 310ms
      at <ScriptBlock>, C:\Users\Brian\OneDrive\Development\GitHub\PSConnectWise\test\CWServiceTicket.Tests.ps1: line 146
      Expected: {True}
      But was:  {False}
      146:          $ticket.status.id -eq $statusID -and $ticket.board.id -eq $boardID | Should Be $true; 
      at <ScriptBlock>, C:\Users\Brian\OneDrive\Development\GitHub\PSConnectWise\test\CWServiceTicket.Tests.ps1: line 146
    [+] add a ticket note to a ticket 958ms
   Context Remove-CWServiceTicket
    [+] deletes a ticket and check for a return value of true if successful 1.59s
Describing CWServiceTicketNote
   Context Get-CWServiceTicketNote
    [+] gets ticket note entries for a ticket and check that the results is an array 976ms
    [+] gets a single note from a ticket and pipes it through the Select-Object cmdlet for the id property of the first object 277ms
   Context Add-CWServiceTicketNote
    [+] add a new ticket note to a ticket then checks the return object for the ticket id 376ms
Describing CWSystemMember
   Context Get-CWSystemMember
    [+] gets member and checks for the id field 285ms
    [+] gets member and pipes it through the Select-Object cmdlet for the id property 135ms
    [+] gets members by passing array of member ids to the -ID param 270ms
    [+] gets list of members that were piped to the cmdlet 261ms
    [+] gets member based on the -Filter param 273ms
    [+] gets member based on the -Filter param and uses the SizeLimit param 271ms
    [+] gets members and sorts member id by descending piping cmdlet through Sort-Object cmdlet 265ms
    [+] get member using username parameter via Filter and SizeLimit parameter 263ms
    [+] get single member by First and Last parameters 274ms
    [+] get single member by Username parameter 160ms
Describing CWTimeEntry
   Context Add-CWTimeEntry
    [+] create a new time entry on a ticket 832ms
    [+] create a new time entry on a ticket by passing a hashtable 619ms
    [+] create a new multi-day time entry on a ticket 1s
   Context Get-CWTimeEntry
    [+] gets time entries for a ticket by using the TicketID parameter 568ms
    [+] gets ticket and pipes it through the Select-Object cmdlet for the id property 192ms
    [+] gets list of time entries that were piped to the cmdlet 729ms
    [+] gets tickets and sorts ticket id by descending piping cmdlet through Sort-Object cmdlet 502ms
   Context Update-CWTimeEntry
    [+] change the internal note of a ticket 360ms
    [+] change the status of a ticket and set the board ID 363ms
   Context Remove-CWTimeEntry
What if: Performing the operation "Remove-CWTimeEntry" on target "9311309".
    [+] deletes a ticket and check for a return value of true if successful with the WhatIf parameter 26ms
Describing PrivateHelpers
   Context Split-TimeSpan
    [+] splits time and checks correct number of returned entries 56ms
Tests completed in 56.89s
Passed: 76 Failed: 3 Skipped: 0 Pending: 0 Inconclusive: 0
Completed Test task in task runner.