forked from edwingeng/wuid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Postgres testing complete""
This reverts commit 525ad43.
- Loading branch information
Showing
12 changed files
with
241 additions
and
22 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,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDBzCCAe+gAwIBAgIRAJRPMz8rSwMm70KuJaqPRJQwDQYJKoZIhvcNAQELBQAw | ||
KzESMBAGA1UEChMJQ29ja3JvYWNoMRUwEwYDVQQDEwxDb2Nrcm9hY2ggQ0EwHhcN | ||
MTgwNjA3MTY1ODM4WhcNMjgwNjE1MTY1ODM4WjArMRIwEAYDVQQKEwlDb2Nrcm9h | ||
Y2gxFTATBgNVBAMTDENvY2tyb2FjaCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP | ||
ADCCAQoCggEBAPQIOO7JgqlS3wfkbBVwHl4WXrqlFXYpIYROHTvHECbKleykU3Ot | ||
z08cscujqZ3fucBVwwnMT4xzXtNCUSyvnMqcT3mrqYVmS8/49nQ8PJa6WZkLXYiG | ||
I4T7BNCE97FcsJl24qopnv0+t9GuUylvO89SFklcsrot7aoCoZ8VO2kWJvWxweIX | ||
IBog9SShIpwsVH9nNt7mpbsEcBXbxF8nKY2iDj7RgcI08MSPdkxRP7aNmtfJ3vH0 | ||
IDmzc02Z3EwqzGLB8EJenjGW7lwndqfKHZqROyxKkyBRtJ4f+VLWnTygFBhHpWlU | ||
wyuyrQ/SFxy5OE1geu0QiHqAppDsJnveZ/sCAwEAAaMmMCQwDgYDVR0PAQH/BAQD | ||
AgLkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDQYJKoZIhvcNAQELBQADggEBAIrjjyUq | ||
3QQROb43JMlZqFy9NAmhygJAdcu0o82ktAmeQmwsW3MG6AA/bPx8t53lcd1ncvrz | ||
RFQGno0Q0nx0bXHaI4PGg3gjY/PreDi8EWs5j9D9IZk21k8nvH+k0j6aKEvyAWjq | ||
Tm65swjYz6SCn/FfwExJokFZ2jDAvYXeJR57+H7cpBdm5Aw1QpwlhdtOJgGERzuO | ||
H+o15K4Io9dUWrqS8HIGxJ+KaROGcOuM9DlWOOWNNtI35pPMVZFMNPCilPMCKJDC | ||
0xyk7bP03FEe+hlziqe3dQvnFFw19IzAeOyzm3nA3/cowtROTCF8MC/i5XZ4YC6A | ||
sBOq+fCJQ3ArgKg= | ||
-----END CERTIFICATE----- |
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,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEA9Ag47smCqVLfB+RsFXAeXhZeuqUVdikhhE4dO8cQJsqV7KRT | ||
c63PTxyxy6Opnd+5wFXDCcxPjHNe00JRLK+cypxPeauphWZLz/j2dDw8lrpZmQtd | ||
iIYjhPsE0IT3sVywmXbiqime/T630a5TKW87z1IWSVyyui3tqgKhnxU7aRYm9bHB | ||
4hcgGiD1JKEinCxUf2c23ualuwRwFdvEXycpjaIOPtGBwjTwxI92TFE/to2a18ne | ||
8fQgObNzTZncTCrMYsHwQl6eMZbuXCd2p8odmpE7LEqTIFG0nh/5UtadPKAUGEel | ||
aVTDK7KtD9IXHLk4TWB67RCIeoCmkOwme95n+wIDAQABAoIBAAKi5BqQSr0RjB9F | ||
tHU21N0nWLajeevg3d/UCDTRHbeNkLkRvWUOh6LPKIyOpBJ0jEkrpAPDFUjrJica | ||
HE5jR0pZDfK+jAJI7KC+i8sNq4nlUXp5yPTknhWdsJugFBzyZ2YBBsnX0UPjHZFC | ||
VNupu/etZ1g7jCK+xEaF6MET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AJEddsT+CBg1d/7GsrZoOFmtP+I3SIdxpQ7Ylkah6M= | ||
-----END RSA PRIVATE KEY----- |
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,4 @@ | ||
# ./certs | ||
|
||
These certificates are for testing purposes only. These are not | ||
secrets as they are not to be used in production. |
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,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDADCCAeigAwIBAgIRAIeKSPmjm52+5nhgETTc1FQwDQYJKoZIhvcNAQELBQAw | ||
KzESMBAGA1UEChMJQ29ja3JvYWNoMRUwEwYDVQQDEwxDb2Nrcm9hY2ggQ0EwHhcN | ||
MTgwNjA3MTY1ODQ1WhcNMjMwNjEyMTY1ODQ1WjAjMRIwEAYDVQQKEwlDb2Nrcm9h | ||
Y2gxDTALBgNVBAMTBHJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB | ||
AQCuz5/YGxE8YA5hc0if2Z5yrgEbUHwqoIO+vSx+j9ie9oDCzE7hf/+U1ezLlXWm | ||
Dz5xZt3ToS3hDOTRivYGigSMPZKNX4VQdTWCiwfFhPgZv7TzamwJOsdCVtcmmNkt | ||
yc4kySeG3cwHMReqgAf99EYmr9FgiKJ94gz2IuVfMDXLV2es98HTAYoFOTRBn4Mn | ||
iJad4XyDtmvhoRTb4ou+yI0YvjFHZP8WHVG06Q4FTImP2IJpZS4su9oO1pepAJXH | ||
RhY+afeAXScekPCovO1i+FJ/mpCtSSCblhGpn0hI8n67sWOhxPKcDBQRK4PO/vLe | ||
75TXhm+rhCuC1CsGyKWjNtGrAgMBAAGjJzAlMA4GA1UdDwEB/wQEAwIFoDATBgNV | ||
HSUEDDAKBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEA0uw+jj20wqJvqzML | ||
2QWU9IpYovDqR0WkOPiYkLKrWezwa0hHpIJoc9VPfUQ+p3/wffiUJUvjHF5urXF1 | ||
aAFKqeymMMSnxgnqtbYAsJUYdB2WGnOTIS1sMMr4xR5LoSDlQICwDpCKTZ/m5XIU | ||
3frJb0oY3Rlk5pjTb+f+HXCvaDF9i7m/DiKhu68ybt1bMCYB2LNw6u/O7Sq/JNvq | ||
4vamEp+/rT0R5/Xbns97jcrywJ1/zCl/iiYmR9LTtWI70yIGwz05gehFIxyYFX1h | ||
JlcCMlf0M9/JS5GIJntGq1uetAstTXUhSZIofO4JXdhOUvp1h3XPg9JlAJAhlM5u | ||
OkHwig== | ||
-----END CERTIFICATE----- |
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,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEowIBAAKCAQEArs+f2BsRPGAOYXNIn9mecq4BG1B8KqCDvr0sfo/YnvaAwsxO | ||
4X//lNXsy5V1pg8+cWbd06Et4Qzk0Yr2BooEjD2SjV+FUHU1gosHxYT4Gb+082ps | ||
CTrHQlbXJpjZLcnOJMknht3MBzEXqoAH/fRGJq/RYIiifeIM9iLlXzA1y1dnrPfB | ||
0wGKBTk0QZ+DJ4iWneF8g7Zr4aEU2+KLvsiNGL4xR2T/Fh1RtOkOBUyJj9iCaWUu | ||
LLvaDtaXqQCVx0YWPmn3gF0nHpDwqLztYvhSf5qQrUkgm5YRqZ9ISPJ+u7FjocTy | ||
nAwUESuDzv7y3u+U14Zvq4QrgtQrBsilozbRqwIDAQABAoIBAAYhLZ+sQ0x0qcxs | ||
+GzyeoXW6B8HEXOFMVls1LSTYqsgRZ+O/m0VyeZ0Idt5oCh0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B4ITFaOqap+OfZm2lY5MlzvbBdf8EvsONp | ||
zLTtUO89+1YP00/W3YOHG3wAIEwM+HOCrTS9jr2sIcWYlxDcWA0j9EKiIQIsYvoB | ||
UIgvm/iMGM5HjiENrDwSW7CdLJSYuARkzEUSjNCJaRzwQ5ci/xvB | ||
-----END RSA PRIVATE KEY----- |
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,20 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDMzCCAhugAwIBAgIQfSvwIKDbRW7QSuUDBqt5JDANBgkqhkiG9w0BAQsFADAr | ||
MRIwEAYDVQQKEwlDb2Nrcm9hY2gxFTATBgNVBAMTDENvY2tyb2FjaCBDQTAeFw0x | ||
ODA2MDcxNjU4NDlaFw0yMzA2MTIxNjU4NDlaMCMxEjAQBgNVBAoTCUNvY2tyb2Fj | ||
aDENMAsGA1UEAxMEbm9kZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB | ||
ALiNRk4NcyNDe15RycMuofNxWmLKz1DAkfYyup2y5mj1wgLXTUqk/hiQle5cAEbk | ||
nRCXkeMQc1pwh4uZfSH+ToBb7ES/PKTavNxHpoe6HHntAaDrMH8w7LSveycXmpDG | ||
b0+/FXZeq4UYnYUuMXj/rtcjRVN3p0W1tN0vdw8TNyToKYfEyOs58Yo9e3YEBzKD | ||
6CPWBFADAdjs8rtdB6mOEWQv+qyDMUWkI5ygMMxWGhKjfaiSVQSDYfoS7+S5Bkgv | ||
GsjtFksjV3TIqwFmFQepQE6hWy0MQUpx1dgX4RqsqGTEYSzohwYYlfoCWtqUeJya | ||
X7srWEtPaj+1kWqrl01Se6cCAwEAAaNbMFkwDgYDVR0PAQH/BAQDAgWgMB0GA1Ud | ||
JQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAoBgNVHREEITAfgglsb2NhbGhvc3SC | ||
EkRhcndpbnMtaU1hYy5sb2NhbDANBgkqhkiG9w0BAQsFAAOCAQEAuDg41ul/1S3S | ||
nOgwPxJIpzmCYp89PnDOm0U/W1SP4MuFDsQ+yfZbrpRUpwhYzB1IWoPWD6nXPiTd | ||
WMjzBP8uJ2LKsTcuFve0YCujq59O7FPGugxAxvMJe4StZXC0yIg6XAhk7iFXQKQU | ||
MqF1R1RqmKyjkQZo0bMP8kpiwEwrwePexcauuxKzc2es8WBxuNKJxGVn3K4BpsZS | ||
fdIFNOnWQ2TX8c0ck+dc22wFjRghTwX31Ujqoc2SeSvRdu6QqtBbhyHeUE/Y51S2 | ||
K4kuKGxQ0SCcfl+lRL4RuFJdxxXrKImrVI7+wnG5s6Qqws0gSLHy8S5OnN6PVstg | ||
J4buR2pBnw== | ||
-----END CERTIFICATE----- |
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,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEAuI1GTg1zI0N7XlHJwy6h83FaYsrPUMCR9jK6nbLmaPXCAtdN | ||
SqT+GJCV7lwARuSdEJeR4xBzWnCHi5l9If5OgFvsRL88pNq83Eemh7ocee0BoOsw | ||
fzDstK97JxeakMZvT78Vdl6rhRidhS4xeP+u1yNFU3enRbW03S93DxM3JOgph8TI | ||
6znxij17dgQHMoPoI9YEUAMB2Ozyu10HqY4RZC/6rIMxRaQjnKAwzFYaEqN9qJJV | ||
BINh+hLv5LkGSC8ayO0WSyNXdMirAWYVB6lATqFbLQxBSnHV2BfhGqyoZMRhLOiH | ||
BhiV+gJa2pR4nJpfuytYS09qP7WRaquXTVJ7pwIDAQABAoIBAQCAfbQOUeTxD2HM | ||
mIsuPsB5G1m/4M6YvYqibE1r0IwFVd4fVkG1D8zt03TgAOQcd703OSBUhD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yxJv8iT0mzW/P61gmo+PaA8HJy | ||
mekUd0ukI741OLn58Td/uVZNlUEMKcialBrjrvFEdxAJgNiOezdgdIr12eXfngG1 | ||
9xvKzDVaNdSO/y2qWZ2Ud0WDo23xzgRv8L8JiIYOpr0BK7PLPzbg/9k= | ||
-----END RSA PRIVATE KEY----- |
This file was deleted.
Oops, something went wrong.
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
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,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
## This will setup Docker Postgres:Alpine container, run test and tear down Docker container. | ||
## Make executable: $ chmod +x testdb.sh | ||
## Run: $ ./testdb.sh | ||
mkdir db | ||
|
||
docker run --name wuid-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d -v $(pwd)/db:/var/lib/postgresql/data postgres:alpine -c 'ssl=on' | ||
|
||
sleep 30s | ||
|
||
docker stop wuid-postgres | ||
|
||
sleep 1s | ||
|
||
cp certs/server.crt db/server.crt && cp certs/server.key db/server.key | ||
chmod 0600 db/server.crt && chmod 0600 db/server.key | ||
docker restart wuid-postgres | ||
|
||
sleep 3s | ||
|
||
go test -cover -bench=. | ||
|
||
docker kill wuid-postgres && docker rm wuid-postgres | ||
|
||
rm -rf db |
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
Oops, something went wrong.