Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4824

user and group acceptance tests fail on OSX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.2.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-08-19
    • Release Notes:
      Not Needed

      Description

      Several user and group acceptance tests fail on OSX because the test uses getent to setup the preconditions for the test. The tests should be updated to work on OSX

      Using beaker 2.15.0:

      $ be rake ci:test:aio SUITE_VERSION=1.1.1.250.gb9e1783 SHA=b9e178350dd52c75ab98ffd05e9bc739d7609155 CONFIG=config/nodes/osx-1010-x86_64.yaml TESTS=tests/ticket_9862_puppet_runs_without_service_user_or_group_present.rb,tests/resource/group,tests/resource/user
      ...
        Test Case tests/ticket_9862_puppet_runs_without_service_user_or_group_present.rb reported: #<Beaker::Host::CommandFailure: Host 'sxmv4xxp7it66t6.delivery.puppetlabs.net' exited with 1 running:
       find "/opt/puppetlabs/puppet/cache" -user existinguser
      Last 10 lines of output were:
      	find: -user: existinguser: no such user>
        Test Case tests/resource/group/should_modify_gid.rb reported: #<Beaker::Host::CommandFailure: Host 'sxmv4xxp7it66t6.delivery.puppetlabs.net' exited with 127 running:
       getent group pl391975
      Last 10 lines of output were:
      	sh: getent: command not found>
        Test Case tests/resource/user/should_create.rb reported: #<Minitest::Assertion: failed to get group pl588776>
        Test Case tests/resource/user/should_create_with_gid.rb reported: #<Beaker::Host::CommandFailure: Host 'sxmv4xxp7it66t6.delivery.puppetlabs.net' exited with 127 running:
       getent group gp775423 || groupadd gp775423
      Last 10 lines of output were:
      	sh: getent: command not found
      	sh: groupadd: command not found>
        Test Case tests/resource/user/should_modify_gid.rb reported: #<Beaker::Host::CommandFailure: Host 'sxmv4xxp7it66t6.delivery.puppetlabs.net' exited with 127 running:
       getent group pl51979old
      Last 10 lines of output were:
      	sh: getent: command not found>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support