diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-05-08 10:42:39 +0200 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2019-05-13 17:25:15 +0000 |
commit | ccf9820ea7575edf1d4192b3f119769a6a6819dd (patch) | |
tree | 4a4ac561d1144d11981f72a345a7afb202a71425 /test/suite_outputformats.py | |
parent | 9f875e98e3204ee9531c475598321d5df9f5d6c5 (diff) |
elastic: change 'pcap_file' into 'doc' in the mapping.
Newer versions of elastic are using 'doc' as type. Change the code
according to that.
Fix point (4) of the linked bug.
Bug: 15763
Change-Id: Ia28102a0914c6308eb3516daa57af2e49ce9a4e5
Reviewed-on: https://code.wireshark.org/review/33111
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Eneko Gómez <eneko.gomez.tecnalia@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'test/suite_outputformats.py')
-rw-r--r-- | test/suite_outputformats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/suite_outputformats.py b/test/suite_outputformats.py index 8ec47769f5..9f61b03e70 100644 --- a/test/suite_outputformats.py +++ b/test/suite_outputformats.py @@ -66,7 +66,7 @@ class case_outputformats(subprocesstest.SubprocessTestCase): check_outputformat("json", extra_args=['-eframe.number', '-c1'], expected=[ { "_index": "packets-2004-12-05", - "_type": "pcap_file", + "_type": "doc", "_score": None, "_source": { "layers": { @@ -81,6 +81,6 @@ class case_outputformats(subprocesstest.SubprocessTestCase): def test_outputformat_ek_select_field(self, check_outputformat): '''Checks that the -e option works with -Tek.''' check_outputformat("ek", extra_args=['-eframe.number', '-c1'], expected=[ - {"index": {"_index": "packets-2004-12-05", "_type": "pcap_file"}}, + {"index": {"_index": "packets-2004-12-05", "_type": "doc"}}, {"timestamp": "1102274184317", "layers": {"frame_number": ["1"]}} ], multiline=True) |