diff options
author | dbiastoch <dbiastoch@de.adit-jv.com> | 2021-01-20 15:12:15 +0100 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-06-30 10:54:59 +0900 |
commit | 445c2ec41eef9076a80cfc435b4d75a102e0adcb (patch) | |
tree | 74f233dea8aac0d08c54d4ea11069741e8dfd326 /tests/testfilter.json | |
parent | 442688504260bb2bfcfb08a9865f223d2ab2d19a (diff) | |
download | DLT-daemon-445c2ec41eef9076a80cfc435b4d75a102e0adcb.tar.gz |
dlt-receive: Implemented gtest for extended filtering
-Added 'testfile_extended.dlt', which extends the default 'testfile.dlt' by messages with very different lenghts, log levels, ContextIDs and AppIDs
-Added 'testfilter.json', which contains a valide json filter file
-Implemented gtest 't_dlt_message_print_ascii_with_json_filter' in 'gtest_dlt_common.cpp' to test the correct behavior of extended filtering and the json filter file parsing
Signed-off-by: dbiastoch <dbiastoch@de.adit-jv.com>
Diffstat (limited to 'tests/testfilter.json')
-rw-r--r-- | tests/testfilter.json | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/testfilter.json b/tests/testfilter.json new file mode 100644 index 0000000..c4ba61f --- /dev/null +++ b/tests/testfilter.json @@ -0,0 +1,17 @@ +{ +"filter1": { + "AppId": "LOG", + "ContextId": "TEST", + "LogLevel": "3" + }, +"filter2": { + "AppId": "app", + "LogLevel": "4" + }, +"filter3": { + "AppId": "app2", + "ContextId": "con2", + "PayloadMin": "20", + "PayloadMax": "50" + } +} |