schubergphilis / towerlib

A python library to interface with ansible tower's (awx) api.
MIT License
43 stars 39 forks source link

CI test failled (Temporary failure in name resolution) #108

Open Sispheor opened 2 years ago

Sispheor commented 2 years ago

Error:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='placeholder_hostname', port=80): Max retries exceeded with url: /api/v2/users/?page_size=25&username__iexact=workflow_normal (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5dc5fe9250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

The 'placeholder_hostname' seems to be a string. Need to be added to /etc/hosts? Need to be transformed with a sed command before executing?

What was the idea? :) How can we help.

costastf commented 2 years ago

The idea is that under tests/fixtures/ there is a docker-compose.yml that sets up a full stack with a local directory mounted for the postgres backend and all the tests run towards that exposed service. So that service needs to be up before you execute the tests which is done by sourcing the setup_aliases.(sh|ps1 depending on your platform) and running _test. The problem is that the that stack no longer works and I do not have docker any more due to licensing. So we need to come up with a way to have that stack fully functional so the tests can run as indended and probably update the instances to something more recent. Any help there is appreciated. I will als try to find some time to look into this.

costastf commented 2 years ago

I have looked into setting up the latest suggested stack, still not fully done. I will post updates.