zeek/testing/btest/scripts/base/frameworks
Christian Kreibich ed5d60f758 Fix races in scripts.base.frameworks.intel.cluster-transparency-with-proxy test
This test was unstable for two reasons:

- Nothing verified whether the two workers had checked in with the proxy,
meaning that messages between the workers and proxies could get lost. This adds
an extra node_up event that the proxy generates synthetically, with values
recognizable to the manager, once the proxy sees both workers connected. This is
a test-level workaround for what should really be a cluster-is-ready event in
the cluster framework proper.

- More subtle: the Intel framework makes the manager send its current
min_data_store to newly connected workers, which in the case of this tests
introduces a race: since the data store, arriving at the worker, replaces the
existing value, it could actually remove already established items if timing was
right. This would lead to the count in the test reaching 3, assuming that 3
intel items are available, when in reality it was less, causing the
Intel::seen() call to do nothing. We now disable the sending of the data store
upon connect, via the global added in the previous commit.

This also expands the test slightly so that both workers call Intel::seen() for
the items inserted by the other worker. This is added validation for the second
point above, because in the presence of that race one occasionally sees one log
entry make it, and the other fail.
2022-06-01 22:23:07 -07:00
..
analyzer Add concept of "parent" tag namespaces 2021-11-23 19:36:49 -07:00
cluster General btest cleanup 2020-08-11 11:26:22 -07:00
config GH-1558: Fix reading vector of enum types from config files 2021-05-14 16:59:51 -07:00
control Remove unnecessary -B arguments from Zeek invocations in testsuite 2021-06-24 17:05:32 -07:00
dpd Add DPD::max_violations option 2019-07-19 13:00:02 -07:00
file-analysis Separate stdout from stderr in btest baselines 2021-03-30 16:23:23 -07:00
input Fix race conditions in scripts.base.frameworks.input.reread 2021-07-12 13:25:03 -07:00
intel Fix races in scripts.base.frameworks.intel.cluster-transparency-with-proxy test 2022-06-01 22:23:07 -07:00
logging Include spicy in build. 2022-05-16 09:07:11 +02:00
netcontrol speed up ZAM compilation by capping function size when inlining 2022-05-14 14:52:31 -07:00
notice Expand the tests, and have email_admin email src contacts in one e-mail, and dst contacts in another. 2021-06-17 14:49:24 -05:00
openflow "balance" tests with multiple Zeek scripts to load the same elements 2021-03-24 21:37:26 -07:00
packet-filter General btest cleanup 2020-08-11 11:26:22 -07:00
reporter General btest cleanup 2020-08-11 11:26:22 -07:00
software updates to btests to support switch to expression-based initialization 2022-03-23 15:36:35 -07:00
sumstats speed up ZAM compilation by capping function size when inlining 2022-05-14 14:52:31 -07:00