[FIXED JENKINS-22720] Only call getAllItems in recursive ListView

Need to adjust the test to set the recurse flag. `sub/p2` cannot be in the list view through user configuration otherwise.