forked from ibmdb/python-ibmdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_091_ConnmsgWrongUser.py
More file actions
38 lines (33 loc) · 1.28 KB
/
Copy pathtest_091_ConnmsgWrongUser.py
File metadata and controls
38 lines (33 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Licensed Materials - Property of IBM
#
# (c) Copyright IBM Corp. 2007-2008
#
from __future__ import print_function
import sys
import unittest
import ibm_db
import config
from testfunctions import IbmDbTestFunctions
class IbmDbTestCase(unittest.TestCase):
def test_091_ConnmsgWrongUser(self):
obj = IbmDbTestFunctions()
obj.assert_expectf(self.run_test_091)
def run_test_091(self):
try:
conn = ibm_db.connect(config.database, "y", config.password)
print("??? No way.")
except:
err = ibm_db.conn_errormsg()
print(err)
#__END__
#__LUW_EXPECTED__
#[IBM][CLI Driver] SQL30082N Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001%sSQLCODE=-30082
#__ZOS_EXPECTED__
#[IBM][CLI Driver] SQL30082N Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001%sSQLCODE=-30082
#__SYSTEMI_EXPECTED__
#[IBM][CLI Driver] SQL30082N Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001%sSQLCODE=-30082
#__IDS_EXPECTED__
#[IBM][CLI Driver] SQL30082N Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001%sSQLCODE=-30082
#__ZOS_ODBC_EXPECTED__
#??? No way.