Disable some tests on Sauce Labs
Since we still run the full test suite on Node.js, this would only no longer catch bugs which are specific to - Browser non-draft04 GCM (and don't manifest in draft04 GCM, and don't manifest in Node.js non-draft04 GCM) - Browser OCB (which is not natively implemented in the browser) - Browser V5 Keys
This commit is contained in:
parent
00a2c0c0c2
commit
d1626a7a51
|
@ -1,3 +1,5 @@
|
||||||
|
/* globals tryTests: true */
|
||||||
|
|
||||||
const openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
const openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
|
||||||
|
|
||||||
const stub = require('sinon/lib/sinon/stub');
|
const stub = require('sinon/lib/sinon/stub');
|
||||||
|
@ -1652,21 +1654,20 @@ describe('Key', function() {
|
||||||
|
|
||||||
describe('V4', versionSpecificTests);
|
describe('V4', versionSpecificTests);
|
||||||
|
|
||||||
describe('V5', function() {
|
let aead_protectVal;
|
||||||
let aead_protectVal;
|
let aead_protect_versionVal;
|
||||||
let aead_protect_versionVal;
|
tryTests('V5', versionSpecificTests, {
|
||||||
beforeEach(function() {
|
if: !openpgp.config.saucelabs,
|
||||||
|
beforeEach: function() {
|
||||||
aead_protectVal = openpgp.config.aead_protect;
|
aead_protectVal = openpgp.config.aead_protect;
|
||||||
aead_protect_versionVal = openpgp.config.aead_protect_version;
|
aead_protect_versionVal = openpgp.config.aead_protect_version;
|
||||||
openpgp.config.aead_protect = true;
|
openpgp.config.aead_protect = true;
|
||||||
openpgp.config.aead_protect_version = 4;
|
openpgp.config.aead_protect_version = 4;
|
||||||
});
|
},
|
||||||
afterEach(function() {
|
afterEach: function() {
|
||||||
openpgp.config.aead_protect = aead_protectVal;
|
openpgp.config.aead_protect = aead_protectVal;
|
||||||
openpgp.config.aead_protect_version = aead_protect_versionVal;
|
openpgp.config.aead_protect_version = aead_protect_versionVal;
|
||||||
});
|
}
|
||||||
|
|
||||||
versionSpecificTests();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Parsing armored text with RSA key and ECC subkey', async function() {
|
it('Parsing armored text with RSA key and ECC subkey', async function() {
|
||||||
|
|
|
@ -767,7 +767,7 @@ describe('OpenPGP.js public api tests', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
tryTests('GCM mode', tests, {
|
tryTests('GCM mode', tests, {
|
||||||
if: true,
|
if: !openpgp.config.saucelabs,
|
||||||
beforeEach: function() {
|
beforeEach: function() {
|
||||||
openpgp.config.aead_protect = true;
|
openpgp.config.aead_protect = true;
|
||||||
openpgp.config.aead_protect_version = 0;
|
openpgp.config.aead_protect_version = 0;
|
||||||
|
@ -801,7 +801,7 @@ describe('OpenPGP.js public api tests', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
tryTests('OCB mode', tests, {
|
tryTests('OCB mode', tests, {
|
||||||
if: true,
|
if: !openpgp.config.saucelabs,
|
||||||
beforeEach: function() {
|
beforeEach: function() {
|
||||||
openpgp.config.aead_protect = true;
|
openpgp.config.aead_protect = true;
|
||||||
openpgp.config.aead_mode = openpgp.enums.aead.ocb;
|
openpgp.config.aead_mode = openpgp.enums.aead.ocb;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user