gecko-dev/testing/xpcshell
J.C. Jones cdfad59288 Bug 1409259 - Add xpcshell tests for the Symantec distrust r=keeler
This commit adds two new xpcshell tests, both of them testing whether the
security state in TransportSecurityInfo includes the new
STATE_CERT_DISTRUST_IMMINENT flag under the correct circumstances.

The first test, test_symantec_apple_google.js, tests the four combinations of
certs that chain to an affected Symantec root: with/without a whitelisted
intermediate, and before/after the notBefore cutoff date.

The second test, test_symantec_apple_google_unaffected.js, tests an unrelated
ca->intermediate->ee chain that does not chain to an affected root, and ensures
the flag is not set.

This patch adds SymantecSanctionsServer to the mozbuild and xpcshell test
infrastructure files to ensure it runs properly on TaskCluster, too.

MozReview-Commit-ID: GtUXH2VFFh

--HG--
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.key => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.key
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.key.keyspec => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.key.keyspec
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.pem => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.pem
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.pem.certspec => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.pem.certspec
rename : security/manager/ssl/tests/unit/tlsserver/cmd/BadCertServer.cpp => security/manager/ssl/tests/unit/tlsserver/cmd/SymantecSanctionsServer.cpp
extra : rebase_source : f399bca5a13db3efa5bbaa5136c8effc3948ed5e
2017-11-01 11:12:11 -07:00
..
example Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop 2017-10-26 11:47:01 +01:00
moz-http2 Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus 2017-06-28 10:34:55 -07:00
node-http2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
README
dbg-actors.js Bug 1367235 - Additional changes for eslint on testing/xpcshell; r=Standard8 2017-05-25 07:32:44 -06:00
head.js Bug 1412282 - Allow calling Assert.jsm methods directly from other test-only modules. r=mikedeboer 2017-10-27 14:38:30 +01:00
mach_commands.py Bug 1410714 - Follow-up to fix some minor python lint problems 2017-10-24 15:41:39 -06:00
mach_test_package_commands.py Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal 2017-09-07 21:15:35 -04:00
moz.build Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin 2017-09-26 10:47:22 -04:00
python.ini Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester 2016-11-16 09:59:22 -05:00
remotexpcshelltests.py Bug 1409259 - Add xpcshell tests for the Symantec distrust r=keeler 2017-11-01 11:12:11 -07:00
runxpcshelltests.py Bug 1390884 - Enable limited test chaos mode in test-verify; r=jmaher 2017-09-26 13:20:28 -06:00
selftest.py Bug 1397852 - Enable flake8 linter on testing/xpcshell. r=ahal 2017-09-14 09:51:27 -04:00
xpcshellcommandline.py Bug 1410714 - Help mach tests find adb when running Android tests; r=jmaher 2017-10-24 15:17:25 -06:00

README

Simple xpcshell-based test harness

converted from netwerk/test/unit

Some documentation at http://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests
See also http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness