test: add validation and event tests for organization and API key #638

Merged
argoyle merged 1 commits from test/add-validation-event-tests into main 2025-11-21 12:12:03 +00:00
argoyle commented 2025-11-21 11:49:34 +00:00 (Migrated from gitlab.com)

Adds unit tests for the AddOrganization and AddAPIKey commands.
These tests validate various scenarios, including success cases,
handling of already existing organizations or keys, and ensuring
required fields are checked. The
changes enhance test coverage and ensure robustness of the command
logic.

Adds unit tests for the `AddOrganization` and `AddAPIKey` commands. These tests validate various scenarios, including success cases, handling of already existing organizations or keys, and ensuring required fields are checked. The changes enhance test coverage and ensure robustness of the command logic.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-11-21 11:49:41 +00:00
argoyle commented 2025-11-21 12:09:25 +00:00 (Migrated from gitlab.com)

Codecov Report

All modified and coverable lines are covered by tests.
Project coverage is 37.23%. Comparing base (06aeedc) to head (8620608).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #634       +/-   ##
===========================================
+ Coverage   15.39%   37.23%   +21.84%     
===========================================
  Files          45       45               
  Lines        2417     2417               
===========================================
+ Hits          372      900      +528     
+ Misses       2036     1478      -558     
- Partials        9       39       +30     

View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
## [Codecov](https://app.codecov.io/gl/unboundsoftware/schemas/pull/634?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) Report :white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 37.23%. Comparing base ([`06aeedc`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/06aeedc3b0e9d7917e63f6b8a00632ce52f18f74?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)) to head ([`8620608`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/862060875bdfbff19f6839baae3cc61c9a7a9f0a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)). <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## main #634 +/- ## =========================================== + Coverage 15.39% 37.23% +21.84% =========================================== Files 45 45 Lines 2417 2417 =========================================== + Hits 372 900 +528 + Misses 2036 1478 -558 - Partials 9 39 +30 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gl/unboundsoftware/schemas/pull/634?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware). :loudspeaker: Have feedback on the report? [Share it here](https://gitlab.com/codecov-open-source/codecov-user-feedback/-/issues/4). <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
argoyle commented 2025-11-21 12:12:03 +00:00 (Migrated from gitlab.com)

mentioned in commit 3b47365f10

mentioned in commit 3b47365f106ca039c5bb30b83e8e7de515dcf433
argoyle (Migrated from gitlab.com) merged commit 3b47365f10 into main 2025-11-21 12:12:03 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/schemas#638