Skip to content

Instantly share code, notes, and snippets.

@kvprasoon
Last active July 17, 2023 19:26
Show Gist options
  • Save kvprasoon/2dd5fc64eec0653e4bdde6a18da526ff to your computer and use it in GitHub Desktop.
Save kvprasoon/2dd5fc64eec0653e4bdde6a18da526ff to your computer and use it in GitHub Desktop.
Json config for Pester with remark
{
"service": {
"suggestion": {
"startmode": "Open PowerShell as administrator and run 'Set-Service -Name {0} -StartType {1}'",
"status": "Make the service '{0}' in {1} state."
},
"expectedconfiguration": [
{
"name": "BITS",
"status": "running",
"startmode": "automatic"
},
{
"name": "wuauserv",
"status": "running",
"startmode": "automatic"
}
]
},
"folderpermission": {
"suggestion": {
"message": "Give {0} permission for {1} user on {2} folder."
},
"expectedconfiguration": [
{
"path": "c:\\Deployment\\config",
"user": "RDFC\\Test",
"permission": "FullControl"
},
{
"path": "c:\\Deployment\\files",
"user": "RDFC\\kvprasoon",
"permission": "FullControl"
}
]
},
"firewallrule": {
"suggestion": {
"rulename": "Open wf.msc and create an {0} rule with name '{1}'.",
"direction": "Open wf.msc and create the firewall rule '{0}' for {1} connection."
},
"expectedconfiguration": [
{
"rulename": "Rule1",
"direction": "Inbound"
},
{
"rulename": "Rule2",
"direction": "Outbound"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment