summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeha Pansare <neha.pansare@progress.com>2022-06-09 19:56:33 +0530
committerNeha Pansare <neha.pansare@progress.com>2022-06-09 19:56:33 +0530
commitb13436974028a858134cefc49cb83e2a3cd172be (patch)
treed5ce4c89703f6866de7e6e1bb50e81b179778c90
parentc6fb6c37f134086cff46a51bd576e1b60044559c (diff)
downloadchef-b13436974028a858134cefc49cb83e2a3cd172be.tar.gz
Fix AIX adhoc pipeline failures: Added details in the comment why the change fixes the issue
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
-rw-r--r--.expeditor/release.omnibus.yml77
-rw-r--r--lib/chef/provider/user.rb3
2 files changed, 79 insertions, 1 deletions
diff --git a/.expeditor/release.omnibus.yml b/.expeditor/release.omnibus.yml
index 71877ccd95..c21af7384a 100644
--- a/.expeditor/release.omnibus.yml
+++ b/.expeditor/release.omnibus.yml
@@ -15,4 +15,79 @@ builder-to-testers-map:
aix-7.1-powerpc:
- aix-7.1-powerpc
- aix-7.2-powerpc
- \ No newline at end of file
+ amazon-2022-aarch64:
+ - amazon-2022-aarch64
+ amazon-2022-x86_64:
+ - amazon-2022-x86_64
+ debian-9-x86_64:
+ - debian-9-x86_64
+ - debian-10-x86_64
+ - debian-11-x86_64
+ debian-10-aarch64:
+ - debian-10-aarch64
+ - debian-11-aarch64
+ el-6-x86_64:
+ - el-6-x86_64
+ el-7-aarch64:
+ - el-7-aarch64
+ - amazon-2-aarch64
+ el-7-ppc64:
+ - el-7-ppc64
+ el-7-ppc64le:
+ - el-7-ppc64le
+ el-7-s390x:
+ - el-7-s390x
+ - el-8-s390x
+ el-7-x86_64:
+ - el-7-x86_64
+ - amazon-2-x86_64
+ el-8-aarch64:
+ - el-8-aarch64
+ el-8-x86_64:
+ - el-8-x86_64
+ el-9-aarch64:
+ - el-9-aarch64
+ el-9-x86_64:
+ - el-9-x86_64
+ freebsd-12-amd64:
+ - freebsd-12-amd64
+ - freebsd-13-amd64
+ mac_os_x-10.15-x86_64:
+ - mac_os_x-10.15-x86_64
+ - mac_os_x-11-x86_64
+ - mac_os_x-12-x86_64
+ mac_os_x-11-arm64:
+ - mac_os_x-11-arm64
+ - mac_os_x-12-arm64
+ sles-12-s390x:
+ - sles-12-s390x
+ - sles-15-s390x
+ sles-12-x86_64:
+ - sles-12-x86_64
+ - sles-15-x86_64
+ sles-15-aarch64:
+ - sles-15-aarch64
+ solaris2-5.11-i386:
+ - solaris2-5.11-i386
+ solaris2-5.11-sparc:
+ - solaris2-5.11-sparc
+ ubuntu-18.04-aarch64:
+ - ubuntu-18.04-aarch64
+ - ubuntu-20.04-aarch64
+ - ubuntu-22.04-aarch64
+ ubuntu-16.04-x86_64:
+ - ubuntu-16.04-x86_64
+ - ubuntu-18.04-x86_64
+ - ubuntu-20.04-x86_64
+ - ubuntu-22.04-x86_64
+ windows-2012r2-i386:
+ - windows-2012r2-i386
+ windows-2012r2-x86_64:
+ - windows-2012-x86_64
+ - windows-2012r2-x86_64
+ - windows-2016-x86_64
+ - windows-2019-x86_64
+ - windows-2022-x86_64
+ - windows-8-x86_64
+ - windows-10-x86_64
+ - windows-11-x86_64
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb
index 0d23976d91..d6b0ab0635 100644
--- a/lib/chef/provider/user.rb
+++ b/lib/chef/provider/user.rb
@@ -66,6 +66,9 @@ class Chef
end
current_resource.comment(user_info.gecos)
+ #We need to keep this if condition to prevent 'ruby-shadow' LoadError failure in unit specs for this resource on AIX platforms.
+ #Ruby's Etc.getpwnam(username) module returns masked password "x" on Unix systems, so if we remove this if condition, on AIX it goes into rescue
+ #and raises LoadError resulting in test failures.
if new_resource.password && current_resource.password == "x"
begin
require "shadow"