chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
227 stars 113 forks source link

Helper.go file for warning message #8464

Closed kparmar2000 closed 2 months ago

kparmar2000 commented 3 months ago

:nut_and_bolt: Description: What code changed, and why?

Added a helper.go file to give warning message or command blockage if the license has been expired the file contain 2 function : WarnLicenseStatusForExpiry: That gives out warning meassage for use of cli, checkLicenseStatusForExpiry: That gives an error n block use of that cli.

:chains: Related Resources

:+1: Definition of Done

Tested the functioning of cli for all the used cases. each cli is working well n producing the desired warn or error message according to there needs

:athletic_shoe: How to Build and Test the Change

:white_check_mark: Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

All PRs from Progress employees should tick these if appropriate:

Please add a note next to any checkbox above if you are NOT ticking it.

:camera: Screenshots, if applicable

Screenshot 2024-07-04 at 12 47 07 PM Screenshot 2024-07-04 at 11 03 30 AM Screenshot 2024-07-04 at 10 38 55 AM Screenshot 2024-07-04 at 11 36 30 AM
sonarqube-for-infrastructure-prod[bot] commented 3 months ago

Quality Gate failed Quality Gate failed

Failed conditions
2 New issues
1.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint