You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started.md
+72-3Lines changed: 72 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,75 @@ A simple example is to change the param type from String to SecureString, to ach
80
80
4. Call the internal cmdlet with the updated PSBoundParameters https://github.com/azure/azurestack-powershell/blob/master/src/Azs.Backup.Admin/custom/Set-AzsBackupConfiguration.ps1
81
81
82
82
### Tests
83
-
Pester tests are required to make sure that cmdlets are validated against a live azurestack environment. Also to make sure that the future changes are not breaking the cmdlets. We follow the record and playback framework used by the azure powershell team.
84
-
The docs for authoring the tests can be found at the following wiki
The env.json file holds environment parameters. The parameter values in this file must be consistent with the values in the recording file. If they are not, you should replace the ones in the recording files with the parameters from the env.json or vice versa depending on which is more convenient.
# Loads a common file containing common features for tests, including an array of tests to skip, shared variables, and common functions.
142
+
. $PSScriptRoot\Common.ps1
143
+
144
+
# Run the test, unless it is in list of $global:SkippedTests instantiated in Common.ps1.
145
+
It "MyTest" -Skip:$('MyTest' -in $global:SkippedTests) {
146
+
Write-Host "My Azure location: $($env.Location)"
147
+
}
148
+
}
149
+
```
150
+
151
+
#### Official Autorest Documentation
152
+
Pester tests are required to make sure that cmdlets are validated against a live azurestack environment. Also to make sure that the future changes are not breaking the cmdlets. We follow the record and playback framework used by the azure powershell team.
153
+
The docs for authoring the tests can be found at the following wiki:
0 commit comments