Skip to content

Conversation

@sehrope
Copy link
Contributor

@sehrope sehrope commented May 9, 2020

First commit adds another test helper. Engines is node 8+ so async all the way!

Second commit adds a test for SCRAM auth. It's disabled by default. To run the test export SCRAM_TEST_PGUSER and SCRAM_TEST_PGPASSWORD env vars. The rest of the vars will inherit from the default PG% config.

Third commit enables the SCRAM test in it's own matrix build. Could probably clean this up later to piggy back on an existing combo but for now I didn't want to break anything. Also, to check if we're actually using SCRAM it adds listeners to the underlying connection so test only runs on pure-JS for now.

sehrope added 2 commits May 10, 2020 09:07
Adds tests for SCRAM if SCRAM_TEST_PGUSER and SCRAM_TEST_PGPASSWORD are defined. If not the tests are skipped (default).
@sehrope sehrope force-pushed the add-scram-tests branch from 716bc66 to c25e889 Compare May 10, 2020 13:18
@sehrope
Copy link
Contributor Author

sehrope commented May 10, 2020

Rebased and updated to remove the extra test helper commit as, per @charmander, it already exists in built-in asserts package.

Copy link
Collaborator

@charmander charmander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@brianc
Copy link
Owner

brianc commented May 12, 2020

this is wonderful, thank you!

@brianc brianc merged commit 1c441d2 into brianc:master May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants