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

feat(arm): AppServiceJavaVersion & FunctionAppsEnableAuthentication #6243

Conversation

SaraWeinberg1234
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

Adds a test

Description

Added a test that checks if a certain field exists under a certain value and checks if the field is equal to a certain value

Fix

How does someone fix the issue in code and/or in runtime?

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

@ChanochShayner ChanochShayner left a comment

Choose a reason for hiding this comment

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

Great Job!

def __init__(self):
name = "Ensure that 'Java version' is the latest, if used to run the web app"
id = "CKV_AZURE_83"
supported_resources = ['Microsoft.Web/sites']
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use a tuple instead of a list.

name = "Ensure that 'Java version' is the latest, if used to run the web app"
id = "CKV_AZURE_83"
supported_resources = ['Microsoft.Web/sites']
categories = [CheckCategories.GENERAL_SECURITY]
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use a tuple instead of a list.

return "site_config/java_version"

def get_expected_value(self):
return '11'
Copy link
Contributor

Choose a reason for hiding this comment

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

@tsmithv11 Should it still be 11?
(In TF is 11)

Copy link
Collaborator

@tsmithv11 tsmithv11 May 6, 2024

Choose a reason for hiding this comment

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

@@ -0,0 +1,82 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the commented code.

@ChanochShayner ChanochShayner changed the title feat(arm):AppServiceJavaVersion feat(arm): AppServiceJavaVersion May 5, 2024
@ChanochShayner ChanochShayner changed the title feat(arm): AppServiceJavaVersion feat(arm): AppServiceJavaVersion & FunctionAppsEnableAuthentication May 5, 2024
@SaraWeinberg1234 SaraWeinberg1234 deleted the AppServiceJavaVersion branch May 6, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants