Skip to content

Commit

Permalink
Update repo checksum with one supported
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Jun 17, 2024
1 parent dc996dd commit 8da3960
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/foreman/api/test_capsulecontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def test_positive_checksum_sync(
cvv = cvv.read()
assert len(cvv.environment) == 2

# Verify repodata's checksum type is sha256, not sha1 on capsule
# Verify repodata's checksum type is sha256, not sha512 on capsule
repo_url = module_capsule_configured.get_published_repo_url(
org=function_org.label,
prod=function_product.label,
Expand All @@ -198,11 +198,11 @@ def test_positive_checksum_sync(
)
repomd = get_repomd(repo_url)
checksum_types = re.findall(r'(?<=checksum type=").*?(?=")', repomd)
assert "sha1" not in checksum_types
assert "sha512" not in checksum_types
assert "sha256" in checksum_types

# Update repo's checksum type to sha1
repo.checksum_type = 'sha1'
# Update repo's checksum type to sha512
repo.checksum_type = 'sha512'
repo = repo.update(['checksum_type'])

# Sync, publish, and promote repo
Expand All @@ -221,10 +221,10 @@ def test_positive_checksum_sync(
cvv = cvv.read()
assert len(cvv.environment) == 2

# Verify repodata's checksum type has updated to sha1 on capsule
# Verify repodata's checksum type has updated to sha512 on capsule
repomd = get_repomd(repo_url)
checksum_types = re.findall(r'(?<=checksum type=").*?(?=")', repomd)
assert "sha1" in checksum_types
assert "sha512" in checksum_types
assert "sha256" not in checksum_types

@pytest.mark.skip_if_open("BZ:2025494")
Expand Down

0 comments on commit 8da3960

Please sign in to comment.