Skip to content

Commit ba50bf7

Browse files
fulghumchenrui333
authored andcommitted
doltgres 0.14.0
Changing doltgres regression test to specify default username/password The default username and password recently changed to better match PostgreSQL's default username. doltgres: enable debug logging Signed-off-by: Rui Chen <[email protected]>
1 parent d81c026 commit ba50bf7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Formula/d/doltgres.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Doltgres < Formula
22
desc "Dolt for Postgres"
33
homepage "https://github.com/dolthub/doltgresql"
4-
url "https://github.com/dolthub/doltgresql/archive/refs/tags/v0.13.0.tar.gz"
5-
sha256 "2c770da4dbe4900cc0a5c1e31e0c1097d360302dff730cf36314664c308896ca"
4+
url "https://github.com/dolthub/doltgresql/archive/refs/tags/v0.14.0.tar.gz"
5+
sha256 "919e51955c33ae9a6f68d3919d9a3b6462db78d9056ac6b499a0f76f9ce70fc1"
66
license "Apache-2.0"
77

88
# Upstream creates releases that use a stable tag (e.g., `v1.2.3`) but are
@@ -34,15 +34,13 @@ def install
3434
port = free_port
3535

3636
(testpath/"config.yaml").write <<~YAML
37+
log_level: debug
38+
3739
behavior:
3840
read_only: false
3941
disable_client_multi_statements: false
4042
dolt_transaction_commit: false
4143
42-
user:
43-
name: "doltgres"
44-
password: "password"
45-
4644
listener:
4745
host: localhost
4846
port: #{port}
@@ -56,7 +54,8 @@ def install
5654
sleep 5
5755

5856
psql = Formula["libpq"].opt_bin/"psql"
59-
output = shell_output("#{psql} -h 127.0.0.1 -p #{port} -U doltgres -c 'SELECT DATABASE()' 2>&1")
57+
connection_string = "postgresql://postgres:password@localhost:#{port}/doltgres"
58+
output = shell_output("#{psql} #{connection_string} -c 'SELECT DATABASE()' 2>&1")
6059
assert_match "database \n----------\n doltgres\n(1 row)", output
6160
end
6261
end

0 commit comments

Comments
 (0)