mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 17:36:28 +00:00
* Some queries * Plugins!! * cleanup * actual names * the actual plugins * comment * fix tests * Tests * unused errors * Increase reaper rate to actually enforce settings * ok
15 lines
452 B
Ruby
15 lines
452 B
Ruby
require_relative 'spec_helper'
|
|
|
|
|
|
describe "Plugins" do
|
|
let(:processes) { Helpers::Pgcat.three_shard_setup("sharded_db", 5) }
|
|
|
|
context "intercept" do
|
|
it "will intercept an intellij query" do
|
|
conn = PG.connect(processes.pgcat.connection_string("sharded_db", "sharding_user"))
|
|
res = conn.exec("select current_database() as a, current_schemas(false) as b")
|
|
expect(res.values).to eq([["sharded_db", "{public}"]])
|
|
end
|
|
end
|
|
end
|