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 a test for validating Astarte trigger definitions using astartectl #30

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Jusuf95
Copy link
Contributor

@Jusuf95 Jusuf95 commented Dec 10, 2024

Add a test for validating Astarte trigger definitions using astartectl, ensuring their correctness and compliance with the expected structure.

To ensure the correct functionality and behavior of the astartectl commands for trigger validation, including:

  • Verifying that trigger JSON files are valid and adhere to the expected structure.
  • Confirming successful validation with appropriate output.

Created test for:

  • Validating Triggers: Using astartectl utils triggers validate to check the correctness of trigger definitions and ensure the validation process completes successfully.

 - Add test to validate Astarte triggers using astartectl

Signed-off-by: Jusuf <jusuf.avdic@secomind.com>
@Jusuf95 Jusuf95 force-pushed the utils_triggers_validate branch from 58cd20e to c8880d9 Compare December 10, 2024 11:41
Copy link
Collaborator

@Annopaolo Annopaolo left a comment

Choose a reason for hiding this comment

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

Good! We should also test for malformed triggers, so that not only the happy path is covered

@Annopaolo Annopaolo merged commit d5639bb into astarte-platform:main Dec 10, 2024
3 checks passed
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.

2 participants