This test expects the wrong output

Need to expect key[123] messages.

Also, for future reference: switch_user and password must be set in
the connection include, and be different from your regular user. In
cases where you use the implicit same user, this test didn't know
what to do, so I made it just skip that case.
This commit is contained in:
Calvin Buckley
2020-05-11 18:16:37 +00:00
parent adbae0ac80
commit ee992f6316

View File

@@ -31,7 +31,11 @@ $key3 = xmlservice_diag_jobinfo($xml);
echo "key3 $key3\n";
db2_close($conn2);
if (strpos($key1,$user) === false) {
/*
* On PASE, we can use an empty user for implict same user, which
* messes up this test, so just skip it
*/
if ($user !== "" && strpos($key1,$user) === false) {
echo "failed key1 ($key1) missing ".$user."\n";
} else {
echo "success\n";
@@ -49,7 +53,9 @@ if (strpos($key3,$switch_user) === false) {
?>
--EXPECTF--
%s
key1 %s
key2 %s
key3 %s
success
success
success