Closed (fixed)
Project:
Monitoring
Version:
8.x-1.x-dev
Component:
Sensors
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Oct 2015 at 12:46 UTC
Updated:
16 Nov 2015 at 12:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
miro_dietikerPlease revert the logic: Always show the title and add an explicit statement: "NONE" if there are none!
Comment #3
sdstyles commentedComment #4
miro_dietikerI think we can keep this line in combination with empty().
Comment #5
miro_dietikerI think in tests we should also execute the sensor once without privileged users and check this None output.
Comment #6
anil280988 commentedAdded the line back
Comment #8
anil280988 commentedAdded back the line.
Comment #10
giancarlosotelo commentedPatch is not applying because you are adding the line manually, so instead of doing that can you generate a new patch?
And it would be nice if you can add test explained in #5 maybe in
MonitoringUITest::testSensorDetailPage()where the list of roles is tested so you can remove the permission and assert the none output.Comment #11
anil280988 commentedCreated the Patch
Comment #13
visabhishek commentedI am re-rolling the patch #11.
@giancarlosotelo : Please give me some more idea to add test explained in #5.
Comment #15
visabhishek commentedforget to upload the patch
Comment #18
giancarlosotelo commentedIn the function I said before we create a user with privilege permissions and we grant privilege permissions to the 'authenticated' role so before that code you can check the output in the test and assert that we have the 'None' text because we don't have any restricted role with privilege permissions yet.
Comment #19
giancarlosotelo commentedSince nobody seems to want to work on tests, here is a patch.
Comment #21
giancarlosotelo commentedUnrelated fails
Comment #22
giancarlosotelo commentedComment #23
miro_dietikerCommitted, thx!
Comment #31
giancarlosotelo commented