From 652392aa49aaedcf76a15f9749cee300391da5c7 Mon Sep 17 00:00:00 2001 From: qth2gi Date: Mon, 11 Aug 2025 11:42:54 +0200 Subject: [PATCH 1/2] Some INLINE_CODE testcases fixed --- test/testfiles/jpp-test_config_2100.jsonp | 4 +--- test/testfiles/jpp-test_config_2101.jsonp | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/testfiles/jpp-test_config_2100.jsonp b/test/testfiles/jpp-test_config_2100.jsonp index 362e697..4c3604b 100644 --- a/test/testfiles/jpp-test_config_2100.jsonp +++ b/test/testfiles/jpp-test_config_2100.jsonp @@ -18,7 +18,5 @@ "value2" : <<25>>, "value3" : <<2.5>>, "value4" : <>, - "value5" : <>, - "value6" : <>, - "value7" : <> + "value5" : <> } diff --git a/test/testfiles/jpp-test_config_2101.jsonp b/test/testfiles/jpp-test_config_2101.jsonp index 3a73640..4b2250f 100644 --- a/test/testfiles/jpp-test_config_2101.jsonp +++ b/test/testfiles/jpp-test_config_2101.jsonp @@ -17,7 +17,7 @@ "value1" : <<[1, 2]>>, "value2" : <<{"kA" : 1, "kB" : 2, "kC" : 3}>>, "expression1" : [1, 2], - "value3" : <<${expression}>>, + "value3" : <<${expression1}>>, "expression2" : {"kA" : 1, "kB" : 2}, - "value3" : <<${expression}>> + "value3" : <<${expression2}>> } From dad1d19f0f86220a9fd04b46fc24e36d1bc9880c Mon Sep 17 00:00:00 2001 From: qth2gi Date: Mon, 11 Aug 2025 16:54:19 +0200 Subject: [PATCH 2/2] Several INLINE_CODE testcases activated --- test/JPP_TestUsecases.csv | 14 + test/JPP_TestUsecases.html | 464 +++++++++++++++- test/JPP_TestUsecases.rst | 142 ++++- test/JPP_TestUsecases.txt | 58 +- test/component_test.py | 4 +- .../test_27_INLINE_CODE_GOODCASE.py | 80 +++ .../test_28_INLINE_CODE_BADCASE.py | 96 ++++ test/testconfig/TestConfig.py | 523 ++++++++++-------- test/testfiles/jpp-test_config_2101.jsonp | 2 +- test/testfiles/jpp-test_config_2105.jsonp | 12 +- ...2154).jsonp => jpp-test_config_2154.jsonp} | 0 11 files changed, 1164 insertions(+), 231 deletions(-) create mode 100644 test/pytest/pytestfiles/test_27_INLINE_CODE_GOODCASE.py create mode 100644 test/pytest/pytestfiles/test_28_INLINE_CODE_BADCASE.py rename test/testfiles/{jpp-test_config_2154).jsonp => jpp-test_config_2154.jsonp} (100%) diff --git a/test/JPP_TestUsecases.csv b/test/JPP_TestUsecases.csv index 4cbf5d3..713303d 100644 --- a/test/JPP_TestUsecases.csv +++ b/test/JPP_TestUsecases.csv @@ -202,3 +202,17 @@ JPP_2055|PARAMETER_SCOPE|BADCASE|JSON file containing a parameter with missing s JPP_2056|PARAMETER_SCOPE|BADCASE|JSON file containing a parameter with missing scope (7) JPP_2057|PARAMETER_SCOPE|BADCASE|JSON file containing a parameter with missing scope (8) JPP_2058|PARAMETER_SCOPE|BADCASE|JSON file containing a parameter with missing scope (9) +JPP_2100|INLINE_CODE|GOODCASE|JSON file containing Python inline code with simple data types +JPP_2101|INLINE_CODE|GOODCASE|JSON file containing Python inline code with composite data types +JPP_2102|INLINE_CODE|GOODCASE|JSON file containing Python inline code with simple conditions +JPP_2103|INLINE_CODE|GOODCASE|JSON file containing Python inline code within lists and dictionaries +JPP_2105|INLINE_CODE|GOODCASE|JSON file containing Python inline code in more complex scenarios +JPP_2107|INLINE_CODE|GOODCASE|JSON file containing Python inline code with import paths +JPP_2150|INLINE_CODE|BADCASE|Python inline code as embedded part of a string (1) +JPP_2151|INLINE_CODE|BADCASE|Python inline code as embedded part of a string (2) +JPP_2152|INLINE_CODE|BADCASE|Python inline code as embedded part of a string (3) +JPP_2180|INLINE_CODE|BADCASE|Python inline code with additional leading angle bracket +JPP_2184|INLINE_CODE|BADCASE|Python inline code inside a dictionary with additional leading angle bracket +JPP_2192|INLINE_CODE|BADCASE|Python inline code is parameter name +JPP_2193|INLINE_CODE|BADCASE|Python inline code is parameter name inside a list +JPP_2194|INLINE_CODE|BADCASE|Python inline code is parameter name inside a dictionary diff --git a/test/JPP_TestUsecases.html b/test/JPP_TestUsecases.html index 3904c5f..14cbea2 100644 --- a/test/JPP_TestUsecases.html +++ b/test/JPP_TestUsecases.html @@ -6737,12 +6737,474 @@ + + + + + +203 + + + + + +JPP_2100 + + + + +INLINE_CODE + + + + +GOODCASE + + + + +JSON file containing Python inline code with simple data types
+Expected: JsonPreprocessor returns expected values + + +
+ + + + + + + +204 + + + + + +JPP_2101 + + + + +INLINE_CODE + + + + +GOODCASE + + + + +JSON file containing Python inline code with composite data types
+Expected: JsonPreprocessor returns expected values + + +
+ + + + + + + +205 + + + + + +JPP_2102 + + + + +INLINE_CODE + + + + +GOODCASE + + + + +JSON file containing Python inline code with simple conditions
+Expected: JsonPreprocessor returns expected values + + +
+ + + + + + + +206 + + + + + +JPP_2103 + + + + +INLINE_CODE + + + + +GOODCASE + + + + +JSON file containing Python inline code within lists and dictionaries
+Expected: JsonPreprocessor returns expected values + + +
+ + + + + + + +207 + + + + + +JPP_2105 + + + + +INLINE_CODE + + + + +GOODCASE + + + + +JSON file containing Python inline code in more complex scenarios
+Expected: JsonPreprocessor returns expected values + + +
+ + + + + + + +208 + + + + + +JPP_2107 + + + + +INLINE_CODE + + + + +GOODCASE + + + + +JSON file containing Python inline code with import paths
+Expected: JsonPreprocessor returns expected values + + +
+ + + + + + + +209 + + + + + +JPP_2150 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code as embedded part of a string (1)
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +210 + + + + + +JPP_2151 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code as embedded part of a string (2)
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +211 + + + + + +JPP_2152 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code as embedded part of a string (3)
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +212 + + + + + +JPP_2180 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code with additional leading angle bracket
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +213 + + + + + +JPP_2184 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code inside a dictionary with additional leading angle bracket
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +214 + + + + + +JPP_2192 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code is parameter name
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +215 + + + + + +JPP_2193 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code is parameter name inside a list
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ + + + + + + +216 + + + + + +JPP_2194 + + + + +INLINE_CODE + + + + +BADCASE + + + + +Python inline code is parameter name inside a dictionary
+Expected: No values are returned, and JsonPreprocessor throws an exception + + +
+ +
 

-
Generated: 05.08.2025 - 16:52:10
+
Generated: 11.08.2025 - 16:48:21
 
diff --git a/test/JPP_TestUsecases.rst b/test/JPP_TestUsecases.rst index 89a6e45..26fe29f 100644 --- a/test/JPP_TestUsecases.rst +++ b/test/JPP_TestUsecases.rst @@ -2125,5 +2125,145 @@ Test Use Cases ---- -Generated: 05.08.2025 - 16:52:10 +* **Test JPP_2100** + + [INLINE_CODE / GOODCASE] + + **JSON file containing Python inline code with simple data types** + + Expected: JsonPreprocessor returns expected values + +---- + +* **Test JPP_2101** + + [INLINE_CODE / GOODCASE] + + **JSON file containing Python inline code with composite data types** + + Expected: JsonPreprocessor returns expected values + +---- + +* **Test JPP_2102** + + [INLINE_CODE / GOODCASE] + + **JSON file containing Python inline code with simple conditions** + + Expected: JsonPreprocessor returns expected values + +---- + +* **Test JPP_2103** + + [INLINE_CODE / GOODCASE] + + **JSON file containing Python inline code within lists and dictionaries** + + Expected: JsonPreprocessor returns expected values + +---- + +* **Test JPP_2105** + + [INLINE_CODE / GOODCASE] + + **JSON file containing Python inline code in more complex scenarios** + + Expected: JsonPreprocessor returns expected values + +---- + +* **Test JPP_2107** + + [INLINE_CODE / GOODCASE] + + **JSON file containing Python inline code with import paths** + + Expected: JsonPreprocessor returns expected values + +---- + +* **Test JPP_2150** + + [INLINE_CODE / BADCASE] + + **Python inline code as embedded part of a string (1)** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2151** + + [INLINE_CODE / BADCASE] + + **Python inline code as embedded part of a string (2)** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2152** + + [INLINE_CODE / BADCASE] + + **Python inline code as embedded part of a string (3)** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2180** + + [INLINE_CODE / BADCASE] + + **Python inline code with additional leading angle bracket** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2184** + + [INLINE_CODE / BADCASE] + + **Python inline code inside a dictionary with additional leading angle bracket** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2192** + + [INLINE_CODE / BADCASE] + + **Python inline code is parameter name** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2193** + + [INLINE_CODE / BADCASE] + + **Python inline code is parameter name inside a list** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +* **Test JPP_2194** + + [INLINE_CODE / BADCASE] + + **Python inline code is parameter name inside a dictionary** + + Expected: No values are returned, and JsonPreprocessor throws an exception + +---- + +Generated: 11.08.2025 - 16:48:21 diff --git a/test/JPP_TestUsecases.txt b/test/JPP_TestUsecases.txt index 8cd44d9..3a61a79 100644 --- a/test/JPP_TestUsecases.txt +++ b/test/JPP_TestUsecases.txt @@ -868,5 +868,61 @@ Test JPP_2058 / PARAMETER_SCOPE / BADCASE Description: JSON file containing a parameter with missing scope (9) Expectation: No values are returned, and JsonPreprocessor throws an exception ------------------------------------------------------------------------------------------------------------------------ -Generated: 05.08.2025 - 16:52:10 +Test JPP_2100 / INLINE_CODE / GOODCASE +Description: JSON file containing Python inline code with simple data types +Expectation: JsonPreprocessor returns expected values +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2101 / INLINE_CODE / GOODCASE +Description: JSON file containing Python inline code with composite data types +Expectation: JsonPreprocessor returns expected values +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2102 / INLINE_CODE / GOODCASE +Description: JSON file containing Python inline code with simple conditions +Expectation: JsonPreprocessor returns expected values +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2103 / INLINE_CODE / GOODCASE +Description: JSON file containing Python inline code within lists and dictionaries +Expectation: JsonPreprocessor returns expected values +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2105 / INLINE_CODE / GOODCASE +Description: JSON file containing Python inline code in more complex scenarios +Expectation: JsonPreprocessor returns expected values +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2107 / INLINE_CODE / GOODCASE +Description: JSON file containing Python inline code with import paths +Expectation: JsonPreprocessor returns expected values +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2150 / INLINE_CODE / BADCASE +Description: Python inline code as embedded part of a string (1) +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2151 / INLINE_CODE / BADCASE +Description: Python inline code as embedded part of a string (2) +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2152 / INLINE_CODE / BADCASE +Description: Python inline code as embedded part of a string (3) +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2180 / INLINE_CODE / BADCASE +Description: Python inline code with additional leading angle bracket +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2184 / INLINE_CODE / BADCASE +Description: Python inline code inside a dictionary with additional leading angle bracket +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2192 / INLINE_CODE / BADCASE +Description: Python inline code is parameter name +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2193 / INLINE_CODE / BADCASE +Description: Python inline code is parameter name inside a list +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Test JPP_2194 / INLINE_CODE / BADCASE +Description: Python inline code is parameter name inside a dictionary +Expectation: No values are returned, and JsonPreprocessor throws an exception +------------------------------------------------------------------------------------------------------------------------ +Generated: 11.08.2025 - 16:48:21 diff --git a/test/component_test.py b/test/component_test.py index 24872a9..fdc6646 100644 --- a/test/component_test.py +++ b/test/component_test.py @@ -22,8 +22,8 @@ # # -------------------------------------------------------------------------------------------------------------- # -VERSION = "0.64.0" -VERSION_DATE = "07.08.2025" +VERSION = "0.65.0" +VERSION_DATE = "11.08.2025" # # -------------------------------------------------------------------------------------------------------------- #TM*** diff --git a/test/pytest/pytestfiles/test_27_INLINE_CODE_GOODCASE.py b/test/pytest/pytestfiles/test_27_INLINE_CODE_GOODCASE.py new file mode 100644 index 0000000..23901df --- /dev/null +++ b/test/pytest/pytestfiles/test_27_INLINE_CODE_GOODCASE.py @@ -0,0 +1,80 @@ +# ************************************************************************************************************** +# Copyright 2020-2023 Robert Bosch GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# -------------------------------------------------------------------------------------------------------------- +# +# test_27_INLINE_CODE_GOODCASE.py +# +# XC-HWP/ESW3-Queckenstedt +# +# 11.08.2025 - 16:48:21 +# +# -------------------------------------------------------------------------------------------------------------- + +import pytest +from pytestlibs.CExecute import CExecute + +# -------------------------------------------------------------------------------------------------------------- + +class Test_INLINE_CODE_GOODCASE: + +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected values + @pytest.mark.parametrize( + "Description", ["JSON file containing Python inline code with simple data types",] + ) + def test_JPP_2100(self, Description): + nReturn = CExecute.Execute("JPP_2100") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected values + @pytest.mark.parametrize( + "Description", ["JSON file containing Python inline code with composite data types",] + ) + def test_JPP_2101(self, Description): + nReturn = CExecute.Execute("JPP_2101") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected values + @pytest.mark.parametrize( + "Description", ["JSON file containing Python inline code with simple conditions",] + ) + def test_JPP_2102(self, Description): + nReturn = CExecute.Execute("JPP_2102") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected values + @pytest.mark.parametrize( + "Description", ["JSON file containing Python inline code within lists and dictionaries",] + ) + def test_JPP_2103(self, Description): + nReturn = CExecute.Execute("JPP_2103") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected values + @pytest.mark.parametrize( + "Description", ["JSON file containing Python inline code in more complex scenarios",] + ) + def test_JPP_2105(self, Description): + nReturn = CExecute.Execute("JPP_2105") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: JsonPreprocessor returns expected values + @pytest.mark.parametrize( + "Description", ["JSON file containing Python inline code with import paths",] + ) + def test_JPP_2107(self, Description): + nReturn = CExecute.Execute("JPP_2107") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- diff --git a/test/pytest/pytestfiles/test_28_INLINE_CODE_BADCASE.py b/test/pytest/pytestfiles/test_28_INLINE_CODE_BADCASE.py new file mode 100644 index 0000000..1d32240 --- /dev/null +++ b/test/pytest/pytestfiles/test_28_INLINE_CODE_BADCASE.py @@ -0,0 +1,96 @@ +# ************************************************************************************************************** +# Copyright 2020-2023 Robert Bosch GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# -------------------------------------------------------------------------------------------------------------- +# +# test_28_INLINE_CODE_BADCASE.py +# +# XC-HWP/ESW3-Queckenstedt +# +# 11.08.2025 - 16:48:21 +# +# -------------------------------------------------------------------------------------------------------------- + +import pytest +from pytestlibs.CExecute import CExecute + +# -------------------------------------------------------------------------------------------------------------- + +class Test_INLINE_CODE_BADCASE: + +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code as embedded part of a string (1)",] + ) + def test_JPP_2150(self, Description): + nReturn = CExecute.Execute("JPP_2150") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code as embedded part of a string (2)",] + ) + def test_JPP_2151(self, Description): + nReturn = CExecute.Execute("JPP_2151") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code as embedded part of a string (3)",] + ) + def test_JPP_2152(self, Description): + nReturn = CExecute.Execute("JPP_2152") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code with additional leading angle bracket",] + ) + def test_JPP_2180(self, Description): + nReturn = CExecute.Execute("JPP_2180") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code inside a dictionary with additional leading angle bracket",] + ) + def test_JPP_2184(self, Description): + nReturn = CExecute.Execute("JPP_2184") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code is parameter name",] + ) + def test_JPP_2192(self, Description): + nReturn = CExecute.Execute("JPP_2192") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code is parameter name inside a list",] + ) + def test_JPP_2193(self, Description): + nReturn = CExecute.Execute("JPP_2193") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- + # Expected: No values are returned, and JsonPreprocessor throws an exception + @pytest.mark.parametrize( + "Description", ["Python inline code is parameter name inside a dictionary",] + ) + def test_JPP_2194(self, Description): + nReturn = CExecute.Execute("JPP_2194") + assert nReturn == 0 +# -------------------------------------------------------------------------------------------------------------- diff --git a/test/testconfig/TestConfig.py b/test/testconfig/TestConfig.py index 5769c5f..0445205 100644 --- a/test/testconfig/TestConfig.py +++ b/test/testconfig/TestConfig.py @@ -22,7 +22,7 @@ # # -------------------------------------------------------------------------------------------------------------- # -# 07.08.2025 +# 11.08.2025 # # !!! Temporarily tests are deactivated by the following line commented out: # # # listofdictUsecases.append(dictUsecase) @@ -4431,13 +4431,18 @@ dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2100.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ +[DOTDICT] (5/1) > {value1} [STR] : 'ABC' +[DOTDICT] (5/2) > {value2} [INT] : 25 +[DOTDICT] (5/3) > {value3} [FLOAT] : 2.5 +[DOTDICT] (5/4) > {value4} [BOOL] : True +[DOTDICT] (5/5) > {value5} [NONE] : None """ -# # # listofdictUsecases.append(dictUsecase) +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -4446,13 +4451,26 @@ dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2101.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ +[DOTDICT] (6/1) > {value1} [LIST] (2/1) > [INT] : 1 +[DOTDICT] (6/1) > {value1} [LIST] (2/2) > [INT] : 2 +[DOTDICT] (6/2) > {value2} [DOTDICT] (3/1) > {kA} [INT] : 1 +[DOTDICT] (6/2) > {value2} [DOTDICT] (3/2) > {kB} [INT] : 2 +[DOTDICT] (6/2) > {value2} [DOTDICT] (3/3) > {kC} [INT] : 3 +[DOTDICT] (6/3) > {expression1} [LIST] (2/1) > [INT] : 1 +[DOTDICT] (6/3) > {expression1} [LIST] (2/2) > [INT] : 2 +[DOTDICT] (6/4) > {value3} [LIST] (2/1) > [INT] : 1 +[DOTDICT] (6/4) > {value3} [LIST] (2/2) > [INT] : 2 +[DOTDICT] (6/5) > {expression2} [DOTDICT] (2/1) > {kA} [INT] : 1 +[DOTDICT] (6/5) > {expression2} [DOTDICT] (2/2) > {kB} [INT] : 2 +[DOTDICT] (6/6) > {value4} [DOTDICT] (2/1) > {kA} [INT] : 1 +[DOTDICT] (6/6) > {value4} [DOTDICT] (2/2) > {kB} [INT] : 2 """ -# # # listofdictUsecases.append(dictUsecase) +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -4461,13 +4479,19 @@ dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2102.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ +[DOTDICT] (6/1) > {value1} [INT] : 1 +[DOTDICT] (6/2) > {choice} [BOOL] : True +[DOTDICT] (6/3) > {value2} [INT] : 1 +[DOTDICT] (6/4) > {A} [INT] : 1 +[DOTDICT] (6/5) > {B} [INT] : 2 +[DOTDICT] (6/6) > {value3} [STR] : 'self.JPGlobals['A']' """ -# # # listofdictUsecases.append(dictUsecase) +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -4476,23 +4500,30 @@ dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2103.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ +[DOTDICT] (4/1) > {A} [INT] : 1 +[DOTDICT] (4/2) > {B} [INT] : 2 +[DOTDICT] (4/3) > {choice} [BOOL] : True +[DOTDICT] (4/4) > {values} [DOTDICT] (3/1) > {kA} [STR] : 'A' +[DOTDICT] (4/4) > {values} [DOTDICT] (3/2) > {kB} [INT] : 1 +[DOTDICT] (4/4) > {values} [DOTDICT] (3/3) > {kC} [STR] : 'C' """ -# # # listofdictUsecases.append(dictUsecase) +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: Expecting ',' delimiter dictUsecase['TESTID'] = "JPP_2104" dictUsecase['DESCRIPTION'] = "JSON file containing Python inline code as list index and dictionary key" dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2104.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ @@ -4501,28 +4532,52 @@ del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# JSONP file still partially commented out dictUsecase['TESTID'] = "JPP_2105" dictUsecase['DESCRIPTION'] = "JSON file containing Python inline code in more complex scenarios" dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2105.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ +[DOTDICT] (8/1) > {A} [LIST] (3/1) > [INT] : 1 +[DOTDICT] (8/1) > {A} [LIST] (3/2) > [INT] : 2 +[DOTDICT] (8/1) > {A} [LIST] (3/3) > [INT] : 3 +[DOTDICT] (8/2) > {B} [LIST] (3/1) > [INT] : 4 +[DOTDICT] (8/2) > {B} [LIST] (3/2) > [INT] : 5 +[DOTDICT] (8/2) > {B} [LIST] (3/3) > [INT] : 6 +[DOTDICT] (8/3) > {values} [LIST] (4/1) > [INT] : 1 +[DOTDICT] (8/3) > {values} [LIST] (4/2) > [INT] : 2 +[DOTDICT] (8/3) > {values} [LIST] (4/3) > [INT] : 3 +[DOTDICT] (8/3) > {values} [LIST] (4/4) > [LIST] (6/1) > [INT] : 4 +[DOTDICT] (8/3) > {values} [LIST] (4/4) > [LIST] (6/2) > [INT] : 5 +[DOTDICT] (8/3) > {values} [LIST] (4/4) > [LIST] (6/3) > [INT] : 6 +[DOTDICT] (8/3) > {values} [LIST] (4/4) > [LIST] (6/4) > [INT] : 1 +[DOTDICT] (8/3) > {values} [LIST] (4/4) > [LIST] (6/5) > [INT] : 2 +[DOTDICT] (8/3) > {values} [LIST] (4/4) > [LIST] (6/6) > [INT] : 3 +[DOTDICT] (8/4) > {dict} [DOTDICT] (2/1) > {kA} [STR] : 'vA' +[DOTDICT] (8/4) > {dict} [DOTDICT] (2/2) > {kB} [STR] : 'vB' +[DOTDICT] (8/5) > {key_list} [LIST] (2/1) > [STR] : 'kA' +[DOTDICT] (8/5) > {key_list} [LIST] (2/2) > [STR] : 'kB' +[DOTDICT] (8/6) > {C} [STR] : 'C' +[DOTDICT] (8/7) > {D} [STR] : 'D' +[DOTDICT] (8/8) > {value2} [STR] : 'CD' """ -# # # listofdictUsecases.append(dictUsecase) +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# slicing under discussion dictUsecase['TESTID'] = "JPP_2106" dictUsecase['DESCRIPTION'] = "JSON file containing Python inline code with slicing" dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required; slicing still banned" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2106.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ @@ -4536,13 +4591,16 @@ dictUsecase['EXPECTATION'] = "JsonPreprocessor returns expected values" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "GOODCASE" -dictUsecase['HINT'] = "Issue because of 'eval' still required; entire import interpreted as path" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2107.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None dictUsecase['EXPECTEDRETURN'] = """ +[DOTDICT] (3/1) > {path_1} [STR] : './dynamic_imports/AA/imported.AA.jsonp' +[DOTDICT] (3/2) > {path_2} [STR] : './dynamic_imports/AA/BB/imported.BB.jsonp' +[DOTDICT] (3/3) > {level} [STR] : 'AA' """ -# # # listofdictUsecases.append(dictUsecase) +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------------------- @@ -4552,13 +4610,12 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2150.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Python inline code must not be embedded part of a string" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -4567,13 +4624,12 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2151.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Python inline code must not be embedded part of a string" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -4582,417 +4638,444 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2152.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Python inline code must not be embedded part of a string" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454 dictUsecase['TESTID'] = "JPP_2153" dictUsecase['DESCRIPTION'] = "Python inline code as embedded part of a string within a list" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2153.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# error message to be reworked: Python inline code is not allowed as key! +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2154" dictUsecase['DESCRIPTION'] = "Python inline code as embedded part of a string within a dictionary" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2154.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2155" dictUsecase['DESCRIPTION'] = "Python inline code as embedded part of a key name (1)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2155.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2156" dictUsecase['DESCRIPTION'] = "Python inline code as embedded part of a key name (2)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2156.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2157" dictUsecase['DESCRIPTION'] = "Python inline code as embedded part of a key name (3)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2157.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2158" dictUsecase['DESCRIPTION'] = "Python inline code without quotes at left hand side of the colon (1)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2158.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} dictUsecase['TESTID'] = "JPP_2159" +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['DESCRIPTION'] = "Python inline code without quotes at left hand side of the colon (2)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2159.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2160" dictUsecase['DESCRIPTION'] = "Python inline code within quotes at left hand side of the colon (1)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2160.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2161" dictUsecase['DESCRIPTION'] = "Python inline code within quotes at left hand side of the colon (2)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2161.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2162" dictUsecase['DESCRIPTION'] = "Completely invalid Python inline code at left hand side of the colon (1)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2162.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2163" dictUsecase['DESCRIPTION'] = "Completely invalid Python inline code at left hand side of the colon (2)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2163.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2164" dictUsecase['DESCRIPTION'] = "Python inline code as key name at left hand side of the colon (1)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2164.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2165" dictUsecase['DESCRIPTION'] = "Python inline code as key name at left hand side of the colon (2)" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2165.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2166" dictUsecase['DESCRIPTION'] = "Python inline code as list index at left hand side of the colon" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2166.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Error message "Python inline code is not allowed as key!" should be +# rephrased to "Python inline code cannot be used to define a key name." +# https://github.com/test-fullautomation/python-jsonpreprocessor/issues/464 dictUsecase['TESTID'] = "JPP_2167" dictUsecase['DESCRIPTION'] = "Python inline code as dictionary key at left hand side of the colon" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2167.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: 'Expecting value: line 2 column 11 dictUsecase['TESTID'] = "JPP_2168" dictUsecase['DESCRIPTION'] = "Python inline code with missing leading angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2168.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: 'Expecting value: line 2 column 11 dictUsecase['TESTID'] = "JPP_2169" dictUsecase['DESCRIPTION'] = "Python inline code with missing trailing angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2169.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: 'Expecting value: line 2 column 11 dictUsecase['TESTID'] = "JPP_2170" dictUsecase['DESCRIPTION'] = "Python inline code inside a list with missing leading angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2170.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: 'Expecting value: line 2 column 11 dictUsecase['TESTID'] = "JPP_2171" dictUsecase['DESCRIPTION'] = "Python inline code inside a list with missing trailing angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2171.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: 'Expecting value: line 2 column 11 dictUsecase['TESTID'] = "JPP_2172" dictUsecase['DESCRIPTION'] = "Python inline code inside a dictionary with missing leading angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2172.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Exception: 'Expecting value: line 2 column 11 dictUsecase['TESTID'] = "JPP_2173" dictUsecase['DESCRIPTION'] = "Python inline code inside a dictionary with missing trailing angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2173.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter: dictUsecase['TESTID'] = "JPP_2174" dictUsecase['DESCRIPTION'] = "Python inline code with missing both leading angle brackets" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2174.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting value: dictUsecase['TESTID'] = "JPP_2175" dictUsecase['DESCRIPTION'] = "Python inline code with missing both trailing angle brackets" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2175.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter dictUsecase['TESTID'] = "JPP_2176" dictUsecase['DESCRIPTION'] = "Python inline code inside a list with missing both leading angle brackets" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2176.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting value: dictUsecase['TESTID'] = "JPP_2177" dictUsecase['DESCRIPTION'] = "Python inline code inside a list with missing both trailing angle brackets" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2177.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter dictUsecase['TESTID'] = "JPP_2178" dictUsecase['DESCRIPTION'] = "Python inline code inside a dictionary with missing both leading angle brackets" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2178.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting value: dictUsecase['TESTID'] = "JPP_2179" dictUsecase['DESCRIPTION'] = "Python inline code inside a dictionary with missing both trailing angle brackets" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2179.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- @@ -5002,57 +5085,56 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2180.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Could not evaluate the Python builtIn" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter: dictUsecase['TESTID'] = "JPP_2181" dictUsecase['DESCRIPTION'] = "Python inline code with additional trailing angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2181.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Python inline code not resolved dictUsecase['TESTID'] = "JPP_2182" dictUsecase['DESCRIPTION'] = "Python inline code inside a list with additional leading angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2182.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter: dictUsecase['TESTID'] = "JPP_2183" dictUsecase['DESCRIPTION'] = "Python inline code inside a list with additional trailing angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2183.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- @@ -5062,117 +5144,123 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2184.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Could not evaluate the Python builtIn" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting ',' delimiter dictUsecase['TESTID'] = "JPP_2185" dictUsecase['DESCRIPTION'] = "Python inline code inside a dictionary with additional trailing angle bracket" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2185.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# 'Could not evaluate the Python builtIn <>. +# Reason: invalid syntax (, line 1)' +# Expected: Data type error (not supported by JSON) dictUsecase['TESTID'] = "JPP_2186" dictUsecase['DESCRIPTION'] = "Python inline code returns data type not supported by JSON" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2186.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Python inline code not resolved dictUsecase['TESTID'] = "JPP_2187" dictUsecase['DESCRIPTION'] = "Python inline code inside a list returns data type not supported by JSON" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2187.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# 'Could not evaluate the Python builtIn <>. +# Reason: invalid syntax (, line 1)' +# Expected: Data type error (not supported by JSON) dictUsecase['TESTID'] = "JPP_2188" dictUsecase['DESCRIPTION'] = "Python inline code inside a dictionary returns data type not supported by JSON" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2188.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting value: +# Nesting not detected dictUsecase['TESTID'] = "JPP_2189" dictUsecase['DESCRIPTION'] = "Nested Python inline code" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2189.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting value: +# Nesting not detected dictUsecase['TESTID'] = "JPP_2190" dictUsecase['DESCRIPTION'] = "Nested Python inline code inside a list" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2190.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} +# Expecting value: +# Nesting not detected dictUsecase['TESTID'] = "JPP_2191" dictUsecase['DESCRIPTION'] = "Nested Python inline code inside a dictionary" dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2191.jsonp" dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" +dictUsecase['EXPECTEDRETURN'] = None # # # listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- @@ -5182,13 +5270,12 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2192.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Invalid syntax" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -5197,13 +5284,12 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2193.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Invalid syntax" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- dictUsecase = {} @@ -5212,12 +5298,11 @@ dictUsecase['EXPECTATION'] = "No values are returned, and JsonPreprocessor throws an exception" dictUsecase['SECTION'] = "INLINE_CODE" dictUsecase['SUBSECTION'] = "BADCASE" -dictUsecase['HINT'] = "Feature still under construction" -dictUsecase['COMMENT'] = "https://github.com/test-fullautomation/python-jsonpreprocessor/issues/454" +dictUsecase['HINT'] = None +dictUsecase['COMMENT'] = None dictUsecase['JSONFILE'] = r"..\testfiles\jpp-test_config_2194.jsonp" -dictUsecase['EXPECTEDEXCEPTION'] = None -dictUsecase['EXPECTEDRETURN'] = """ -""" -# # # listofdictUsecases.append(dictUsecase) +dictUsecase['EXPECTEDEXCEPTION'] = "Invalid syntax" +dictUsecase['EXPECTEDRETURN'] = None +listofdictUsecases.append(dictUsecase) del dictUsecase # -------------------------------------------------------------------------------------------------------------- diff --git a/test/testfiles/jpp-test_config_2101.jsonp b/test/testfiles/jpp-test_config_2101.jsonp index 4b2250f..ec684aa 100644 --- a/test/testfiles/jpp-test_config_2101.jsonp +++ b/test/testfiles/jpp-test_config_2101.jsonp @@ -19,5 +19,5 @@ "expression1" : [1, 2], "value3" : <<${expression1}>>, "expression2" : {"kA" : 1, "kB" : 2}, - "value3" : <<${expression2}>> + "value4" : <<${expression2}>> } diff --git a/test/testfiles/jpp-test_config_2105.jsonp b/test/testfiles/jpp-test_config_2105.jsonp index a436b8b..7506511 100644 --- a/test/testfiles/jpp-test_config_2105.jsonp +++ b/test/testfiles/jpp-test_config_2105.jsonp @@ -22,12 +22,12 @@ "dict" : {"kA" : "vA", "kB" : "vB"}, "key_list" : <>, // - "value1" : <<(${A}[0] if True else ${B.1) + 1>>, - "code1" : (${A}[0] if True else ${B.1) + 1, - "value1b" : <<(${code04}) + 4>>, - // + // "value1" : <<(${A}[0] if True else ${B.1) + 1>> + // "code1" : (${A}[0] if True else ${B.1) + 1, + // "value1b" : <<(${code04}) + 4>>, + // // "C" : "C", "D" : "D", - "value2" : <<${C} + ${D}>>, - "value3" : <<"${C}" + "${D}">> + "value2" : <<${C} + ${D}>> + // "value3" : <<"${C}" + "${D}">> } diff --git a/test/testfiles/jpp-test_config_2154).jsonp b/test/testfiles/jpp-test_config_2154.jsonp similarity index 100% rename from test/testfiles/jpp-test_config_2154).jsonp rename to test/testfiles/jpp-test_config_2154.jsonp