nautobot/nautobot-plugin-chatops-ipfabric

Need help with testing

justinjeffery-ipf opened this issue · 0 comments

I have no idea how to run any tests locally cause everything I try fails.

Poetry install fails:
Command C:\Users\jjeffery\AppData\Local\pypoetry\Cache\virtualenvs\nautobot-chatops-ipfabric-ptI20pwq-py3.9\Scripts\pip.exe install --no-deps file:///C:/Users/jjeffery/AppData/Local/pypoetry/Cache/artifacts/69/ad/39/bfae9012d3f13c8d1abb2b33844bcb23c35ab4c06dc228d4e31a3e929b/pyuwsgi-2.0.20.tar.gz errored with the following return code 1, and output:
Processing c:\users\jjeffery\appdata\local\pypoetry\cache\artifacts\69\ad\39\bfae9012d3f13c8d1abb2b33844bcb23c35ab4c06dc228d4e31a3e929b\pyuwsgi-2.0.20.tar.gz
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\jjeffery\AppData\Local\pypoetry\Cache\virtualenvs\nautobot-chatops-ipfabric-ptI20pwq-py3.9\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Use
rs\jjeffery\AppData\Local\Temp\pip-req-build-08qgg0py\setup.py'"'"'; file='"'"'C:\Users\jjeffery\AppData\Local\Temp\pip-req-build-08qgg0py\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"',
open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\jjeffery\AppData\Local\Temp\pip-pip-egg-info-n5jn02m8'
cwd: C:\Users\jjeffery\AppData\Local\Temp\pip-req-build-08qgg0py
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\jjeffery\AppData\Local\Temp\pip-req-build-08qgg0py\setup.py", line 13, in
import uwsgiconfig
File "C:\Users\jjeffery\AppData\Local\Temp\pip-req-build-08qgg0py\uwsgiconfig.py", line 8, in
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'

Invoke fails:
C:\Users\justi\Desktop\nautobot-plugin-chatops-ipfabric-snapshot-handling>invoke tests
Starting Docker Containers...
Starting Nautobot in detached mode...
Running docker-compose command "up --detach"
ipfabric_redis_1 is up-to-date
ipfabric_postgres_1 is up-to-date
Starting ipfabric_nautobot_1 ...
Starting ipfabric_nautobot_1 ... done
Starting ipfabric_celery_1 ...
Starting ipfabric_worker_1 ...
Starting ipfabric_celery_1 ... done
Starting ipfabric_worker_1 ... done
Running black...
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "exec nautobot black --check --diff ."
You indicated pty=True, but your platform doesn't support the 'pty' module!

Invoke on Ubuntu 18.04 fails:
#> invoke tests
Starting Docker Containers...
Starting Nautobot in detached mode...
Running docker-compose command "up --detach"
Builds, (re)creates, starts, and attaches to containers for a service.

Unless they are already running, this command also starts any linked services.

The docker-compose up command aggregates the output of each container. When
the command exits, all containers are stopped. Running docker-compose up -d
starts the containers in the background and leaves them running.

If there are existing containers for a service, and the service's configuration
or image was changed after the container's creation, docker-compose up picks
up the changes by stopping and recreating the containers (preserving mounted
volumes). To prevent Compose from picking up changes, use the --no-recreate
flag.

If you want to force Compose to stop and recreate all containers, use the
--force-recreate flag.