Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Created January 5, 2017 00:57
Show Gist options
  • Save Mierdin/dfe284e1302cd43563bc20d601ac5c1f to your computer and use it in GitHub Desktop.
Save Mierdin/dfe284e1302cd43563bc20d601ac5c1f to your computer and use it in GitHub Desktop.
(napalm) vagrant@st2dev:~/st2$ ./st2common/bin/st2-run-pack-tests -p /opt/stackstorm/packs/napalm
Running tests for pack: napalm
Creating virtualenv in /tmp/st2-pack-tests-virtualenvs/napalm...
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/lib/python2.7/site.py with new content
New python executable in /tmp/st2-pack-tests-virtualenvs/napalm/bin/python
Installing setuptools, pip...done.
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate with new content
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate.fish with new content
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate_this.py with new content
Overwriting /tmp/st2-pack-tests-virtualenvs/napalm/bin/activate.csh with new content
Traceback (most recent call last):
File "/tmp/st2-pack-tests-virtualenvs/napalm/bin/pip", line 7, in <module>
from pip import main
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .response import is_fp_closed
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py", line 4, in <module>
from ..exceptions import HeaderParsingError
ImportError: cannot import name HeaderParsingError
Installing global pack test dependencies...
Traceback (most recent call last):
File "/tmp/st2-pack-tests-virtualenvs/napalm/bin/pip", line 7, in <module>
from pip import main
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .response import is_fp_closed
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py", line 4, in <module>
from ..exceptions import HeaderParsingError
ImportError: cannot import name HeaderParsingError
Traceback (most recent call last):
File "/tmp/st2-pack-tests-virtualenvs/napalm/bin/pip", line 7, in <module>
from pip import main
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .response import is_fp_closed
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py", line 4, in <module>
from ..exceptions import HeaderParsingError
ImportError: cannot import name HeaderParsingError
Traceback (most recent call last):
File "/tmp/st2-pack-tests-virtualenvs/napalm/bin/pip", line 7, in <module>
from pip import main
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .response import is_fp_closed
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py", line 4, in <module>
from ..exceptions import HeaderParsingError
ImportError: cannot import name HeaderParsingError
Installing pack-specific dependencies...
Traceback (most recent call last):
File "/tmp/st2-pack-tests-virtualenvs/napalm/bin/pip", line 7, in <module>
from pip import main
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .response import is_fp_closed
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py", line 4, in <module>
from ..exceptions import HeaderParsingError
ImportError: cannot import name HeaderParsingError
Installing pack-specific test dependencies...
Traceback (most recent call last):
File "/tmp/st2-pack-tests-virtualenvs/napalm/bin/pip", line 7, in <module>
from pip import main
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .response import is_fp_closed
File "/tmp/st2-pack-tests-virtualenvs/napalm/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py", line 4, in <module>
from ..exceptions import HeaderParsingError
ImportError: cannot import name HeaderParsingError
Running tests...
Failure: ImportError (No module named mock) ... ERROR
Failure: ImportError (No module named eventlet) ... ERROR
======================================================================
ERROR: Failure: ImportError (No module named mock)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/opt/stackstorm/packs/napalm/tests/napalm_action_test.py", line 15, in <module>
import mock
ImportError: No module named mock
======================================================================
ERROR: Failure: ImportError (No module named eventlet)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/opt/stackstorm/packs/napalm/tests/napalm_base_action_test_case.py", line 17, in <module>
from st2tests.base import BaseActionTestCase
File "/home/vagrant/st2/st2tests/st2tests/__init__.py", line 16, in <module>
from st2tests.base import EventletTestCase, DbTestCase, DbModelTestCase
File "/home/vagrant/st2/st2tests/st2tests/base.py", line 28, in <module>
import eventlet
ImportError: No module named eventlet
----------------------------------------------------------------------
Ran 2 tests in 0.042s
FAILED (errors=2)
(napalm) vagrant@st2dev:~/st2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment