Created attachment 1177444 [details] Automate Simulate options Description of problem: Each automate method that sets the user_message has to truncate the message length to 255. Fixing it in the mixin makes more sense. Steps to Reproduce: 1. Create small automate method in writable domain to test user message length(see attachment) 2. Create an instance in the same class as the newly created method and set the method name in method slot.(see attachment) 3. Run Simulate to call method created in step 1.(see attachment) 4. Check automation.log for message: example message: [----] I, [2016-07-07T16:10:50.805849 #17716:3fe445430b0c] INFO -- : <AEMethod test_user_message> request user message length 320 user_message: ReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongString Actual results: message length exceeds 255 Expected results: message length does not exceed 255
Created attachment 1177445 [details] test automate method
Created attachment 1177446 [details] new_instance_shown_in_nav_bar
Created attachment 1177447 [details] new_instance_showing_method_call
https://github.com/ManageIQ/manageiq/pull/9549
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/aec4220437be54727fae8e53f868f39b99ca916b commit aec4220437be54727fae8e53f868f39b99ca916b Author: Tina Fitzgerald <tfitzger> AuthorDate: Thu Jun 30 10:57:32 2016 -0400 Commit: Tina Fitzgerald <tfitzger> CommitDate: Thu Jul 7 16:36:25 2016 -0400 Truncate request user_message and add test. https://bugzilla.redhat.com/show_bug.cgi?id=1353730 app/models/mixins/miq_request_mixin.rb | 1 + .../miq_ae_service_service_template_provision_request_spec.rb | 7 +++++++ 2 files changed, 8 insertions(+)
Verified in 5.7.0.3 [----] I, [2016-10-03T08:01:17.541748 #11860:de5710] INFO -- : <AEMethod testmeth> request user message length 255 user_message: ReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongStringReallyLongSt...