Bug 1359813

Summary: METHOD:: does not accept a full path to a method
Product: Red Hat CloudForms Management Engine Reporter: Fabien Dupont <fdupont>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Milan Falešník <mfalesni>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: dajohnso, jhardy, mfalesni, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: automate
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1370568 (view as bug list) Environment:
Last Closed: 2017-01-11 19:57:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1370568    

Description Fabien Dupont 2016-07-25 13:39:14 UTC
Description of problem:


How reproducible: Always


Steps to Reproduce:

When trying to call a method through a relationship using the METHOD:: statement and a full path to the method, eg. METHOD::/NameSpace/Class/Method, it raises an exception:


Actual results:
invalid method calling syntax: [METHOD::/NameSpace/Class/Method


Expected results:
Extend the full path and call the method.

Additional info:

Comment 3 CFME Bot 2016-07-28 15:35:49 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/af97109fda776aeb324ef895ec661702263249f9

commit af97109fda776aeb324ef895ec661702263249f9
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Wed Jul 27 11:29:07 2016 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Wed Jul 27 12:51:16 2016 -0400

    Fixed issue for automate class methods that addresses issue using
    METHOD:: syntax and on_entry, on_exit and on_error methods.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1359813

 lib/miq_automation_engine/engine/miq_ae_object.rb  |  5 ++-
 .../miq_ae_state_machine_spec.rb                   | 36 ++++++++++++++++++++++
 2 files changed, 38 insertions(+), 3 deletions(-)

Comment 6 Milan Falešník 2016-09-16 11:20:13 UTC
Verified in 5.7.0.0

METHOD::/ns/Class.methodname works in the states
/ns/Class.methodname works in the on_*