xmunoz / bugzilla2gitlab

An issue migrator
MIT License
32 stars 19 forks source link

Provides support to allow skipping pre-migrated bugs from bugzilla to… #38

Open bRitch022 opened 2 years ago

bRitch022 commented 2 years ago

Related issues:

Summary of changes:

Testing

** Caveat -- This was tested on a production application and works very successfully. However, I could not get the pytest to successfully execute with pytest nor pytest-3. This is the output: image

xmunoz commented 2 years ago

I can setup CI for PRs. You need to run pip install . before running pytest. This is the test failure that I am getting:

>           raise ConnectionError(e, request=request)
E           requests.exceptions.ConnectionError: HTTPSConnectionPool(host='git.example.com', port=443): Max retries exceeded with url: /api/v4/issues?searchWhat%20are%20the%20Spice%20Girls%20doing%20in%20my%20spice%20dispenser?&in=title (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6960948190>: Failed to establish a new connection: [Errno -2] Name or service not known'))

venv/lib/python3.10/site-packages/requests/adapters.py:519: ConnectionError

If you can get the tests passing, then I'll do a review.

bRitch022 commented 2 years ago

I can setup CI for PRs. You need to run pip install . before running pytest.

I was sure to run the pip install .

Looks like it was successful as well, but no luck in running the test image

bRitch022 commented 2 years ago

I can setup CI for PRs.

If you can get the tests passing, then I'll do a review.

Might not be a bad idea to set up a Gitlab container for this: https://docs.gitlab.com/ee/install/docker.html

I believe the host='git.example.com' is posing an issue. I can't get a passing test even though I have tried: