Feat/get resource log category #38
5 fail, 8 pass in 1s
Annotations
github-actions / MacOs Test Results
ResourceLogCategory Class Unit Tests.ResourceLogCategory Class Constructors Tests.Should create the object with separate properties failed
output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.1.0-pr0009.MacOS.PSv.7.4.1.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Run Connect-AzAccount to login." was thrown from /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:88 char:21
+ … $resource = Get-AzResource -ResourceType $this.ResourceTypeName | Sel …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at $ValidObj1Properties.SourceType) } | Should -Not -Throw, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:108
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:105
github-actions / MacOs Test Results
ResourceLogCategory Class Unit Tests.ResourceLogCategory Class Constructors Tests.should create an object with constructor from hashtable failed
output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.1.0-pr0009.MacOS.PSv.7.4.1.xml [took 0s]
Raw output
Expected no exception to be thrown, but an exception "Run Connect-AzAccount to login." was thrown from /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:88 char:21
+ … $resource = Get-AzResource -ResourceType $this.ResourceTypeName | Sel …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
at { $obj = [ResourceLogCategory]::new($ValidObj1Properties) } | Should -Not -Throw, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:112
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:112
github-actions / MacOs Test Results
ResourceLogCategory Class Unit Tests.ResourceLogCategory Class Methods Tests.should handle resource type with diagnostic settings available failed
output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.1.0-pr0009.MacOS.PSv.7.4.1.xml [took 0s]
Raw output
PSInvalidOperationException: Run Connect-AzAccount to login.
at GetDiagnosticSettings, /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:88
at ResourceLogCategory, /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:61
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:121
github-actions / MacOs Test Results
ResourceLogCategory Class Unit Tests.ResourceLogCategory Class Methods Tests.should handle resource type with no diagnostic settings failed
output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.1.0-pr0009.MacOS.PSv.7.4.1.xml [took 0s]
Raw output
PSInvalidOperationException: Run Connect-AzAccount to login.
at GetDiagnosticSettings, /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:88
at ResourceLogCategory, /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:61
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:127
github-actions / MacOs Test Results
ResourceLogCategory Class Unit Tests.ResourceLogCategory Class Methods Tests.should return a string representation of the object failed
output/testResults/CodeCoverageMacOS/NUnitXml_CyberShell_v0.1.0-pr0009.MacOS.PSv.7.4.1.xml [took 0s]
Raw output
PSInvalidOperationException: Run Connect-AzAccount to login.
at GetDiagnosticSettings, /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:88
at ResourceLogCategory, /Users/runner/work/CyberShell/CyberShell/output/module/CyberShell/0.1.0/CyberShell.psm1:61
at <ScriptBlock>, /Users/runner/work/CyberShell/CyberShell/tests/Unit/Class/ResourceLogCategory.tests.ps1:133