Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/integration/api_image_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import contextlib
import json
import os
import shutil
import socket
import socketserver
Expand Down Expand Up @@ -278,7 +279,11 @@ def do_GET(self):

server.shutdown()

@pytest.mark.skipif(True, reason="Doesn't work inside a container - FIXME")
@pytest.mark.skipif(
os.environ.get('DOCKER_HOST', '').startswith('unix:///') and
os.path.exists('/.dockerenv'),
reason="Doesn't work inside a container - HTTP server unreachable from within Docker"
Comment on lines -281 to +285

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see this skip was originally added in 6c0f718

That PR added various similar skips ("Doesn't work inside a container - FIXME"), but a quick search shows that all of those skips were removed except for this one.

Do we know why this one doesn't work inside a container? And perhaps should we check if that's still the case, or if the Skip could be removed?

If it can't be removed, it would be good to leave a comment that describes why it doesn't work (so that potentially it could be fixed if it's not easy to fix short term)

)
def test_import_from_url(self):
# The crappy test HTTP server doesn't handle large files well, so use
# a small file.
Expand Down
Loading