Blame SOURCES/0002-Add-reboot_suggested-to-UpdateRecord-RhBug1772466.patch

71da59
From af9c8b4575749c3d03afe6c704060661622199bb Mon Sep 17 00:00:00 2001
71da59
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
71da59
Date: Tue, 3 Dec 2019 09:21:27 +0100
71da59
Subject: [PATCH 1/3] Add reboot_suggested field to UpdateRecord
71da59
 (RhBug:1772466)
71da59
71da59
https://bugzilla.redhat.com/show_bug.cgi?id=1772466
71da59
---
71da59
 src/python/updaterecord-py.c | 35 +++++++++++++++++++++++++++++++++++
71da59
 src/updateinfo.c             |  1 +
71da59
 src/updateinfo.h             |  1 +
71da59
 src/xml_dump_updateinfo.c    |  3 +++
71da59
 src/xml_parser_updateinfo.c  |  9 +++++++++
71da59
 5 files changed, 49 insertions(+)
71da59
71da59
diff --git a/src/python/updaterecord-py.c b/src/python/updaterecord-py.c
71da59
index 4f41019..b74bcb8 100644
71da59
--- a/src/python/updaterecord-py.c
71da59
+++ b/src/python/updaterecord-py.c
71da59
@@ -248,6 +248,16 @@ static ListConvertor list_convertors[] = {
71da59
 
71da59
 #define OFFSET(member) (void *) offsetof(cr_UpdateRecord, member)
71da59
 
71da59
+static PyObject *
71da59
+get_int(_UpdateRecordObject *self, void *member_offset)
71da59
+{
71da59
+    if (check_UpdateRecordStatus(self))
71da59
+        return NULL;
71da59
+    cr_UpdateRecord *rec = self->record;
71da59
+    gint64 val = *((int *) ((size_t) rec + (size_t) member_offset));
71da59
+    return PyLong_FromLongLong((long long) val);
71da59
+}
71da59
+
71da59
 static PyObject *
71da59
 get_str(_UpdateRecordObject *self, void *member_offset)
71da59
 {
71da59
@@ -311,6 +321,29 @@ get_list(_UpdateRecordObject *self, void *conv)
71da59
     return list;
71da59
 }
71da59
 
71da59
+static int
71da59
+set_int(_UpdateRecordObject *self, PyObject *value, void *member_offset)
71da59
+{
71da59
+    long val;
71da59
+    if (check_UpdateRecordStatus(self))
71da59
+        return -1;
71da59
+    if (PyLong_Check(value)) {
71da59
+        val = PyLong_AsLong(value);
71da59
+    } else if (PyFloat_Check(value)) {
71da59
+        val = (long long) PyFloat_AS_DOUBLE(value);
71da59
+#if PY_MAJOR_VERSION < 3
71da59
+    } else if (PyInt_Check(value)) {
71da59
+        val = PyInt_AS_LONG(value);
71da59
+#endif
71da59
+    } else {
71da59
+        PyErr_SetString(PyExc_TypeError, "Number expected!");
71da59
+        return -1;
71da59
+    }
71da59
+    cr_UpdateRecord *rec = self->record;
71da59
+    *((int *) ((size_t) rec + (size_t) member_offset)) = (int) val;
71da59
+    return 0;
71da59
+}
71da59
+
71da59
 static int
71da59
 set_str(_UpdateRecordObject *self, PyObject *value, void *member_offset)
71da59
 {
71da59
@@ -388,6 +421,8 @@ static PyGetSetDef updaterecord_getsetters[] = {
71da59
         "List of UpdateReferences", &(list_convertors[0])},
71da59
     {"collections",                 (getter)get_list, (setter)NULL,
71da59
         "List of UpdateCollections", &(list_convertors[1])},
71da59
+    {"reboot_suggested",            (getter)get_int, (setter)set_int,
71da59
+        "Suggested reboot",         OFFSET(reboot_suggested)},
71da59
     {NULL, NULL, NULL, NULL, NULL} /* sentinel */
71da59
 };
71da59
 
71da59
diff --git a/src/updateinfo.c b/src/updateinfo.c
71da59
index cdc4747..bef06f2 100644
71da59
--- a/src/updateinfo.c
71da59
+++ b/src/updateinfo.c
71da59
@@ -249,6 +249,7 @@ cr_updaterecord_copy(const cr_UpdateRecord *orig)
71da59
     rec->summary = cr_safe_string_chunk_insert(rec->chunk, orig->summary);
71da59
     rec->description = cr_safe_string_chunk_insert(rec->chunk, orig->description);
71da59
     rec->solution = cr_safe_string_chunk_insert(rec->chunk, orig->solution);
71da59
+    rec->reboot_suggested = orig->reboot_suggested;
71da59
 
71da59
     if (orig->references) {
71da59
         GSList *newlist = NULL;
71da59
diff --git a/src/updateinfo.h b/src/updateinfo.h
71da59
index 38883e0..2a69384 100644
71da59
--- a/src/updateinfo.h
71da59
+++ b/src/updateinfo.h
71da59
@@ -92,6 +92,7 @@ typedef struct {
71da59
     gchar *summary;     /*!< Short summary */
71da59
     gchar *description; /*!< Update description */
71da59
     gchar *solution;    /*!< Solution */
71da59
+    gboolean reboot_suggested; /*!< Reboot suggested */
71da59
 
71da59
     GSList *references; /*!< List of cr_UpdateReference */
71da59
     GSList *collections;/*!< List of cr_UpdateCollection */
71da59
diff --git a/src/xml_dump_updateinfo.c b/src/xml_dump_updateinfo.c
71da59
index fafe686..0beed96 100644
71da59
--- a/src/xml_dump_updateinfo.c
71da59
+++ b/src/xml_dump_updateinfo.c
71da59
@@ -165,6 +165,9 @@ cr_xml_dump_updateinforecord_internal(xmlNodePtr root, cr_UpdateRecord *rec)
71da59
     cr_xmlNewTextChild_c(update, NULL, BAD_CAST "description", BAD_CAST rec->description);
71da59
     cr_xmlNewTextChild_c(update, NULL, BAD_CAST "solution", BAD_CAST rec->solution);
71da59
 
71da59
+    if (rec->reboot_suggested)
71da59
+        xmlNewChild(update, NULL, BAD_CAST "reboot_suggested", NULL);
71da59
+
71da59
     // References
71da59
     cr_xml_dump_updateinforecord_references(update, rec->references);
71da59
 
71da59
diff --git a/src/xml_parser_updateinfo.c b/src/xml_parser_updateinfo.c
71da59
index 5a2715a..3e458ec 100644
71da59
--- a/src/xml_parser_updateinfo.c
71da59
+++ b/src/xml_parser_updateinfo.c
71da59
@@ -58,6 +58,7 @@ typedef enum {
71da59
     STATE_PACKAGE,
71da59
     STATE_FILENAME,
71da59
     STATE_SUM,
71da59
+    STATE_UPDATERECORD_REBOOTSUGGESTED,
71da59
     STATE_REBOOTSUGGESTED,
71da59
     STATE_RESTARTSUGGESTED, // Not implemented
71da59
     STATE_RELOGINSUGGESTED, // Not implemented
71da59
@@ -86,6 +87,7 @@ static cr_StatesSwitch stateswitches[] = {
71da59
     { STATE_UPDATE,     "message",           STATE_MESSAGE,           1 }, // NI
71da59
     { STATE_UPDATE,     "references",        STATE_REFERENCES,        0 },
71da59
     { STATE_UPDATE,     "pkglist",           STATE_PKGLIST,           0 },
71da59
+    { STATE_UPDATE,     "reboot_suggested",  STATE_UPDATERECORD_REBOOTSUGGESTED,0 },
71da59
     { STATE_REFERENCES, "reference",         STATE_REFERENCE,         0 },
71da59
     { STATE_PKGLIST,    "collection",        STATE_COLLECTION,        0 },
71da59
     { STATE_COLLECTION, "package",           STATE_PACKAGE,           0 },
71da59
@@ -360,6 +362,12 @@ cr_start_handler(void *pdata, const char *element, const char **attr)
71da59
             package->sum_type = cr_checksum_type(val);
71da59
         break;
71da59
 
71da59
+    case STATE_UPDATERECORD_REBOOTSUGGESTED:
71da59
+        assert(pd->updateinfo);
71da59
+        assert(pd->updaterecord);
71da59
+        rec->reboot_suggested = TRUE;
71da59
+        break;
71da59
+
71da59
     case STATE_REBOOTSUGGESTED:
71da59
         assert(pd->updateinfo);
71da59
         assert(pd->updaterecord);
71da59
@@ -406,6 +414,7 @@ cr_end_handler(void *pdata, G_GNUC_UNUSED const char *element)
71da59
     case STATE_MODULE:
71da59
     case STATE_PKGLIST:
71da59
     case STATE_REBOOTSUGGESTED:
71da59
+    case STATE_UPDATERECORD_REBOOTSUGGESTED:
71da59
         // All elements with no text data and without need of any
71da59
         // post processing should go here
71da59
         break;
71da59
-- 
71da59
2.24.1
71da59
71da59
71da59
From d4fb876b4475c7ede4b49219229638bf32e9574d Mon Sep 17 00:00:00 2001
71da59
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
71da59
Date: Tue, 3 Dec 2019 09:32:18 +0100
71da59
Subject: [PATCH 2/3] Extend unit tests with reboot_suggested for UpdateRecord
71da59
71da59
---
71da59
 tests/python/tests/test_updateinfo.py             | 6 ++++++
71da59
 tests/python/tests/test_updaterecord.py           | 5 +++++
71da59
 tests/test_xml_parser_updateinfo.c                | 8 ++++++++
71da59
 tests/testdata/updateinfo_files/updateinfo_01.xml | 1 +
71da59
 tests/testdata/updateinfo_files/updateinfo_03.xml | 2 ++
71da59
 5 files changed, 22 insertions(+)
71da59
71da59
diff --git a/tests/python/tests/test_updateinfo.py b/tests/python/tests/test_updateinfo.py
71da59
index 727b707..7feaae9 100644
71da59
--- a/tests/python/tests/test_updateinfo.py
71da59
+++ b/tests/python/tests/test_updateinfo.py
71da59
@@ -36,6 +36,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         rec.summary = "summary"
71da59
         rec.description = "description"
71da59
         rec.solution = "solution"
71da59
+        rec.reboot_suggested = True
71da59
 
71da59
         ui.append(rec)
71da59
 
71da59
@@ -57,6 +58,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         self.assertEqual(rec.summary, "summary")
71da59
         self.assertEqual(rec.description, "description")
71da59
         self.assertEqual(rec.solution, "solution")
71da59
+        self.assertEqual(rec.reboot_suggested, True)
71da59
         self.assertEqual(len(rec.references), 0)
71da59
         self.assertEqual(len(rec.collections), 0)
71da59
 
71da59
@@ -92,6 +94,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         rec.summary = "summary"
71da59
         rec.description = "description"
71da59
         rec.solution = "solution"
71da59
+        rec.reboot_suggested = True
71da59
 
71da59
         ui.append(rec)
71da59
         xml = ui.xml_dump()
71da59
@@ -111,6 +114,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
     <summary>summary</summary>
71da59
     <description>description</description>
71da59
     <solution>solution</solution>
71da59
+    <reboot_suggested/>
71da59
     <references/>
71da59
     <pkglist/>
71da59
   </update>
71da59
@@ -349,6 +353,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         rec.summary = "summary"
71da59
         rec.description = "description"
71da59
         rec.solution = "solution"
71da59
+        rec.reboot_suggested = True
71da59
         rec.append_collection(col)
71da59
         rec.append_reference(ref)
71da59
 
71da59
@@ -372,6 +377,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
     <summary>summary</summary>
71da59
     <description>description</description>
71da59
     <solution>solution</solution>
71da59
+    <reboot_suggested/>
71da59
     <references>
71da59
       <reference href="href" id="id" type="type" title="title"/>
71da59
     </references>
71da59
diff --git a/tests/python/tests/test_updaterecord.py b/tests/python/tests/test_updaterecord.py
71da59
index 6777f04..7a1a191 100644
71da59
--- a/tests/python/tests/test_updaterecord.py
71da59
+++ b/tests/python/tests/test_updaterecord.py
71da59
@@ -32,6 +32,7 @@ class TestCaseUpdateRecord(unittest.TestCase):
71da59
         self.assertEqual(rec.severity, None)
71da59
         self.assertEqual(rec.summary, None)
71da59
         self.assertEqual(rec.description, None)
71da59
+        self.assertEqual(rec.reboot_suggested, 0)
71da59
         self.assertEqual(rec.solution, None)
71da59
         self.assertEqual(rec.references, [])
71da59
         self.assertEqual(rec.collections, [])
71da59
@@ -60,6 +61,7 @@ class TestCaseUpdateRecord(unittest.TestCase):
71da59
         rec.severity = "severity"
71da59
         rec.summary = "summary"
71da59
         rec.description = "description"
71da59
+        rec.reboot_suggested = True
71da59
         rec.solution = "solution"
71da59
         rec.append_reference(ref)
71da59
         rec.append_collection(col)
71da59
@@ -77,6 +79,7 @@ class TestCaseUpdateRecord(unittest.TestCase):
71da59
         self.assertEqual(rec.pushcount, "pushcount")
71da59
         self.assertEqual(rec.severity, "severity")
71da59
         self.assertEqual(rec.summary, "summary")
71da59
+        self.assertEqual(rec.reboot_suggested, True)
71da59
         self.assertEqual(rec.description, "description")
71da59
         self.assertEqual(rec.solution, "solution")
71da59
         self.assertEqual(len(rec.references), 1)
71da59
@@ -115,6 +118,7 @@ class TestCaseUpdateRecord(unittest.TestCase):
71da59
         rec.summary = "summary"
71da59
         rec.description = "description"
71da59
         rec.solution = "solution"
71da59
+        rec.reboot_suggested = True
71da59
 
71da59
         xml = cr.xml_dump_updaterecord(rec)
71da59
         self.assertEqual(xml,
71da59
@@ -130,6 +134,7 @@ class TestCaseUpdateRecord(unittest.TestCase):
71da59
     <summary>summary</summary>
71da59
     <description>description</description>
71da59
     <solution>solution</solution>
71da59
+    <reboot_suggested/>
71da59
     <references/>
71da59
     <pkglist/>
71da59
   </update>
71da59
diff --git a/tests/test_xml_parser_updateinfo.c b/tests/test_xml_parser_updateinfo.c
71da59
index 976922e..07ef50e 100644
71da59
--- a/tests/test_xml_parser_updateinfo.c
71da59
+++ b/tests/test_xml_parser_updateinfo.c
71da59
@@ -76,6 +76,7 @@ test_cr_xml_parse_updateinfo_01(void)
71da59
     g_assert_cmpstr(update->summary, ==, "summary_1");
71da59
     g_assert_cmpstr(update->description, ==, "description_1");
71da59
     g_assert_cmpstr(update->solution, ==, "solution_1");
71da59
+    g_assert(update->reboot_suggested);
71da59
 
71da59
     g_assert_cmpint(g_slist_length(update->references), ==, 1);
71da59
     ref = update->references->data;
71da59
@@ -137,6 +138,7 @@ test_cr_xml_parse_updateinfo_02(void)
71da59
     g_assert(!update->pushcount);
71da59
     g_assert(!update->severity);
71da59
     g_assert(!update->summary);
71da59
+    g_assert(!update->reboot_suggested);
71da59
     g_assert(!update->description);
71da59
     g_assert(!update->solution);
71da59
 
71da59
@@ -186,6 +188,10 @@ test_cr_xml_parse_updateinfo_03(void)
71da59
     g_assert_cmpint(ret, ==, CRE_OK);
71da59
 
71da59
     g_assert_cmpint(g_slist_length(ui->updates), ==, 6);
71da59
+
71da59
+    update = g_slist_nth_data(ui->updates, 2);
71da59
+    g_assert(!update->reboot_suggested);
71da59
+
71da59
     update = g_slist_nth_data(ui->updates, 3);
71da59
 
71da59
     g_assert_cmpstr(update->from, ==, "errata@redhat.com");
71da59
@@ -195,6 +201,7 @@ test_cr_xml_parse_updateinfo_03(void)
71da59
     g_assert_cmpstr(update->id, ==, "RHEA-2012:0058");
71da59
     g_assert_cmpstr(update->title, ==, "Gorilla_Erratum");
71da59
     g_assert_cmpstr(update->description, ==, "Gorilla_Erratum");
71da59
+    g_assert(update->reboot_suggested);
71da59
 
71da59
     update = g_slist_nth_data(ui->updates, 4);
71da59
 
71da59
@@ -204,6 +211,7 @@ test_cr_xml_parse_updateinfo_03(void)
71da59
     g_assert_cmpstr(update->issued_date, ==, "2018-01-27 16:08:09");
71da59
     g_assert_cmpstr(update->updated_date, ==, "2018-07-20 06:00:01 UTC");
71da59
     g_assert_cmpstr(update->release, ==, "1");
71da59
+    g_assert(update->reboot_suggested);
71da59
 
71da59
     g_assert_cmpint(g_slist_length(update->references), ==, 0);
71da59
 
71da59
diff --git a/tests/testdata/updateinfo_files/updateinfo_01.xml b/tests/testdata/updateinfo_files/updateinfo_01.xml
71da59
index b757ef8..415140e 100644
71da59
--- a/tests/testdata/updateinfo_files/updateinfo_01.xml
71da59
+++ b/tests/testdata/updateinfo_files/updateinfo_01.xml
71da59
@@ -12,6 +12,7 @@
71da59
     <summary>summary_1</summary>
71da59
     <description>description_1</description>
71da59
     <solution>solution_1</solution>
71da59
+    <reboot_suggested>True</reboot_suggested>
71da59
     <references>
71da59
         <reference href="https://foobar/foobarupdate_1" id="1" type="self" title="update_1"/>
71da59
     </references>
71da59
diff --git a/tests/testdata/updateinfo_files/updateinfo_03.xml b/tests/testdata/updateinfo_files/updateinfo_03.xml
71da59
index ddbd99b..39dfbef 100644
71da59
--- a/tests/testdata/updateinfo_files/updateinfo_03.xml
71da59
+++ b/tests/testdata/updateinfo_files/updateinfo_03.xml
71da59
@@ -70,6 +70,7 @@
71da59
   <issued date="2013-01-27 16:08:09"/>
71da59
   <updated date="2014-07-20 06:00:01 UTC"/>
71da59
   <description>Gorilla_Erratum</description>
71da59
+  <reboot_suggested>True</reboot_suggested>
71da59
   <pkglist>
71da59
     <collection short="">
71da59
       <name>1</name>
71da59
@@ -87,6 +88,7 @@
71da59
   <issued date="2018-01-27 16:08:09"/>
71da59
   <updated date="2018-07-20 06:00:01 UTC"/>
71da59
   <description>Duck_Kangaro_Erratum description</description>
71da59
+  <reboot_suggested/>
71da59
   <pkglist>
71da59
     <collection short="">
71da59
       <name>coll_name1</name>
71da59
-- 
71da59
2.24.1
71da59
71da59
71da59
From c1ec192d14d751eed298ffff13fbbc76917d0b0e Mon Sep 17 00:00:00 2001
71da59
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
71da59
Date: Thu, 9 Jan 2020 08:52:22 +0100
71da59
Subject: [PATCH 3/3] Switch updateinfo to explicitly include bool values
71da59
 (RhBug:1772466)
71da59
71da59
Elements <restart_suggested> and both <reboot_suggested> were previously
71da59
outputed just as an empty element which meant they are true, this patch
71da59
changes it to explicitly output:
71da59
<reboot_suggested>True</reboot_suggested>.
71da59
71da59
However we still don't output False values, in that case the element is
71da59
simply omitted.
71da59
71da59
https://bugzilla.redhat.com/show_bug.cgi?id=1772466
71da59
---
71da59
 src/xml_dump_updateinfo.c               |  4 ++--
71da59
 tests/python/tests/test_updateinfo.py   | 10 +++++-----
71da59
 tests/python/tests/test_updaterecord.py |  2 +-
71da59
 3 files changed, 8 insertions(+), 8 deletions(-)
71da59
71da59
diff --git a/src/xml_dump_updateinfo.c b/src/xml_dump_updateinfo.c
71da59
index 0beed96..6974285 100644
71da59
--- a/src/xml_dump_updateinfo.c
71da59
+++ b/src/xml_dump_updateinfo.c
71da59
@@ -61,7 +61,7 @@ cr_xml_dump_updatecollectionpackages(xmlNodePtr collection, GSList *packages)
71da59
         }
71da59
 
71da59
         if (pkg->reboot_suggested)
71da59
-            xmlNewChild(package, NULL, BAD_CAST "reboot_suggested", NULL);
71da59
+            xmlNewChild(package, NULL, BAD_CAST "reboot_suggested", "True");
71da59
     }
71da59
 }
71da59
 
71da59
@@ -166,7 +166,7 @@ cr_xml_dump_updateinforecord_internal(xmlNodePtr root, cr_UpdateRecord *rec)
71da59
     cr_xmlNewTextChild_c(update, NULL, BAD_CAST "solution", BAD_CAST rec->solution);
71da59
 
71da59
     if (rec->reboot_suggested)
71da59
-        xmlNewChild(update, NULL, BAD_CAST "reboot_suggested", NULL);
71da59
+        xmlNewChild(update, NULL, BAD_CAST "reboot_suggested", "True");
71da59
 
71da59
     // References
71da59
     cr_xml_dump_updateinforecord_references(update, rec->references);
71da59
diff --git a/tests/python/tests/test_updateinfo.py b/tests/python/tests/test_updateinfo.py
71da59
index 7feaae9..f5becfe 100644
71da59
--- a/tests/python/tests/test_updateinfo.py
71da59
+++ b/tests/python/tests/test_updateinfo.py
71da59
@@ -114,7 +114,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
     <summary>summary</summary>
71da59
     <description>description</description>
71da59
     <solution>solution</solution>
71da59
-    <reboot_suggested/>
71da59
+    <reboot_suggested>True</reboot_suggested>
71da59
     <references/>
71da59
     <pkglist/>
71da59
   </update>
71da59
@@ -207,7 +207,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         <package name="foo" version="1.2" release="3" epoch="0" arch="x86" src="foo.src.rpm">
71da59
           <filename>foo.rpm</filename>
71da59
           <sum type="sha1">abcdef</sum>
71da59
-          <reboot_suggested/>
71da59
+          <reboot_suggested>True</reboot_suggested>
71da59
         </package>
71da59
       </collection>
71da59
     </pkglist>
71da59
@@ -293,7 +293,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         <package name="foo" version="1.2" release="3" epoch="0" arch="x86" src="foo.src.rpm">
71da59
           <filename>foo.rpm</filename>
71da59
           <sum type="sha1">abcdef</sum>
71da59
-          <reboot_suggested/>
71da59
+          <reboot_suggested>True</reboot_suggested>
71da59
         </package>
71da59
       </collection>
71da59
     </pkglist>
71da59
@@ -377,7 +377,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
     <summary>summary</summary>
71da59
     <description>description</description>
71da59
     <solution>solution</solution>
71da59
-    <reboot_suggested/>
71da59
+    <reboot_suggested>True</reboot_suggested>
71da59
     <references>
71da59
       <reference href="href" id="id" type="type" title="title"/>
71da59
     </references>
71da59
@@ -388,7 +388,7 @@ class TestCaseUpdateInfo(unittest.TestCase):
71da59
         <package name="foo" version="1.2" release="3" epoch="0" arch="x86" src="foo.src.rpm">
71da59
           <filename>foo.rpm</filename>
71da59
           <sum type="sha1">abcdef</sum>
71da59
-          <reboot_suggested/>
71da59
+          <reboot_suggested>True</reboot_suggested>
71da59
         </package>
71da59
       </collection>
71da59
     </pkglist>
71da59
diff --git a/tests/python/tests/test_updaterecord.py b/tests/python/tests/test_updaterecord.py
71da59
index 7a1a191..e8bc789 100644
71da59
--- a/tests/python/tests/test_updaterecord.py
71da59
+++ b/tests/python/tests/test_updaterecord.py
71da59
@@ -134,7 +134,7 @@ class TestCaseUpdateRecord(unittest.TestCase):
71da59
     <summary>summary</summary>
71da59
     <description>description</description>
71da59
     <solution>solution</solution>
71da59
-    <reboot_suggested/>
71da59
+    <reboot_suggested>True</reboot_suggested>
71da59
     <references/>
71da59
     <pkglist/>
71da59
   </update>
71da59
-- 
71da59
2.24.1
71da59