[dsl] Package type is not determined correctly while getting class by name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
High
|
Stan Lagun | ||
Liberty |
Won't Fix
|
Medium
|
Stan Lagun | ||
Mitaka |
Fix Released
|
High
|
Stan Lagun |
Bug Description
Load the following class:
Namespaces:
=: io.murano.test
sys: io.murano.system
Extends: TestFixture
Name: MyTest
Methods:
initialize:
Body:
# Object model can be loaded from json file, or provided
# directly in MuranoPL code as a yaml insertion.
- $.appJson: new(sys:
- $.heatOutput: new(sys:
- $.log: logger('test')
- $.agentCallCount: 0
# Mock method, that returns predefined heat stack output
getStackOut:
Body:
- $.log.info('Mocking heat stack')
- Return: $.heatOutput
testDeploy2:
Body:
- inject(
- inject(
# Mock is defined with YAQL function and it will print the original variable (agent template)
- inject(sys:Agent, call, withOriginal(t => $template) -> $.log.info('{0}', $t))
- $.env: $this.load(
- $.env.deploy()
- print($
So it is not possible to set owner for getAttr method.
This happened after this bug https:/
Fix proposed to branch: master /review. openstack. org/268304
Review: https:/