3882: add test to verify a cancelled job stays cancelled on futher cancel actions.
Merge branch 'master' into 3882-cancel-already-cancelled-job
3882: added a few more tests for cancelled_at state. Most importantly, uncomment the assertion
to raise error when a functional test performs multiple actions in a single test (refs 3889#).
3882: refactor tests
3882: Test response status and #cancel method.
3882: refactor update-or-cancel code.
Merge branch 'master' into 3882-cancel-already-cancelled-job
Merge branch '3882-cancel-already-cancelled-job-TC' into 3882-cancel-already-cancelled-job
3882: Change "update_timestamps_when_state_changes" from before_validation to after_validation,
so that update of success and running flags is done AFTER ensuring the state change is valid.
Otherwise, the update to success and running flags is resulting in overriding the actual state update.
Merge branch 'master' into 3882-cancel-already-cancelled-job
Merge branch 'master' into 3882-cancel-already-cancelled-job
3882: update "after_validation :update_timestamps_when_state_changes" to "before_save :update_timestamps_when_state_changes",
and also add comple more test combinations around cancelled state.
closes #3882
Merge branch '3882-cancel-already-cancelled-job'