Skip to content

ENT-13533: Fixed findlocalusers_unsafe test#5979

Merged
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:findlocalusers_unsafe
Dec 19, 2025
Merged

ENT-13533: Fixed findlocalusers_unsafe test#5979
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:findlocalusers_unsafe

Conversation

@victormlg

@victormlg victormlg commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Fixed the unsafe test for findlocalusers unsafe. Replaced the users in the test with custom ones, to make it depend less on the individual quirks of the OS. Changed the username of the custom users, because on AIX and HP-UX, it is limited by 8 characters.

@victormlg victormlg requested a review from larsewi December 4, 2025 14:36
@larsewi

larsewi commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

@cf-bottom Jenkins with exotics please :)

@cf-bottom

Copy link
Copy Markdown

@victormlg victormlg force-pushed the findlocalusers_unsafe branch 2 times, most recently from b1c51c1 to 0f5c54a Compare December 5, 2025 10:34

@craigcomstock craigcomstock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we needed to change the user names for some reason? I think this commit deserves some explanation of what was going wrong and how it was fixed.

@larsewi larsewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, would be nice with some explanation in the commit message as @craigcomstock points out

@victormlg victormlg force-pushed the findlocalusers_unsafe branch from 0f5c54a to cc65046 Compare December 8, 2025 08:25
@victormlg victormlg requested a review from larsewi December 8, 2025 11:07
@larsewi

larsewi commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

Only acceptance tests (with exotics):
Build Status

@larsewi larsewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On AIX:

FAIL (UNEXPECTED FAILURE) ./01_vars/02_functions/unsafe/findlocalusers_unsafe.cf
 ---snip---
R: FILES DIFFER BUT SHOULD BE THE SAME
R: CONTENTS OF /home/jenkins/workspace/testing-pr/label/PACKAGES_ppc64_aix_71/cfengine-3.27.0a.7d3cbe96a/tests/acceptance/workdir/__01_vars_02_functions_unsafe_findlocalusers_unsafe_cf/tmp/TESTDIR.cfengine/actual:
{
  "ulist1": [
    "testu1"
  ],
  "ulist2": [
    "testu1"
  ],
  "ulist3": [],
  "ulist4": [],
  "ulist5": [
    "testu1",
    "testu2"
  ],
  "ulist6": [
    "testu1"
  ],
  "ulist7": [
    "testu1"
  ],
  "ulist8": {
  }
}

R: CONTENTS OF /home/jenkins/workspace/testing-pr/label/PACKAGES_ppc64_aix_71/cfengine-3.27.0a.7d3cbe96a/tests/acceptance/./01_vars/02_functions/unsafe/findlocalusers_unsafe.cf.expected.json:
{
  "ulist1": [
    "testu1"
  ],
  "ulist2": [
    "testu1"
  ],
  "ulist3": [
    "testu1"
  ],
  "ulist4": [
    "testu1"
  ],
  "ulist5": [
    "testu1",
    "testu2"
  ],
  "ulist6": [
    "testu1"
  ],
  "ulist7": [
    "testu1"
  ],
  "ulist8": {
  }
}

Changelog: Fixed the unsafe test for findlocalusers unsafe. Replaced the users in the test with custom ones, to make it depend less on the individual quirks of the OS. Changed the username of the custom users, because on AIX and HP-UX, it is limited by 8 characters.
Ticket: ENT-13533
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg victormlg force-pushed the findlocalusers_unsafe branch from cc65046 to e242e90 Compare December 12, 2025 08:33
@larsewi

larsewi commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

Only acceptance tests (with exotics):
Build Status

@victormlg victormlg requested a review from larsewi December 19, 2025 10:02
@victormlg

Copy link
Copy Markdown
Contributor Author

It looks like the failure are not related to the PR

@larsewi larsewi merged commit 92d3a90 into cfengine:master Dec 19, 2025
47 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants