6 Commits

Author SHA1 Message Date
Rainer Gerhards
8ea166d89d
testbench: fix some hardcoded names (#2895)
* testbench: fix some hardcoded names

This is prework to make parallel execution of tests possible.
2018-08-01 12:52:17 +02:00
Rainer Gerhards
2ba3c8ddde
testbench: modernize testbench plumbing
changes some of the test commands to use bash functions
includes some small bug fixes to tests where bugs were
previously not seen due to different plumbing.
2018-07-23 17:26:34 +02:00
PascalWithopf
1628ef2a37 testbench: workaround for solaris 2017-04-13 14:07:38 +02:00
Thomas D
b1983d0951 Make privdrop tests more portable and robust
- Don't use $UID, use $EUID instead

- Allow user to specify testuser (through RSYSLOG_TESTUSER env variable)
  or fall back to various default users

- Validate if user running tests can really impersonate another user

- Test if testuser really exists

Fixes: https://github.com/rsyslog/rsyslog/issues/927
2016-04-15 13:34:52 +02:00
Rainer Gerhards
94013fe7c2 testbench: do no longer assume primary group name = user name
this doesn't hold true on all test environments
2016-03-25 11:52:57 +01:00
Rainer Gerhards
32582e775b testbench: add tests for $PrivDropToGroup*
This also introduces a new global setting to permit keep
supplemental groups during privilege drop. This is needed
when we want to run the tests as non-root (what we want).

Sample:
global(privdrop.group.keepsupplemental="on")

The new tests ensure that we catch regressions in the privilege
drop code.

see also https://github.com/rsyslog/rsyslog/issues/889
2016-03-24 17:55:33 +01:00