apparmor/utils/test
Christian Boltz b15f758490 logparser.py parse_event(): always store family, protocol and sock_type
Storing these event details depending on the operation type only makes
things more difficult because it's hard to differenciate between file
and network events.

Note that this happens at the first log parsing stage (libapparmor log
event -> temporary python array) and therefore doesn't add a serious
memory footprint. The event tree will still only contain the elements
relevant for the actual event type.

This change means that lots of testcases now get 3 more fields (all
None) when testing parse_event(), so update all affected testcases.
(test-network doesn't need a change for probably obvious reasons.)

Also rename a misnamed test in test-change_profile.


Acked-by: Seth Arnold <seth.arnold@canonical.com> for trunk and 2.10.


Note: 2.10 has fewer rule classes, therefore less test-*.py files need
to be changed. Also, I had to slightly adjust the logparser.py patch
because 2.10 doesn't have support for signal events.
2016-11-19 11:00:01 +01:00
..
aa_test.py Add some tests for logparser.py based on the log lines from 2015-01-18 14:55:15 +01:00
cleanprof_test.in Write unix rules when saving a profile 2015-12-17 23:48:43 +01:00
cleanprof_test.out Write unix rules when saving a profile 2015-12-17 23:48:43 +01:00
common_test.py move tests for convert_regexp() to (new) test-aare.py 2015-10-11 20:19:35 +02:00
config_test.py Set PYTHONPATH=.. in runtests-py3.sh to make sure the tests use the in- 2014-07-22 21:25:25 +02:00
easyprof.conf This patchset is broken into 4 parts: 2012-05-07 22:37:48 -07:00
logprof.conf Update perl abstraction, logprof.conf, severity.db and tests for Debian/Ubuntu 2014-08-20 19:14:24 -05:00
Makefile utils/test/Makefile: print test filenames in 'make check' and 'make coverage' 2016-01-25 23:49:54 +01:00
minitools_test.py Use AATest and tmpdir for minitools test 2015-06-27 01:29:46 +02:00
runtests-py2.sh utils/tests: fix bashisms in runtests-py2.sh 2014-09-03 13:00:33 -07:00
runtests-py3.sh fix utils/test/runtests-py*.sh exitcode 2014-10-03 11:48:21 +02:00
severity.db Update perl abstraction, logprof.conf, severity.db and tests for Debian/Ubuntu 2014-08-20 19:14:24 -05:00
severity_broken.db Update perl abstraction, logprof.conf, severity.db and tests for Debian/Ubuntu 2014-08-20 19:14:24 -05:00
test-aa-decode.py utils: make all tests consistent in verbosity 2014-07-25 17:49:06 -07:00
test-aa-easyprof.py implement tests for --include-templates-dir and --include-policy-groups-dir 2015-03-27 16:34:32 -05:00
test-aa.py utils: handle versioned ruby interpreters 2016-01-25 23:05:47 -08:00
test-aamode.py Raise an exception if sub_str_to_mode() is called with invalid mode 2015-02-03 12:47:36 +01:00
test-aare.py Add AARE tests for [chars] and [^chars] style globbing to test-aare.py. 2015-10-14 13:03:16 +02:00
test-baserule.py Change abstract methods in BaseRule to use NotImplementedError 2015-11-24 00:22:37 +01:00
test-capability.py logparser.py parse_event(): always store family, protocol and sock_type 2016-11-19 11:00:01 +01:00
test-change_profile.py logparser.py parse_event(): always store family, protocol and sock_type 2016-11-19 11:00:01 +01:00
test-common.py Adjust type(x) == str checks in the rule classes for py2 2015-12-17 23:38:02 +01:00
test-dbus_parse.py Subject: utils tests: restructure DBUS parse tests 2014-09-03 18:26:19 -07:00
test-example.py Add tempdir and tempfile handling to AATest 2015-05-29 12:55:38 +02:00
test-libapparmor-test_multi.py Accept more log formats in logparser.py 2015-10-03 20:18:54 +02:00
test-logparser.py logparser.py parse_event(): always store family, protocol and sock_type 2016-11-19 11:00:01 +01:00
test-mount_parse.py utils tests: restructure mount parse tests 2014-09-03 18:28:18 -07:00
test-network.py Change abstract methods in BaseRule to use NotImplementedError 2015-11-24 00:22:37 +01:00
test-parser-simple-tests.py Add simple_tests/profile/profile_ns_bad8.sd to utils test exception list 2016-02-19 00:25:20 +01:00
test-pivot_root_parse.py utils tests: restructure pivotroot parse tests 2014-09-03 18:31:09 -07:00
test-ptrace_parse.py utils tests: restructure ptrace parse tests 2014-09-03 18:32:59 -07:00
test-regex_matches.py Change RE_PROFILE_START to accept variables 2015-08-03 00:16:23 +02:00
test-rlimit.py Change abstract methods in BaseRule to use NotImplementedError 2015-11-24 00:22:37 +01:00
test-severity.py Implement severity() in CapabilityRule 2015-06-06 13:59:11 +02:00
test-signal_parse.py utils tests: restructure signal parse tests 2014-09-03 18:36:11 -07:00
test-unix_parse.py utils tests: restructure Unix Parse tests 2014-09-03 18:24:57 -07:00