test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
2 stars 2 forks source link

Self test issue: JPP_0201 #107

Closed HolQue closed 8 months ago

HolQue commented 11 months ago

Previously in test case JPP_0201 the JsonPreprocessor returned values, but with a parameter not resolved in a proper way:

Error:

Found deviating return values
(1) '[DICT] (22/22) > {milestone_2} [STR]  :  'MILESTONE-2 (new value)''   > (expected)
(2) '[DICT] (22/22) > {innermost_milestone_name${m${ilstr()o}ne}_str(2)} [STR]  :  'MILESTONE-2 (new value)''   > (returned)

The latest version of JsonPreprocessor does not return values any more, but throws the following exception:

'Could not overwrite parameter ${m${ilstr(${innermost_milestone_name})o}ne}_str(${milestone_number}) due to wrong format.
           Please check key '${m${ilstr(${innermost_milestone_name})o}ne}_str(${milestone_number})' in config file!!!'

But what is wrong with the format? This error message is not helpful.

The expectation is still that the expression is resolved to parameter name "milestone_2".

HolQue commented 11 months ago

Addendum:

In a lot of other test cases (e.g. JPP_0207) the error message

The variable ... is not available

has been exchanged by

Could not overwrite parameter ...

Why this?

The problem is not a wrong format, but a not properly working dollar operator substitution, that needs to be fixed.

test-fullautomation commented 9 months ago

@namsonx : What is the status of this issue?

test-fullautomation commented 9 months ago

Hi @namsonx , what is the status of this ticket? Thank you, Thomas

test-fullautomation commented 8 months ago

Issue was retested and is solved.