-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFakes.ps1
More file actions
38 lines (29 loc) · 800 Bytes
/
Fakes.ps1
File metadata and controls
38 lines (29 loc) · 800 Bytes
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
# Fake functions to simulate the behavior of other modules.
function Get-Secret {
param (
[Parameter(Mandatory)]
[string] $Name,
[Parameter(Mandatory)]
[string] $Vault
)
"aaaa" | ConvertTo-SecureString -AsPlainText -Force
}
function Send-EmailMessage {
param (
[Parameter(Mandatory)]
[hashtable] $From,
[Parameter(Mandatory)]
[string] $To,
[Parameter(Mandatory)]
[string] $Server,
[Parameter(Mandatory)]
[string] $HTML,
[Parameter(Mandatory)]
[string] $Subject,
[Parameter(Mandatory)]
[string] $Attachment,
[Parameter(Mandatory)]
[SecureString] $Password
)
Write-Host "Sending email to: $To with attachment: $Attachment"
}