<?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>9787</bug_id>
          
          <creation_ts>2016-06-16 15:01:43 +0000</creation_ts>
          <short_desc>create selftest for useradd-staticids</short_desc>
          <delta_ts>2017-12-07 14:37:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.2</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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Jose Perez C">jose.perez.carranza</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>stephano</cc>
          
          <qa_contact name="Juan Ramos">juan.fernandox.ramos.frayle</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63037</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-06-16 15:01:43 +0000</bug_when>
    <thetext>In #9777 we discovered that the useradd-staticids changes were broken in krogoth.

We need to develop automated testing for this to ensure we can better track when useradd changes break the staticids use-case.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=9777

Specifically we should add selftests to ensure that the users &amp; groups are created with the expected id&apos;s from a static map. Furthermore we should test that the expected outcome happens when a recipe tries to create a user or group which doesn&apos;t exist in the map.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68301</commentid>
    <comment_count>1</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2016-11-14 23:23:40 +0000</bug_when>
    <thetext>A good test case for breaking this selftest is Bug 9789. In that case, systemd-sysusers can circumvent the staticids feature, adding users and groups without checking to see if staticids have been set. This should throw some kind of warning, and would be a perfect way to test the failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78576</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-12-07 14:37:42 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5239691cc92679609cb464c55a7435d9cd9de349</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>