-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed actualLength and added initial integration_test.sh
- Loading branch information
AJ Bahnken
committed
Apr 6, 2017
1 parent
e18af61
commit 3d12448
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
echo 'Should be getting: "Auth Failed"' | ||
psql -U postgres -h 127.0.0.1 -p 5432 | ||
psql -h 127.0.0.1 -p 5432 -U postgres | ||
psql -h 127.0.0.1 -p 5432 -U postgres 'sslmode=disable' | ||
|
||
echo '------------------------------------------' | ||
echo 'Should be getting: "ERROR: No such user:"' | ||
for x in $(seq 1 50); do | ||
sleep .2 | ||
a=$(printf "%-${x}s" "a") | ||
user="${a// /a}" | ||
psql -U ${user} -h 127.0.0.1 -p 5432 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters