Skip to content

Feat/get resource log category #38

Feat/get resource log category

Feat/get resource log category #38

GitHub Actions / MacOs Test Results failed Mar 28, 2024 in 0s

5 fail, 8 pass in 1s

13 tests  ±0   8 ✅ ±0   1s ⏱️ -1s
 5 suites ±0   0 💤 ±0 
 1 files   ±0   5 ❌ ±0 

Results for commit 65f3cd8. ± Comparison against earlier commit 7706a89.

Annotations

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions 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

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions 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

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions 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

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions 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

Check warning on line 0 in /

See this annotation in the file changed.

@github-actions 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