Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 May 2015 at 11:10 UTC
Updated:
31 Dec 2015 at 07:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joekersComment #2
joekersCorrected comment.
Comment #5
jonathan1055 commentedComment #6
jonathan1055 commentedThere was no automated test to check this validation, so I have added one to testValidationDuringEdit
As expected it currently fails.
Comment #7
jonathan1055 commentedHere's a re-rolled patch now that the constraint files are not new.
Comment #9
jonathan1055 commentedI was hoping to see testValidationDuringEdit all pass now but it does not, and we still have the same failure as before.
Can someone else test this patch? It works for me both interactive and in simpletest, so I do not understand why the test still fails on D.O. There was no error in applying the patch, at least I could not see any problem on https://dispatcher.drupalci.org/job/default/49316/console
Comment #10
jonathan1055 commentedHere's the same code change but with debug added. Hopefully this will indicate what might be happening on the DrupalCI which is different from my localhost.
Comment #12
jonathan1055 commentedThat's no help, I can't see where the debug output is, or maybe we only get debug written from the actual test files, and it is ignored from the real Scheduler functions. Here's a patch with the first constraint commented out, just to check that we are actually applying this patch correctly, as so far none of the recent patch tests above have had any obvservable impact on the result.
Comment #14
jonathan1055 commentedSomething must be going wrong with the testbot patch process, as this recent patch had the working constraint commented out but the test still passed, ie the validation message must have been displayed, as no fail was given (see attached A). It seems that the tests are all being executed on un-patched code.
Also there was some major failure in the second test file SchedulerDateCombinedFunctionalTest (image attached B) which implies something going wrong which is nothing to do with our patches.
I think I will have to leave this, as can't see what more I can do. I will re-test tomorrow, to see if something has been fixed in DrupalCI.
Comment #17
jonathan1055 commentedSame code as before, but re-rolled following recent commits. This should return all passes for testValidationDuringEdit() and overall we should get 10 classes pass and 6 fail.
Comment #20
jonathan1055 commentedThat's good. Result as expected:
10 class pass and 6 fail. Thanks Joe for the initial patch.