tests/fetch: Disable npm tests
PATCH v4 1/1 tests/fetch: Disable npm tests
Since the npm fetcher is disabled, we should skip the npm tests too.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/tests/fetch.py | 10 ++++++++++ 1 file changed, 10 insertions(+)
lib/bb/tests/fetch.py +10 -0
@@ -2811,6 +2811,7 @@ class CrateTest(FetcherTest): class NPMTest(FetcherTest): def skipIfNoNpm(): + return unittest.skip('npm disabled due to security issues') if not shutil.which('npm'): return unittest.skip('npm not installed') return lambda f: f
@@ -2937,6 +2938,7 @@ class NPMTest(FetcherTest): self.assertTrue(os.path.exists(os.path.join(unpackdir, 'package.json'))) def test_npm_no_network_no_tarball(self): + return unittest.skip('npm disabled due to security issues') urls = ['npm://registry.npmjs.org;package=@savoirfairelinux/node-server-example;version=1.0.0'] self.d.setVar('BB_NO_NETWORK', '1') fetcher = bb.fetch.Fetch(urls, self.d)
@@ -3033,6 +3035,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw(self): + return unittest.skip('npm disabled due to security issues') swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/array-flatten': {
@@ -3069,6 +3072,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw_git(self): + return unittest.skip('npm disabled due to security issues') swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/cookie': {
@@ -3082,6 +3086,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw_dev(self): + return unittest.skip('npm disabled due to security issues') swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/array-flatten': {
@@ -3110,6 +3115,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw_destsuffix(self): + return unittest.skip('npm disabled due to security issues') swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/array-flatten': {
@@ -3125,6 +3131,7 @@ class NPMTest(FetcherTest): self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'foo', 'bar', 'node_modules', 'array-flatten', 'package.json'))) def test_npmsw_no_network_no_tarball(self): + return unittest.skip('npm disabled due to security issues') swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/array-flatten': {
@@ -3164,6 +3171,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw_npm_reusability(self): + return unittest.skip('npm disabled due to security issues') # Fetch once with npmsw swfile = self.create_shrinkwrap_file({ 'packages': {
@@ -3186,6 +3194,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw_bad_checksum(self): + return unittest.skip('npm disabled due to security issues') # Try to fetch with bad checksum swfile = self.create_shrinkwrap_file({ 'packages': {
@@ -3282,6 +3291,7 @@ class NPMTest(FetcherTest): @skipIfNoNetwork() def test_npmsw_bundled(self): + return unittest.skip('npm disabled due to security issues') swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/array-flatten': {