~cypressyew/qa-regression-testing:phlin/unset-env-var

Last commit made on 2022-12-21
Get this branch:
git clone -b phlin/unset-env-var https://git.launchpad.net/~cypressyew/qa-regression-testing
Only Po-Hsu Lin can upload to this branch. If you are Po-Hsu Lin please log in for upload directions.

Branch merges

Branch information

Name:
phlin/unset-env-var
Repository:
lp:~cypressyew/qa-regression-testing

Recent commits

f80582b... by Po-Hsu Lin

test-apparmor.py: make sure environment variables are restored after test

BugLink: https://bugs.launchpad.net/bugs/2000233

The python environment variable we set for those python3 related tests
like test_libapparmor_testsuite3() and test_utils_testsuite3() should
be cleared after test if they're not set before.

Otherwise this will make test_utils_testsuite() to be tested with
python3 if we're trying to run the whole test-apparmor.py suite
directly.

Signed-off-by: Po-Hsu Lin <email address hidden>

2061190... by Alex Murray

Merge remote-tracking branch 'cypressyew/phlin/apparmor-granularity'

Signed-off-by: Alex Murray <email address hidden>

7f16729... by Alex Murray

test-apparmor.py: Add support for lunar

da631fa... by Po-Hsu Lin

test-apparmor.py: make it possible to run tests one-by-one

Don't explictly add test classes into unittest.TestSuite() but just
use unittest.main() instead. So that we will be able to run single
test with:
  ./test-apparmor.py -v ApparmorTest.test_aa_status

The whole suite can still be triggered with:
  ./test-apparmor.py -v

See --help for more information for unittests.
And skip test with unittest.skipUnless.

Without the need to run through everything, this change will make it
easier to debug a single failure.

Signed-off-by: Po-Hsu Lin <email address hidden>

212653e... by Camila Camargo de Matos

Adding ruby-rack test notes

8dd15ef... by Alex Murray

test-squid.py: Requires root and symlink to test-squid3.py

This way umt qrt should DTRT for testing squid3 updates

Signed-off-by: Alex Murray <email address hidden>

a9e4346... by Steve Beattie

test-sudo.py: fix CVE-2019-14287 tests for slight error format change

In at least jammy and newer sudo reports:

  sudo: unknown user #-1

instead of:

  sudo: unknown user: #-1

so accept that format as well.

Signed-off-by: Steve Beattie <email address hidden>

80d04d5... by Steve Beattie

test-sudo.py: merge fix for unavailable private tests

Fixes: c1296903 ("test-sudo: add support for private tests")
Approved-by: Steve Beattie <email address hidden>
MR: https://code.launchpad.net/~pkopylov/qa-regression-testing/+git/qa-regression-testing/+merge/433994

f67eab8... by Pavel Kopylov

Fix test-sudo.py to run both variants with and without a private test-suite.

b4a0304... by Alex Murray

scripts/test-snapd.py: Add functional test for /tmp/snap-private-tmp

This comes from the fix for CVE-2022-3328

Signed-off-by: Alex Murray <email address hidden>