Giter Club home page Giter Club logo

azskutils's People

Contributors

almmechanics avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

azskutils's Issues

Pester 5.x is not compatible with AzSKUtils

Describe the bug
The interface changes for Pester 5 have broken the usage of AzSKUtils, as the parameters are now obsolete

To Reproduce
Steps to reproduce the behavior:

  1. Install-Module Pester -MinimumVersion 5.0.0
  2. Import-Module Pester
  3. Execute the AzSkUtils task

NOTE: Steps 1 & 2 are also replicated by using a newer build agent from Azure DevOps, as Pester 5 is now pre-installed on them.

Expected behavior
Update AzSk to make use of Pester5 style and interface.

azsk-nunit-task' (1.0.0) is using deprecated task execution handler

Describe the bug
Using the task azsk-nunit-task@1 outputs a warning in the build logs.

To Reproduce
Added the following step to a yaml build pipeline:

  • task: azsk-nunit-task@1
    displayName: 'Convert AzSK to NUnit output'
    inputs:
    OutputVariable: 'AZSK.NUnit.OutputPath'

Build logs output:
##[warning]Task 'azsk-nunit-task' (1.0.0) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib

Expected behavior
No warnings when using the task.

Support TreatAsPassed variable in ARM template check

Is your feature request related to a problem? Please describe.
When adding the build/release variable TreatAsPassed: 'Verify,Manual' the NUNit test result should reflect this in the expected output.

Describe the solution you'd like
When the the variable TreatAsPassed is defined, then the values (comma-seperated) list, is treated as expected values in the test result, so the test does not show as being failed since they by default expected Passed as the outcome of a test.

Additional context
TreatAsPassed is described in details in this article: https://azsk.azurewebsites.net/03-Security-In-CICD/Readme.html#azsk-arm-template-checker (search for TreatAsPassed on page)

<ResourceName> not filled out in SVT test case

Describe the bug
is not filled out in SVT test case. A substitution is missing.

To Reproduce
Just run a testrun. You will see lines like this in the Test results list of the test run:
azsk-svt. '[Medium AppService] 'Always On' should be configured for App Service' with in resource group XYZ

Expected behavior
azsk-svt. '[Medium AppService] 'Always On' should be configured for App Service' with myappservice in resource group XYZ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.