Red Hat Bugzilla – Bug 839670
RFE - Notifications with id of request that caused it
Last modified: 2014-11-09 17:52:30 EST
Description of problem:
Currently it is impossible to reliably determine whether an automated test passed. Example.
The test is, create an org with a blank name, and verify that an error message pops up saying that is not allowed.
So the automation creates a new org, clicks submit, and there is a notification saying "Sync completed successfully: foorepo".
That notification had *nothing* to do with the test, it just happened to pop up at the wrong time. We know that, but the automation has no way of knowing. It just knows it was supposed to get a red notification and it got a green one.
Even trying to match the content of the notification doesn't work. It's impossible for automation to tell the difference between some cryptic error it's never seen before that's caused directly by what it's testing, and some cryptic async error that has nothing to do with what it is testing.
Each rest action should return an id somewhere in the HTML, and every notification that results from that action should contain the same id.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
There is one piece of information available in a notice that is rendered that may be useful if trying to associate a notice with a given action performed by the user.
For each notice, katello stores the 'request_type' and passes it back to the client when the notice is delivered. This request type consists of a combination of the controller (e.g. changesets) and the action (e.g. promote) that is being performed. When the notice is rendered, it will be included as a class on the notice. For example:
This may help; however, if using this example, we scheduled 3 different promotions and received the notices for all of them at the same time, we would not be able to correlate them, other than to look in to the actual text message that comes back.
If using the action_type is not sufficient, we can certainly look at other solutions to expand the information stored/returned with a notice.
getting rid of 6.0.0 version since that doesn't exist