-
Notifications
You must be signed in to change notification settings - Fork 293
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
Disallow read only users from performing writes to asset #2252
Disallow read only users from performing writes to asset #2252
Conversation
@@ -38,6 +44,16 @@ def test_create_asset(self): | |||
response = self.client.post("/api/v1/asset/", sample_data) | |||
self.assertEqual(response.status_code, status.HTTP_201_CREATED) | |||
|
|||
def test_create_asset_read_only(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rithviknishad Shouldn't we have tests for all ReadOnly Users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2252 +/- ##
===========================================
+ Coverage 63.48% 63.52% +0.03%
===========================================
Files 238 238
Lines 13264 13276 +12
Branches 1886 1889 +3
===========================================
+ Hits 8421 8433 +12
Misses 4490 4490
Partials 353 353 ☔ View full report in Codecov by Sentry. |
Proposed Changes
Associated Issue
Merge Checklist
@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins