Skip to content

Add Governance Assignment cmdlets #100

Add Governance Assignment cmdlets

Add Governance Assignment cmdlets #100

GitHub Actions / MacOs Test Results failed Apr 30, 2024 in 0s

6 fail, 39 pass in 3s

45 tests  ±0   39 ✅ +1   3s ⏱️ -1s
 7 suites ±0    0 💤 ±0 
 1 files   ±0    6 ❌  - 1 

Results for commit d56960e. ± Comparison against earlier commit 1896dfb.

Annotations

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / MacOs Test Results

Quality for module.Should pass Script Analyzer for Update-CsAzGovAssignment failed

output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.6.0-pr0021.MacOS.PSv.7.4.2.xml [took 0s]
Raw output
Expected $null or empty, because some rule triggered.

 
RuleName                                    Severity ScriptName                   Line Message
--------                                    -------- ----------                   ---- -------
PSReviewUnusedParameter                     Warning  Update-CsAzGovAssignment.ps1 9    The parameter
                                                                                       'CsEnvironment' has
                                                                                       been declared but not
                                                                                       used.
PSUseShouldProcessForStateChangingFunctions Warning  Update-CsAzGovAssignment.ps1 1    Function 'Update-CsAzGo
                                                                                       vAssignment' has verb
                                                                                       that could change
                                                                                       system state.
                                                                                       Therefore, the
                                                                                       function has to
                                                                                       support
                                                                                       'ShouldProcess'., but got @(The parameter 'CsEnvironment' has been declared but not used. , Function 'Update-CsAzGovAssignment' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.).
at $pssaResult | Should -BeNullOrEmpty -Because `, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:152
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:152

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / MacOs Test Results

Quality for module.Should pass Script Analyzer for Write-OutputPadded failed

output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.6.0-pr0021.MacOS.PSv.7.4.2.xml [took 0s]
Raw output
Expected $null or empty, because some rule triggered.

 
RuleName                             Severity ScriptName             Line Message
--------                             -------- ----------             ---- -------
PSUseDeclaredVarsMoreThanAssignments Warning  Write-OutputPadded.ps1 90   The variable 'lines' is assigned
                                                                          but never used., but got The variable 'lines' is assigned but never used..
at $pssaResult | Should -BeNullOrEmpty -Because `, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:152
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:152

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / MacOs Test Results

Help for module.Should have .SYNOPSIS for Update-CsAzGovAssignment failed

output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.6.0-pr0021.MacOS.PSv.7.4.2.xml [took 0s]
Raw output
Expected a value, but got $null or empty.
at $functionHelp.Synopsis | Should -Not -BeNullOrEmpty, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:174
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:174

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / MacOs Test Results

Help for module.Should have a .DESCRIPTION with length greater than 40 characters for Update-CsAzGovAssignment failed

output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.6.0-pr0021.MacOS.PSv.7.4.2.xml [took 0s]
Raw output
Expected the actual value to be greater than 40, but got 0.
at $functionHelp.Description.Length | Should -BeGreaterThan 40, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:193
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:193

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / MacOs Test Results

Help for module.Should have at least one (1) example for Update-CsAzGovAssignment failed

output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.6.0-pr0021.MacOS.PSv.7.4.2.xml [took 0s]
Raw output
Expected the actual value to be greater than 0, but got 0.
at $functionHelp.Examples.Count | Should -BeGreaterThan 0, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:212
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:212

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / MacOs Test Results

Help for module.Should have described all parameters for Update-CsAzGovAssignment failed

output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.6.0-pr0021.MacOS.PSv.7.4.2.xml [took 0s]
Raw output
Expected a value, because the parameter azAPICallConf must have a description, but got $null or empty.
at $functionHelp.Parameters.($parameter.ToUpper()) | Should -Not -BeNullOrEmpty -Because ('the parameter {0} must have a description' -f $parameter), /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:238
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/QA/module.tests.ps1:238