koji_block_retired: fix error in accessing message header
Signed-off-by: Lenka Segura <lsegura@redhat.com>
This commit is contained in:
parent
a120f81941
commit
c7b7479cd0
2 changed files with 6 additions and 6 deletions
|
@ -129,7 +129,7 @@ class TestProcessBlockRetired:
|
|||
"date": "2024-09-16T12:12:46+01:00",
|
||||
}
|
||||
}
|
||||
message.headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
message._headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
config = MagicMock()
|
||||
config = {
|
||||
"koji_url": "https://example.koji.org",
|
||||
|
@ -161,7 +161,7 @@ class TestProcessBlockRetired:
|
|||
"date": "2024-09-16T12:12:46+01:00",
|
||||
}
|
||||
}
|
||||
message.headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
message._headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
config = MagicMock()
|
||||
config = {
|
||||
"koji_url": "https://example.koji.org",
|
||||
|
@ -189,7 +189,7 @@ class TestProcessBlockRetired:
|
|||
"date": "2024-09-16T12:12:46+01:00",
|
||||
}
|
||||
}
|
||||
message.headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
message._headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
config = MagicMock()
|
||||
config = {
|
||||
"koji_url": "https://example.koji.org",
|
||||
|
@ -220,7 +220,7 @@ class TestProcessBlockRetired:
|
|||
"date": "2024-09-16T12:12:46+01:00",
|
||||
}
|
||||
}
|
||||
message.headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
message._headers = {"sent-at": "2024-09-16T12:12:46+01:00"}
|
||||
config = MagicMock()
|
||||
config = {
|
||||
"koji_url": "https://example.koji.org",
|
||||
|
@ -251,7 +251,7 @@ class TestProcessBlockRetired:
|
|||
"date": "2024-09-16T12:12:46+01:00",
|
||||
},
|
||||
}
|
||||
message.headers = {"sent-at": "2024-09-18T12:12:46+01:00"}
|
||||
message._headers = {"sent-at": "2024-09-18T12:12:46+01:00"}
|
||||
config = MagicMock()
|
||||
config = {
|
||||
"koji_url": "https://example.koji.org",
|
||||
|
|
|
@ -71,7 +71,7 @@ class KojiBlockRetired(ToddlerBase):
|
|||
This step will check if commit has dead.package file added and block package on Koji.
|
||||
"""
|
||||
msg = message.body
|
||||
header = message.headers
|
||||
header = message._headers
|
||||
|
||||
koji_url = f"{config['koji_url']}/kojihub"
|
||||
principal = config["principal"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue