From 704a40cc150fd278bac80f75dcbd9566f2edfcef Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Wed, 18 Dec 2019 15:08:44 -0500 Subject: [PATCH] fix test case --- ...ulti-vmware_nsx.conf.tmpl => p_vmware_vsphere.conf.tmpl} | 0 tests/test_vmware.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename package/etc/conf.d/log_paths/{p_multi-vmware_nsx.conf.tmpl => p_vmware_vsphere.conf.tmpl} (100%) diff --git a/package/etc/conf.d/log_paths/p_multi-vmware_nsx.conf.tmpl b/package/etc/conf.d/log_paths/p_vmware_vsphere.conf.tmpl similarity index 100% rename from package/etc/conf.d/log_paths/p_multi-vmware_nsx.conf.tmpl rename to package/etc/conf.d/log_paths/p_vmware_vsphere.conf.tmpl diff --git a/tests/test_vmware.py b/tests/test_vmware.py index e406ee8..4ed57ca 100644 --- a/tests/test_vmware.py +++ b/tests/test_vmware.py @@ -25,7 +25,7 @@ def test_linux_vmware(record_property, setup_wordlist, setup_splunk): sendsingle(message) - st = env.from_string("search index=main {{ pid }} sourcetype=\"vmware:esx:vsphere:syslog\" | head 2") + st = env.from_string("search index=main {{ pid }} sourcetype=\"vmware:vsphere:esx\" | head 2") search = st.render(host=host, pid=pid) resultCount, eventCount = splunk_single(setup_splunk, search) @@ -46,7 +46,7 @@ def test_linux_vmware_nsx_ietf(record_property, setup_wordlist, setup_splunk): sendsingle(message) - st = env.from_string("search index=main host={{ host }} PID={{ pid }} sourcetype=\"vmware:nsx:vsphere:syslog\" | head 2") + st = env.from_string("search index=main host={{ host }} PID={{ pid }} sourcetype=\"vmware:vsphere:nsx\" | head 2") search = st.render(host=host, pid=pid) resultCount, eventCount = splunk_single(setup_splunk, search) @@ -67,7 +67,7 @@ def test_linux_vmware_nsx_fw(record_property, setup_wordlist, setup_splunk): sendsingle(message) - st = env.from_string("search index=main host={{ host }} {{ pid }} sourcetype=\"vmware:nsx:vsphere:syslog\" | head 2") + st = env.from_string("search index=main host={{ host }} {{ pid }} sourcetype=\"vmware:vsphere:nsx\" | head 2") search = st.render(host=host, pid=pid) resultCount, eventCount = splunk_single(setup_splunk, search)