Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Document that creds are for tests only #1161

Merged
merged 1 commit into from
Nov 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/database/database_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ func NewTestDatabaseWithCacher(tb testing.TB, cacher cache.Cacher) (*Database, *
// Determine the container image to use.
repo, tag := postgresRepo(tb)

// Start the container.
// These credentials (and this entire file) are only used for tests. They are
// used when spinning up an in-memory database for tests.
dbname, username, password := "en-verification-server", "my-username", "abcd1234"

// Start the container.
container, err := pool.RunWithOptions(&dockertest.RunOptions{
Repository: repo,
Tag: tag,
Expand Down