tests/fetch: Disable npm tests
PATCH 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 | 9 +++++++++ 1 file changed, 9 insertions(+)
lib/bb/tests/fetch.py +9 -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
@@ -3033,6 +3034,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 +3071,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 +3085,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 +3114,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 +3130,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 +3170,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 +3193,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 +3290,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': {