Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix x3270_ssl launch error and needles mismatch #10060

Merged
merged 1 commit into from
Apr 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 17 additions & 13 deletions tests/x11/x3270_ssl.pm
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# SUSE's openQA tests
#
# Copyright © 2012-2017 SUSE LLC
# Copyright © 2012-2020 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.

#
# Testopia Case#1595207 - FIPS: x3270

# Summary: x3270 for SSL support testing, with openssl s_server running on local system
# Maintainer: Wnereiz <wnereiz@eienteiland.org>
#
# Maintainer: Ben Chou <bchou@suse.com>
# Tags: poo#65570, poo#65615

use base "x11test";
use strict;
Expand All @@ -32,10 +33,10 @@ sub run {
type_string
"openssl req -new -x509 -newkey rsa:2048 -keyout $key_file -days 3560 -out $cert_file -nodes -subj \"/C=CN/ST=BJ/L=BJ/O=SUSE/OU=QA/CN=suse/emailAddress=test\@suse.com\" 2>&1 | tee /dev/$serialdev\n";

wait_serial "writing new private", 120 || die "openssl req output doesn't match";
wait_serial "writing new private", 60 || die "openssl req output doesn't match";

#Workaround for avoiding missing charactors in following commands
for (1 ... 20) {
for (1 ... 3) {
send_key "ret";
}

Expand All @@ -51,11 +52,12 @@ sub run {

#Launch x3270
type_string "x3270 -trace -tracefile $tracelog_file L:localhost:8443\n";
assert_screen 'x3270_fips_launched';
assert_screen 'x3270_fips_launched_with_TLS_SSL';

for (1 ... 3) {
send_key "alt-f4";
}
# Exit and back to generic desktop
send_key "ctrl-c";
send_key "alt-tab";
send_key "ctrl-c";
assert_screen 'generic-desktop';

#Terminate openssl s_server
Expand All @@ -69,10 +71,12 @@ sub run {
#Clean
script_run "rm -f $tracelog_file $cert_file $key_file";

#Exit and return to x11
send_key "ctrl-d";
send_key "ctrl-d";
# Return to x11
select_console 'x11';
}

sub test_flags {
return {always_rollback => 1};
}

1;