notification: Add compose_path into the messages
It's needed by the notification script added in RHELCMP-401. Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
b973657197
commit
f5bfd509ab
@ -52,6 +52,7 @@ class PungiNotifier(object):
|
|||||||
data.setdefault("compose_type", self.compose.compose_type)
|
data.setdefault("compose_type", self.compose.compose_type)
|
||||||
data.setdefault("compose_respin", self.compose.compose_respin)
|
data.setdefault("compose_respin", self.compose.compose_respin)
|
||||||
data.setdefault("compose_label", self.compose.compose_label)
|
data.setdefault("compose_label", self.compose.compose_label)
|
||||||
|
data.setdefault("compose_path", self.compose.topdir)
|
||||||
data.setdefault("release_short", self.compose.conf["release_short"])
|
data.setdefault("release_short", self.compose.conf["release_short"])
|
||||||
data.setdefault("release_name", self.compose.conf["release_name"])
|
data.setdefault("release_name", self.compose.conf["release_name"])
|
||||||
data.setdefault("release_version", self.compose.conf["release_version"])
|
data.setdefault("release_version", self.compose.conf["release_version"])
|
||||||
|
@ -29,6 +29,7 @@ class TestNotifier(unittest.TestCase):
|
|||||||
compose_respin=1,
|
compose_respin=1,
|
||||||
compose_label="Updates-20171031.1021",
|
compose_label="Updates-20171031.1021",
|
||||||
compose_type="production",
|
compose_type="production",
|
||||||
|
topdir="/a/b",
|
||||||
log_warning=mock.Mock(),
|
log_warning=mock.Mock(),
|
||||||
conf={
|
conf={
|
||||||
"release_name": "Layer",
|
"release_name": "Layer",
|
||||||
@ -56,6 +57,7 @@ class TestNotifier(unittest.TestCase):
|
|||||||
data["compose_type"] = "production"
|
data["compose_type"] = "production"
|
||||||
data["compose_respin"] = 1
|
data["compose_respin"] = 1
|
||||||
data["compose_label"] = "Updates-20171031.1021"
|
data["compose_label"] = "Updates-20171031.1021"
|
||||||
|
data["compose_path"] = "/a/b"
|
||||||
data["release_short"] = "L"
|
data["release_short"] = "L"
|
||||||
data["release_name"] = "Layer"
|
data["release_name"] = "Layer"
|
||||||
data["release_version"] = "27"
|
data["release_version"] = "27"
|
||||||
|
Loading…
Reference in New Issue
Block a user