From 19a220c08643b0cb93fe8e746225d416f145f345 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Wed, 6 Jan 2021 08:44:57 -0800 Subject: [PATCH] (REPLATS-101) Add curl_pe_rbac_services helper - RBAC services container will be mapped to localhost when running docker-compose at port 4434, while keeping existing console services apis (activity service and classifier) at 4433. This is the easiest approach for not introducing a number of breaking changes to specs in multiple projects. This will be merged prior to landing the refactor to two containers in pe-console-services --- gem/lib/pupperware/spec_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gem/lib/pupperware/spec_helper.rb b/gem/lib/pupperware/spec_helper.rb index 5aa19b1c..22049c2c 100644 --- a/gem/lib/pupperware/spec_helper.rb +++ b/gem/lib/pupperware/spec_helper.rb @@ -622,7 +622,7 @@ def get_postgres_extensions(service: 'postgres') end ###################################################################### - # PE Console Services Helper + # PE RBAC / Console Services Helper ###################################################################### def unrevoke_console_admin_user(postgres_container_name = "postgres") @@ -631,6 +631,10 @@ def unrevoke_console_admin_user(postgres_container_name = "postgres") raise('failed to unrevoke the admin account') if ! output.eql? "UPDATE 1" end + def curl_pe_rbac_services(end_point) + curl('localhost', 4434, end_point).body + end + def curl_pe_console_services(end_point) curl('localhost', 4433, end_point).body end