You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the following environment variables to provide credentials for the test suite.
66
87
@@ -80,25 +101,27 @@ Set the following environment variables to provide credentials for the test suit
80
101
81
102
*`NODE_ORACLEDB_PROXY_SESSION_USER` provides the username of a schema user that can connect through the schema user which you used for testing using proxy authentication. Setting this environment variable will enable the tests that require proxy authentication.
82
103
83
-
Note: the test suite requires a schema with privileges CREATE TABLE, CREATE SESSION,
*`NODE_ORACLEDB_QA`. This boolean environment variable serves as the toggle switch of certain tests. Some tests, such as `callTimeout.js`, use hard-coded variables as assertion condition. The test results may be inconsistent in different network situations.
85
105
86
-
### 1.5 Set NODE_PATH
106
+
Note: the test suite requires the schema to have these privileges: CREATE TABLE, CREATE SESSION,
107
+
CREATE PROCEDURE, CREATE SEQUENCE, CREATE TRIGGER, and CREATE TYPE.
This test aims to test the combined usage of external authentication and proxy authentication. To run this test, you need to complete the following prerequisite setups.
116
139
117
140
* Enable external authentication on the schema user which you used for testing. See [Documentation for External Authentication](https://oracle.github.io/node-oracledb/doc/api.html#extauth) for more information on external authentication. Then use the following command to enable external authentication in the test suite.
@@ -128,8 +151,7 @@ This test aims to test the combined usage of external authentication and proxy a
128
151
129
152
```
130
153
131
-
132
-
## 4. Add Tests
154
+
## <a name="addtests"></a> 4. Contribute New Tests
133
155
134
156
See [CONTRIBUTING](https://github.com/oracle/node-oracledb/blob/master/CONTRIBUTING.md)
135
157
for general information on contribution requirements.
@@ -141,14 +163,14 @@ shows the numbering of tests.
141
163
In order to include your tests in the suite, add each new test file
142
164
name to [`test/opts/mocha.opts`](https://github.com/oracle/node-oracledb/blob/master/test/opts/mocha.opts).
143
165
144
-
## 5. Troubleshooting
166
+
## <a name="troubleshoot"></a> 5. Troubleshoot
145
167
146
168
You may encounter some troubles when running the test suite. These troubles
147
169
might be caused by the concurrency issue of Mocha framework, network latencies,
148
170
or database server issues. This section gives some issues that we ever saw
149
171
and our solutions.
150
172
151
-
### 5.1 ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
173
+
### <a name="ORA-00054"></a> 5.1 ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
152
174
153
175
This error occurs when Node.js programs try to change database objects which
154
176
hold locks. The workaround would be:
@@ -158,7 +180,7 @@ test files.
158
180
(2) Try not to use 'beforeEach' blocks for object operations to avoid
159
181
the interference between cases.
160
182
161
-
### 5.2 ORA-00018: maximum number of sessions exceeded
183
+
### <a name="ORA-00018"></a> 5.2 ORA-00018: maximum number of sessions exceeded
162
184
163
185
This error occurs when the test suite takes up more sessions than the
164
186
configured limit. You can alter the session limit on the database server side.
### <aname="ORA-03114"></a> 5.4 ORA-03114: not connected to ORACLE
226
+
227
+
We firstly encoutered this error with `test/callTimeout.js`. It uses some hard-coded variables as assertion condition, which may lead to assertion fail in slow network situation.
228
+
229
+
The solution is commenting out this line `sqlnet.recv_timeout=<minutes>` from `sqlnet.ora` file.
0 commit comments