tests/Tasks.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
BeforeAll {
    $TMAD50 = New-TMSession 
    $TaskName = 'Test Task - Created by Pester'
}

Describe 'Get-TMTask' {

}



Describe 'New-TMTask' {
    Context 'Without Dependencies' {
        BeforeAll {
            $NewTaskSplat = @{
                TMSession = "TMAD60"
                Title = "Test Task - w/ Dependencies"
                EventId = 460
                ProjectId = 6269
                Status = "Ready"
                Team = 'SYS_ADMIN'
                AssignedToId = 6246
                AssetId = 232053
                Successor = 369638, 411521
                Predecessor = 411702
                Note = "This was created via PowerShell"
                Passthru = $true
                ActionId = 178
            }
        
        }
    }
    Context 'With Dependencies' {

    }
    New-TMTask @NewTaskSplat
    Should -
}