Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Azure Resource Manager (ARM) linting with [arm-ttk] #369

Merged
merged 13 commits into from
Jul 6, 2020

Conversation

krowlandson
Copy link
Contributor

Azure Resource Manager (ARM) linting with [arm-ttk]

Hopefully you don't mind me dropping this in... I'm doing some work where I need to validate ARM templates. Rather than running a seperate linter, I've worked on integrating arm-ttk into Super-Linter.

I think I've covered off the important elements and maintained consistency with existing approaches / standards. I've also pulled in all latest updates and integrated these with my work too. Please feel free to pass feedback for updates as needed.

Hopefully the rest is fairly self-explanatory.

@krowlandson
Copy link
Contributor Author

Just to add, I'm not sure what tests you run in the background so please reach out if there's anything which needs fundamentally changing for this to pass all internal checks.

@krowlandson
Copy link
Contributor Author

Will investigate this:

Successfully found binary for [arm-ttk] in system location: [/usr/bin/arm-ttk]
---------------------------
File:[/tmp/lint/.automation/test/arm/arm_bad_1.json]
 - File:[arm_bad_1.json] failed test case with [arm-ttk] successfully
---------------------------
File:[/tmp/lint/.automation/test/arm/arm_good_1.json]
ERROR! Found errors in [arm-ttk] linter!
ERROR:[/action/lib/worker.sh: line 356: Import-Module: command not found]
ERROR: Linter CMD:[Import-Module /opt/microsoft/arm-ttk/arm-ttk/arm-ttk.psd1 ; $config = $(Import-PowerShellDataFile -Path /action/lib/.automation/.arm-ttk.psd1) ; Test-AzTemplate @config -TemplatePath /tmp/lint/.automation/test/arm/arm_good_1.json]

@krowlandson
Copy link
Contributor Author

krowlandson commented Jul 3, 2020

Sorry, just addes some quality checks following the TestCodebase fix. That should be me done unless you have any further suggestions for updates or additions.

I plan to add some more specific test cases (probably taken from arm-ttk/unit-tests itself) in the future but haven't had a chance to integrate yet so please review and merge if you're happy with the changes.

@admiralAwkbar admiralAwkbar self-assigned this Jul 6, 2020
@admiralAwkbar admiralAwkbar added the enhancement New feature or request label Jul 6, 2020
admiralAwkbar
admiralAwkbar previously approved these changes Jul 6, 2020
Copy link
Collaborator

@admiralAwkbar admiralAwkbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work

@admiralAwkbar
Copy link
Collaborator

@krowlandson That is some amazing work! thank you for all the hard work!
Getting some last tests then pushing

@krowlandson
Copy link
Contributor Author

@krowlandson That is some amazing work! thank you for all the hard work!
Getting some last tests then pushing

That's great... thank you for picking this up for integration so quickly! Looking forward to making more use of this in our pipelines 😄 Happy to provide help if any bugs.

@admiralAwkbar
Copy link
Collaborator

Copy link
Collaborator

@admiralAwkbar admiralAwkbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good!

@admiralAwkbar admiralAwkbar merged commit 13427e3 into super-linter:master Jul 6, 2020
@krowlandson
Copy link
Contributor Author

@krowlandson
Hunting this:
https://github.com/github/super-linter/pull/369/checks?check_run_id=841623259#step:4:79

Did you catch what was causing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants