adding variable bindings option to extended parameters

Change-Id: I4e9fba2da7771d1cac04bcb9818389207a6f301e
This commit is contained in:
Gleb Samsonov 2018-09-03 13:11:50 +03:00 committed by Thanh Ha
parent 23079af777
commit fc7864ab7f
No known key found for this signature in database
GPG Key ID: B0CB27E00DA095AA
4 changed files with 8 additions and 0 deletions

View File

@ -430,6 +430,8 @@ def extended_choice_param(registry, xml_parent, data):
:arg str groovy-script: the groovy script contents (optional, default ',')
:arg str groovy-script-file: location of groovy script file to generate
parameters (optional, default '')
:arg str bindings: variable bindings for the groovy script
(optional, default '')
:arg str classpath: the classpath for the groovy script
(optional, default ',')
:arg str default-groovy-script: the default groovy
@ -483,6 +485,7 @@ def extended_choice_param(registry, xml_parent, data):
('default-property-key', 'defaultPropertyKey', ''),
('description-property-file', 'descriptionPropertyFile', ''),
('description-property-key', 'descriptionPropertyKey', ''),
('bindings', 'bindings', ''),
('groovy-script', 'groovyScript', ''),
('groovy-script-file', 'groovyScriptFile', ''),
('classpath', 'groovyClasspath', ''),

View File

@ -19,6 +19,7 @@
<defaultPropertyKey>fookey</defaultPropertyKey>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
@ -43,6 +44,7 @@
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
@ -67,6 +69,7 @@
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>

View File

@ -19,6 +19,7 @@
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript>return 'value1, value2, value3'</groovyScript>
<groovyScriptFile/>
<groovyClasspath/>

View File

@ -19,6 +19,7 @@
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>