From d282ec361ca0d73373da35636b76528a3fadad33 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Fri, 27 Sep 2024 10:04:17 -0700 Subject: [PATCH] (PA-7090) Correct system time on AIX We are encountering an issue with tests running on AIX due to incorrect system time. While we are waiting on a permanent fix in ITHELP-99479, this temporary workaround sets the timesync property on the Beaker host object to "true" if the host is AIX. --- acceptance/tests/ssl/certificate_extensions.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acceptance/tests/ssl/certificate_extensions.rb b/acceptance/tests/ssl/certificate_extensions.rb index 545a5b59eab..a82c9338ba7 100644 --- a/acceptance/tests/ssl/certificate_extensions.rb +++ b/acceptance/tests/ssl/certificate_extensions.rb @@ -1,5 +1,6 @@ require 'puppet/acceptance/temp_file_utils' extend Puppet::Acceptance::TempFileUtils +extend Beaker::HostPrebuiltSteps test_name "certificate extensions available as trusted data" do skip_test "Test requires at least one non-master agent" if hosts.length == 1 @@ -77,6 +78,8 @@ with_puppet_running_on(master, master_config) do agents.each do |agent| next if agent == master + # Temporarily sync time on AIX to account for incorrect system time (PA-7090) + timesync(agent, {:logger => logger}) if agent.platform.start_with?('aix') step "Create agent csr_attributes.yaml on #{agent}" agent_csr_attributes = get_test_file_path(agent, "csr_attributes.yaml")