@@ -6,8 +6,8 @@ const { native } = helper.args
66const assert = require ( 'assert' )
77
88/**
9- * This test only executes if the env variables SCRAM_TEST_PGUSER and
10- * SCRAM_TEST_PGPASSWORD are defined. You can override additional values
9+ * This test only executes if the env variables SCRAM_TEST_GAUSSUSER and
10+ * SCRAM_TEST_GAUSSPASSWORD are defined. You can override additional values
1111 * for the host, port and database with other SCRAM_TEST_ prefixed vars.
1212 * If the variables are not defined the test will be skipped.
1313 *
@@ -23,17 +23,17 @@ const assert = require('assert')
2323 *
2424 * Then run this file with after exporting:
2525 *
26- * SCRAM_TEST_PGUSER =scram_test
27- * SCRAM_TEST_PGPASSWORD =test4scram
26+ * SCRAM_TEST_GAUSSUSER =scram_test
27+ * SCRAM_TEST_GAUSSPASSWORD =test4scram
2828 */
2929
3030// Base config for SCRAM tests
3131const config = {
32- user : process . env . SCRAM_TEST_PGUSER ,
33- password : process . env . SCRAM_TEST_PGPASSWORD ,
34- host : process . env . SCRAM_TEST_PGHOST , // optional
35- port : process . env . SCRAM_TEST_PGPORT , // optional
36- database : process . env . SCRAM_TEST_PGDATABASE , // optional
32+ user : process . env . SCRAM_TEST_GAUSSUSER ,
33+ password : process . env . SCRAM_TEST_GAUSSPASSWORD ,
34+ host : process . env . SCRAM_TEST_GAUSSHOST , // optional
35+ port : process . env . SCRAM_TEST_GAUSSPORT , // optional
36+ database : process . env . SCRAM_TEST_GAUSSDATABASE , // optional
3737}
3838
3939if ( native ) {
@@ -92,7 +92,7 @@ suite.testAsync('sasl/scram fails when password is empty', async () => {
9292 const client = new gaussdb . Client ( {
9393 ...config ,
9494 // We use a password function here so the connection defaults do not
95- // override the empty string value with one from process.env.PGPASSWORD
95+ // override the empty string value with one from process.env.GAUSSPASSWORD
9696 password : ( ) => '' ,
9797 } )
9898 let usingSasl = false
0 commit comments