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

Support dockerhub in mindev ruletype test sub-command #3319

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented May 13, 2024

Summary

Note that dockerhub still doesn't fully work, but this sets up the pieces so we can start testing it.

Change Type

Mark the type of change your PR introduces:

  • Bug fix (resolves an issue without affecting existing features)
  • Feature (adds new functionality without breaking changes)
  • Breaking change (may impact existing functionalities or require documentation updates)
  • Documentation (updates or additions to documentation)
  • Refactoring or test improvements (no bug fixes or new functionality)

Testing

Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.

Review Checklist:

  • Reviewed my own code for quality and clarity.
  • Added comments to complex or tricky code sections.
  • Updated any affected documentation.
  • Included tests that validate the fix or feature.
  • Checked that related changes are merged.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
@JAORMX JAORMX requested a review from a team as a code owner May 13, 2024 12:42
Copy link
Contributor

@stacklokbot stacklokbot left a comment

Choose a reason for hiding this comment

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

✅ No Invisible Unicode Characters Detected.

@coveralls
Copy link

Coverage Status

coverage: 49.337% (-0.005%) from 49.342%
when pulling ab81720 on rttst-dockerhub
into a231e84 on main.

@@ -59,6 +61,8 @@ func CmdTest() *cobra.Command {
testCmd.Flags().StringP("rule-type", "r", "", "file to read rule type definition from")
testCmd.Flags().StringP("entity", "e", "", "YAML file containing the entity to test the rule against")
testCmd.Flags().StringP("profile", "p", "", "YAML file containing a profile to test the rule against")
testCmd.Flags().StringP("provider", "P", "github", "The provider class to test the rule against")
testCmd.Flags().StringP("provider-config", "c", "", "YAML file containing the provider configuration (optional)")
Copy link
Contributor

Choose a reason for hiding this comment

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

In a follow-up it might be nice to also support reading from stdin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True! I'll keep it in mind

@JAORMX JAORMX merged commit 16c3e60 into main May 13, 2024
21 checks passed
@JAORMX JAORMX deleted the rttst-dockerhub branch May 13, 2024 12: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.

4 participants