-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTalkEnvironment.Test.ps1
57 lines (57 loc) · 2.33 KB
/
TalkEnvironment.Test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cls
Describe ("Environment checks for the CI talk") {
Context "Apps" {
It "ZoomIt should be running" {
(Get-Process ZoomIt -ErrorAction SilentlyContinue).Count | Should Be 1
}
It "Slack should be closed" {
(Get-Process slack* -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Teams should be closed" {
(Get-Process Teams -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Outlook should be closed" {
(Get-Process OUTLOOK -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Word should be closed" {
(Get-Process WINWORD -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Excel should be closed" {
(Get-Process EXCEL -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Remote Desktop Connection Manager should be closed" {
(Get-Process RDCMan -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Skype for Business should be closed" {
(Get-Process lync -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "MS Internet Explorer Should be closed" {
(Get-Process iexplore -ErrorAction SilentlyContinue).COunt | Should Be 0
}
It "GitHub client should be closed" {
(Get-Process GitHub -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "RoboMongo should be closed" {
(Get-Process Robomongo -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "Skitch should be closed" {
(Get-Process Skitch -ErrorAction SilentlyContinue).Count | Should Be 0
}
It "NginX should be running" {
(Get-Process nginx -ErrorAction SilentlyContinue).Count | Should Be 2
}
It "Dropbox should be closed" {
(Get-Process Dropbox -ErrorAction SilentlyContinue).Count | Should Be 0
}
}
Context "Machine" {
It "Should be plugged in" {
(Get-WmiObject -Class BatteryStatus -Namespace root\wmi).PowerOnline[0] | Should Be $true
}
}
Context "Files" {
It "Presentation should be present" {
Test-Path "C:\Presentations\SQL Server & Continuous Integration\index.html" | Should Be $true
}
}
}