cloudyspells / PSRule.Rules.AzureDevOps

PSRule Module for Azure DevOps. Audit your Azure DevOps project configuration for best practice adoption in minutes.
MIT License
23 stars 2 forks source link

Service Principal Auth and Unit test restructure #58

Closed webtonize closed 11 months ago

webtonize commented 11 months ago

Description

This PR enables service principal authentication and restructures pester unit tests for the modules functions

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

github-actions[bot] commented 11 months ago

Test Results

377 tests   377 :heavy_check_mark:  6s :stopwatch: 134 suites      0 :zzz:     1 files        0 :x:

Results for commit 3753185b.

:recycle: This comment has been updated with latest results.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e720a65) 99.14% compared to head (3753185) 99.19%. Report is 1 commits behind head on main.

Files Patch % Lines
...ules.AzureDevOps/Classes/AzureDevOpsConnection.ps1 98.18% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #58 +/- ## ========================================== + Coverage 99.14% 99.19% +0.04% ========================================== Files 8 9 +1 Lines 351 494 +143 ========================================== + Hits 348 490 +142 - Misses 3 4 +1 ``` | [Flag](https://app.codecov.io/gh/cloudyspells/PSRule.Rules.AzureDevOps/pull/58/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloudyspells) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/cloudyspells/PSRule.Rules.AzureDevOps/pull/58/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloudyspells) | `99.19% <99.48%> (+0.04%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloudyspells#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information