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

Catch updating alert profile with non int id #2756

Conversation

johannaengland
Copy link
Contributor

When trying to update an alert profile with an id that wasn't int a value error was thrown and not caught. This PR fixes that and adds corresponding tests.

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (262b5cf) 55.62% compared to head (a605489) 55.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2756      +/-   ##
==========================================
+ Coverage   55.62%   55.65%   +0.02%     
==========================================
  Files         567      567              
  Lines       41224    41224              
==========================================
+ Hits        22932    22942      +10     
+ Misses      18292    18282      -10     

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

Copy link

github-actions bot commented Nov 22, 2023

Test results

     12 files       12 suites   11m 52s ⏱️
3 284 tests 3 284 ✔️ 0 💤 0
9 327 runs  9 327 ✔️ 0 💤 0

Results for commit a605489.

♻️ This comment has been updated with latest results.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

👍

@lunkwill42 lunkwill42 merged commit 73ba278 into Uninett:master Nov 23, 2023
13 checks passed
@johannaengland johannaengland deleted the tests/alertprofiles/add-tests-for-updating-profiles branch April 29, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants