Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pods: with seaworthy tests #69

Closed
wants to merge 21 commits into from
Closed

Pods: with seaworthy tests #69

wants to merge 21 commits into from

Conversation

JayH5
Copy link
Contributor

@JayH5 JayH5 commented Sep 11, 2017

No description provided.


def wait_for_start(self, docker_helper, container):
# No real way to know when Nginx is ready. Wait a short moment.
time.sleep(0.5)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better option may be to make some dummy requests against Nginx.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have a status page we can hit?

MatchesPsTree('nginx', nginx_worker_args),
]))

def test_nginx_access_logs(self, nginx_container, web_container):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether a test is "for" the Nginx container or for the web/gunicorn container is kinda hard to say, since they work together. It's possible that it makes more sense for all the tests for headers and such to be in TestNginx instead of TestWeb, but I'm not sure.

# FIXME: there are probably better ways to skip these tests
if pods:
if request.fixturename in ['web_only_container', 'single_container']:
pytest.skip()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


def wait_for_start(self, docker_helper, container):
# No real way to know when Nginx is ready. Wait a short moment.
time.sleep(0.5)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have a status page we can hit?

if pods:
if request.fixturename in [
'web_only_container', 'single_container']:
pytest.skip()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe pytest.skip("these tests don't make sense for pods") and something equivalent in the other branch?

@JayH5
Copy link
Contributor Author

JayH5 commented Dec 14, 2018

Closing these pods PRs as I've learnt a lot about this stuff since then and would do this differently.

@JayH5 JayH5 closed this Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants