Skip to content

Commit

Permalink
Merge pull request #1686 from dmitry-sinina/new_registrar_jrpc
Browse files Browse the repository at this point in the history
change jrpc command to fetch AoRs
  • Loading branch information
dmitry-sinina authored Feb 1, 2025
2 parents 4651e2a + 5364221 commit e0b312e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/lib/node_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def call_disconnect(id)

def aors(auth_id = nil)
params = Array.wrap(auth_id)
perform_request('yeti.show.aors', params)
perform_request('registrar.show.aors', params)
end

def calls(*params)
Expand Down
2 changes: 1 addition & 1 deletion app/models/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def drop_call(id)
api.call_disconnect(id)
end

# jsonrpc call 'yeti.show.aors'
# jsonrpc call 'registrar.show.aors'
# @param auth_id [Integer] - filter by gateway.id (nil to show all data)
def incoming_registrations(auth_id: nil, empty_on_error: false)
params = auth_id.nil? ? [] : [auth_id]
Expand Down
2 changes: 1 addition & 1 deletion spec/features/equipment/gateways/show_gateway_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
context 'when node is active' do
before do
registration_data = FactoryBot.attributes_for(:incoming_registration, :filled).stringify_keys
stub_jrpc_request(node.rpc_endpoint, 'yeti.show.aors', [gateway.id]).and_return([registration_data])
stub_jrpc_request(node.rpc_endpoint, 'registrar.show.aors', [gateway.id]).and_return([registration_data])
end

it 'shows gateway details page' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let!(:node) { FactoryBot.create(:node) }
let(:record_attributes) { FactoryBot.attributes_for(:incoming_registration, :filled) }
before do
stub_jrpc_request(node.rpc_endpoint, 'yeti.show.aors', [])
stub_jrpc_request(node.rpc_endpoint, 'registrar.show.aors', [])
.and_return([record_attributes.stringify_keys])
visit incoming_registrations_path
end
Expand Down

0 comments on commit e0b312e

Please sign in to comment.