Closed Safihre closed 3 years ago
Functional tests I'd say, as this is mainly about interaction between various choices/settings/input. Looks doable, afaict all relevant actions and settings (adding nzbs, scripts, duplicate-related stuff, categories) are available via the api. Could give it a go myself if this isn't too urgent.
Any scenarios or combinations of settings that are particularly troublesome?
I was hoping you'd have time, indeed no rush!
The combination of supplying either -100
(default) and having a Pre queue script that sets a priority.
Then a category set from Pre queue that has a deviating priority from Default. And maybe what happens if on top of that a non-Default priority was supplied when adding the NZB, I think it should override the others, but maybe it doesn't. 😅
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Got some work done on this one, which resulted in a couple of questions:
At least that's what I think, what do you think?
I agree for the most part, with the exception of priority-on-adding for which I don't see a good reason to let that override later (attempted) changes to the priority. But since you specifically mentioned that one in a comment and I didn't see it getting special treatment in an early test setup, I figured I better ask anyway.
The straightforward stuff mostly behaves as expected so far (still investigating an issue with implicit/category prio from pre-q though). The last two of my Qs at least in part come down to developer choices, but your answers pretty much match with what I consider logical and expected behaviour.
For the priority on adding, maybe should only be overruled if the Pre queue script specifically sets one? So not overruled by category for sure.
All right, I'll assume that.
Closed by #1760
One of the things that isn't covered, but has given me troubles over the past few years is the adding of NZB's and all the checks performed there. In particular selecting the right priority if duplicate detection and/or pre-queue scripts are active. And the different situations based on what is set by the category and manual input. @jcfp you did some extensive api testing recently, can we easily add this as a functional set of tests? Or should it be unit tests?