Skip to content

Commit df7f3cf

Browse files
committed
fix(test): authenticate native client as trust superuser in join OCC test
The cluster harness runs trust auth with nodedb as the sole materialized superuser, but PoolConfig defaults to user=admin, which trust mode rejects. Authenticate as nodedb to match the pgwire path.
1 parent ddf57c6 commit df7f3cf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

nodedb-cluster-tests/tests/native_gather_join_in_txn_occ.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ fn pinned_native_client(node: &TestClusterNode) -> NativeClient {
9292
NativeClient::new(PoolConfig {
9393
addr: format!("127.0.0.1:{}", node.native_port),
9494
max_size: 1,
95+
// The cluster harness runs trust auth with `nodedb` as the sole
96+
// materialized superuser; the `PoolConfig` default user is `admin`,
97+
// which trust mode rejects as a non-existent identity. Authenticate as
98+
// the harness superuser, matching the pgwire path (`user=nodedb`).
99+
auth: nodedb_types::protocol::AuthMethod::Trust {
100+
username: "nodedb".into(),
101+
},
95102
..Default::default()
96103
})
97104
}

0 commit comments

Comments
 (0)