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
Setting the following environment variables will override the default values defined in test/dbconfig.js.
82
+
83
+
*`NODE_ORACLEDB_USER` overrides the username of the schema user which you used for testing.
84
+
85
+
*`NODE_ORACLEDB_PASSWORD` overrides the password of the schema user which you used for testing.
86
+
87
+
*`NODE_ORACLEDB_CONNECTIONSTRING` overrides the connection string that points to your database's location.
88
+
89
+
*`NODE_ORACLEDB_EXTERNALAUTH` overrides the options for external authentication tests. Setting this environment variable to "true" will enable the tests that require external authentication.
90
+
91
+
*`NODE_ORACLEDB_DBA_PRIVILEGE` overrides the options for DBA privilege. Setting this environment variable to "true" will enable the tests and utilities that require DBA privilege.
92
+
93
+
*`NODE_ORACLEDB_DBA_USER` overrides the username of the DBA user which you used for testing, disabled if `NODE_ORACLEDB_DBA_PRIVILEGE` is not `true`.
94
+
95
+
*`NODE_ORACLEDB_DBA_PASSWORD` overrides the password of the DBA user which you used for testing, disabled if `NODE_ORACLEDB_DBA_PRIVILEGE` is not `true`.
96
+
97
+
*`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.
98
+
99
+
79
100
## 2. Run tests
80
101
81
102
### 2.1 Run the complete test suite
@@ -94,7 +115,29 @@ cd node_oracledb
94
115
95
116
See [mochajs.org](http://mochajs.org/) for more information on running tests with mocha.
96
117
97
-
## 3. Add Tests
118
+
## 3. Enable test(s) that requires extra configuration
119
+
120
+
The following test(s) are automatically skipped if their required environment variable(s) are not properly set.
121
+
122
+
### 3.1 externalProxyAuth.js
123
+
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.
124
+
125
+
* 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.
126
+
127
+
```
128
+
export NODE_ORACLEDB_EXTERNALAUTH true
129
+
130
+
```
131
+
132
+
* Enable proxy authentication on another schema user specified by environment variable `NODE_ORACLEDB_PROXY_SESSION_USER` that connects through the schema user which you used for testing. See [Documentation for Pool Proxy Authentication](https://oracle.github.io/node-oracledb/doc/api.html#pool-proxy-authentication) for more information on proxy authentication. Then use the following command to enable proxy authentication in the test suite.
0 commit comments