mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Swapping out "from saltfactories.factories.daemons.container import ContainerFactory" for "from saltfactories.daemons.container import Container". Updating warning to use reason instead of warning.
This commit is contained in:
parent
3f68173a9c
commit
6592ea0b6c
7 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@ import time
|
|||
|
||||
import attr
|
||||
import pytest
|
||||
from saltfactories.factories.daemons.container import ContainerFactory
|
||||
from saltfactories.daemons.container import Container
|
||||
from saltfactories.utils import random_string
|
||||
from saltfactories.utils.ports import get_unused_localhost_port
|
||||
|
||||
|
@ -59,7 +59,7 @@ def rabbitmq_container(request, salt_factories, modules):
|
|||
docker_client = docker.from_env()
|
||||
except docker_errors.DockerException:
|
||||
pytest.skip("Failed to get a connection to docker running on the system")
|
||||
connectable = ContainerFactory.client_connectable(docker_client)
|
||||
connectable = Container.client_connectable(docker_client)
|
||||
if connectable is not True: # pragma: no cover
|
||||
pytest.skip(connectable)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ pytestmark = [
|
|||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_freebsd(reason="No Docker on FreeBSD available"),
|
||||
pytest.mark.skip_if_binaries_missing(
|
||||
"docker", "dockerd", message="Docker not installed"
|
||||
"docker", "dockerd", reason="Docker not installed"
|
||||
),
|
||||
]
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ pytestmark = [
|
|||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_freebsd(reason="No Docker on FreeBSD available"),
|
||||
pytest.mark.skip_if_binaries_missing(
|
||||
"docker", "dockerd", message="Docker not installed"
|
||||
"docker", "dockerd", reason="Docker not installed"
|
||||
),
|
||||
]
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ pytestmark = [
|
|||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_freebsd(reason="No Docker on FreeBSD available"),
|
||||
pytest.mark.skip_if_binaries_missing(
|
||||
"docker", "dockerd", message="Docker not installed"
|
||||
"docker", "dockerd", reason="Docker not installed"
|
||||
),
|
||||
]
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ pytestmark = [
|
|||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_freebsd(reason="No Docker on FreeBSD available"),
|
||||
pytest.mark.skip_if_binaries_missing(
|
||||
"docker", "dockerd", message="Docker not installed"
|
||||
"docker", "dockerd", reason="Docker not installed"
|
||||
),
|
||||
]
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ pytestmark = [
|
|||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_freebsd(reason="No Docker on FreeBSD available"),
|
||||
pytest.mark.skip_if_binaries_missing(
|
||||
"docker", "dockerd", message="Docker not installed"
|
||||
"docker", "dockerd", reason="Docker not installed"
|
||||
),
|
||||
]
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ pytestmark = [
|
|||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_freebsd(reason="No Docker on FreeBSD available"),
|
||||
pytest.mark.skip_if_binaries_missing(
|
||||
"docker", "dockerd", message="Docker not installed"
|
||||
"docker", "dockerd", reason="Docker not installed"
|
||||
),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue