Repository navigation
add helio auth to TriggerAnalysisCallback and centre_sample_plan - #197
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #197 +/- ##
==========================================
+ Coverage 91.89% 91.90% +0.01%
==========================================
Files 16 16
Lines 481 482 +1
==========================================
+ Hits 442 443 +1
Misses 39 39 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DominicOram
left a comment
There was a problem hiding this comment.
Thanks, just the one major comment.
Could: I think we should have a couple of unit tests on this, having to type it out twice may have caught https://github.com/DiamondLightSource/crystallography-bluesky/pull/197/changes#r4378644201
| username: str | None = None, | ||
| password: str | None = None, |
There was a problem hiding this comment.
Could: What is the usecase for not providing a username/password? Are there some endpoints that don't need it? Or some test tiled instances that don't need it?
There was a problem hiding this comment.
Heliotrapi can be confgured to not have auth, so username and password are set to None, it's str | None to match that. There are also some endpoints which don't
However for i15-1, it should always have a password so we could always check if None and raise?
There was a problem hiding this comment.
Sure, I guess if we get round to running system tests for this we would probably set something up w/o using auth so this might be useful. I'm guessing if we pass in None we'll get a 400 error anyway so should be relatively obvious what's gone wrong without having to explicitly check here. Let's leave it
There was a problem hiding this comment.
Yes, it will return an unauthorised error
Co-authored-by: Dominic Oram <dominic.oram@diamond.ac.uk>
DominicOram
left a comment
There was a problem hiding this comment.
Thanks, tests would be good but not that bothered.
300ca69 to
255d1c6
Compare
255d1c6 to
32864fd
Compare
Heliotrapi will need to be updated in the i15-services repo to 0.4.1 when this is deployed