7 Commits

Author SHA1 Message Date
Sean Chittenden 3f2f77d3fe Fix up regression test output
This had drifted.  In the previous commit I inserted the ping check at number 100.  Hindsight: should have added that as 140 and renamed it in a followup commit.
2015-12-22 21:43:23 -08:00
Sean Chittenden 48010ff507 Add consul_agent_ping()
Hits /v1/agent/self as an end point.  Doesn't perform any content verification beyond checking the estatus code atm, but will in the future.
2015-12-22 21:41:52 -08:00
Sean Chittenden c268e938ee Add PostgreSQL function consul_kv_get()
Add a set returning function that fetches a particular key.  It can be called like:

  SELECT * FROM consul_kv_get('foo-key');
  SELECT * FROM consul_kv_get(key := 'test/', recurse := TRUE);
2015-11-30 14:40:20 -08:00
Sean Chittenden 5fb7f4946b Add the ability to change the agent port
SET consul.agent_port=8500;
2015-11-14 21:55:57 -08:00
Sean Chittenden 9b3f83b618 Match consul's API convention more strongly
Rename consul_leader() and consul_peers() to consul_status_leader() and consul_status_peers(), respectively.
2015-11-14 21:54:26 -08:00
Sean Chittenden 73ba05e1ec Preload pg_consul when running regression tests. 2015-11-14 21:44:10 -08:00
Sean Chittenden 7e01d93451 Rename the imported GUCs from "pg_consul.*" to "consul.*"
Adjust accordingly and include the unit testing stubs.
2015-11-14 20:17:26 -08:00