<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11304</bug_id>
          
          <creation_ts>2017-04-06 19:09:29 +0000</creation_ts>
          <short_desc>Create automated testcases for system update</short_desc>
          <delta_ts>2017-07-03 07:18:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Test Plans/Suite</product>
          <component>test-plans/suite</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          <dependson>9660</dependson>
          <blocked>9783</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Libertad">libertad.gonzalez.de.la.cruz</reporter>
          <assigned_to name="Patrick Ohly">patrick.ohly</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>patrick.ohly</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72152</commentid>
    <comment_count>0</comment_count>
    <who name="Libertad">libertad.gonzalez.de.la.cruz</who>
    <bug_when>2017-04-06 19:09:29 +0000</bug_when>
    <thetext>Create an UpdateTest base class which is completely independent from swupd. To do the necessary swupd-specific operations, it should call empty stub functions. The common part in UpdateTest is preparing the OS content, including such special cases as updating the kernel, adding/removing/replacing files, changing file permissions, changing item types (file &lt;-&gt; symlink), changing item attributes (xattrs!). 

Then a SwupdUpdateTest class sub-classes UpdateTest and
provides the missing functionality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73072</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-05-05 07:18:06 +0000</bug_when>
    <thetext>Let&apos;s use this issue here to track the UpdateTest base class. The older bug #9783 can be used for the swupd-specific parts.

Note that we need to get the common part done for 2.4, because it blocks bug #11467.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73151</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-05-09 19:55:21 +0000</bug_when>
    <thetext>Libertad, let&apos;s discuss whether this issue really can be moved from 2.4 to Future. We need something for 2.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73238</commentid>
    <comment_count>3</comment_count>
    <who name="Libertad">libertad.gonzalez.de.la.cruz</who>
    <bug_when>2017-05-12 15:48:56 +0000</bug_when>
    <thetext>The reason I set this to the future is because of the uncertainty that swupd will be the official update feature supported by Yocto now and in the future. If what I think I know is not correct then I can work on this for 2.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73243</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-05-12 18:01:29 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; The reason I set this to the future is because of the uncertainty that swupd
&gt; will be the official update feature supported by Yocto now and in the
&gt; future. If what I think I know is not correct then I can work on this for
&gt; 2.4.

See comment #1. I&apos;d like to use this issue to track the base class for image update testing and bug #9783 for the swupd-specific part. Following that logic, this bug here is needed for 2.4 - the sooner, the better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74706</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-07-03 07:18:49 +0000</bug_when>
    <thetext>I needed a solution for OSTree, so I wrote one. See https://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-core/lib/oeqa/selftest/systemupdate/systemupdatebase.py

We do not need this in OE-core. If there is interest in moving it there, we can still do that later. Therefore I consider this issue resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>