Skip to content

Commit

Permalink
Improves replication tests
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
dkliban committed Oct 31, 2023
1 parent fb8d211 commit 3594624
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pulpcore/tests/functional/api/test_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pulpcore.tests.functional.utils import PulpTaskGroupError


# @pytest.mark.parallel
@pytest.mark.parallel
def test_replication(
domain_factory,
bindings_cfg,
Expand All @@ -22,12 +22,15 @@ def test_replication(
# Create a non-default domain
non_default_domain = domain_factory()

# Create a domain to replicate from
source_domain = domain_factory()

# Create an Upstream Pulp in the non-default domain
upstream_pulp_body = {
"name": str(uuid.uuid4()),
"base_url": bindings_cfg.host,
"api_root": pulp_settings.API_ROOT,
"domain": "default",
"domain": source_domain.name,
"username": bindings_cfg.username,
"password": bindings_cfg.password,
}
Expand All @@ -41,7 +44,7 @@ def test_replication(
assert task.state == "completed"


# @pytest.mark.parallel
@pytest.mark.parallel
def test_replication_with_wrong_ca_cert(
domain_factory,
bindings_cfg,
Expand All @@ -61,12 +64,15 @@ def test_replication_with_wrong_ca_cert(
# Create a non-default domain
non_default_domain = domain_factory()

# Create a domain to replicate from
source_domain = domain_factory()

# Create an Upstream Pulp in the non-default domain
upstream_pulp_body = {
"name": str(uuid.uuid4()),
"base_url": bindings_cfg.host,
"api_root": pulp_settings.API_ROOT,
"domain": "default",
"domain": source_domain.name,
"username": bindings_cfg.username,
"password": bindings_cfg.password,
"ca_cert": """-----BEGIN CERTIFICATE-----
Expand Down

0 comments on commit 3594624

Please sign in to comment.