Skip to content

Commit

Permalink
Merge pull request #8180 from nodeg/hostname_rename
Browse files Browse the repository at this point in the history
QE: Fix openSSL parameters in hostname rename test
  • Loading branch information
raulillo82 authored Jan 18, 2024
2 parents 1e1c475 + 8875798 commit 2be6ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@

When(/^I check all certificates after renaming the server hostname$/) do
# get server certificate serial to compare it with the other minions
command_server = "openssl x509 --noout --text -in /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT | grep -A1 'Serial' | grep -v 'Serial'"
command_server = "openssl x509 -noout -text -in /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT | grep -A1 'Serial' | grep -v 'Serial'"
server_cert_serial, result_code = get_target('server').run(command_server)
server_cert_serial.strip!
log "Server certificate serial: #{server_cert_serial}"
Expand All @@ -1610,7 +1610,7 @@
end
get_target(target).run("test -s #{certificate}", successcodes: [0], check_errors: true)

command_minion = "openssl x509 --noout --text -in #{certificate} | grep -A1 'Serial' | grep -v 'Serial'"
command_minion = "openssl x509 -noout -text -in #{certificate} | grep -A1 'Serial' | grep -v 'Serial'"
minion_cert_serial, result_code = get_target(target).run(command_minion)

raise ScriptError, "#{target}: Error getting server certificate serial!" unless result_code.zero?
Expand Down

0 comments on commit 2be6ec6

Please sign in to comment.