From 44791a1e192ea7ef20644a0a703123f2bd0db3a7 Mon Sep 17 00:00:00 2001 From: Ryan Melton Date: Wed, 26 Jun 2024 11:03:47 -0600 Subject: [PATCH] fix comments and dependency --- lib/cfdp_api.rb | 13 +++++++------ microservices/CFDP/Gemfile | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/cfdp_api.rb b/lib/cfdp_api.rb index 639da95..cb78a52 100644 --- a/lib/cfdp_api.rb +++ b/lib/cfdp_api.rb @@ -23,25 +23,26 @@ # # In ScriptRunner: # require 'cfdp_api' -# api = CfdpApi.new +# api = CfdpApi.new() # api.put(...) # # Outside cluster - Open Source: -# require 'cfdp_api' # $openc3_scope = 'DEFAULT' # ENV['OPENC3_API_PASSWORD'] = 'password' -# api = CfdpApi.new(hostname: '127.0.0.1', port: 2900) +# require 'cfdp_api' +# api = CfdpApi.new(url: "http://127.0.0.1:2900/cfdp") # api.put(...) # # Outside cluster - Enterprise -# require 'cfdp_api' # $openc3_scope = 'DEFAULT' -# ENV['OPENC3_KEYCLOAK_URL'] = '127.0.0.1:2900' +# ENV['OPENC3_KEYCLOAK_URL'] = 'http://127.0.0.1:2900/auth' # ENV['OPENC3_API_USER'] = 'operator' # ENV['OPENC3_API_PASSWORD'] = 'operator' -# api = CfdpApi.new(hostname: '127.0.0.1', port: 2900) +# require 'cfdp_api' +# api = CfdpApi.new(url: "http://127.0.0.1:2900/cfdp") # api.put(...) # + class CfdpApi < OpenC3::JsonApi def put( destination_entity_id:, diff --git a/microservices/CFDP/Gemfile b/microservices/CFDP/Gemfile index 32b8dc4..ed9f5a5 100644 --- a/microservices/CFDP/Gemfile +++ b/microservices/CFDP/Gemfile @@ -21,7 +21,7 @@ group :development, :test do end group :test do - gem 'mock_redis', '0.39' + gem 'mock_redis', '>0.39' end if ENV['OPENC3_DEVEL']