Class: CarinForBlueButtonTestKit::TokenEndpoint

Inherits:
Inferno::DSL::SuiteEndpoint
  • Object
show all
Includes:
MockServer
Defined in:
lib/carin_for_blue_button_test_kit/client/v2.0.0/endpoints/token_endpoint.rb

Instance Method Summary collapse

Methods included from MockServer

#carin_resource_id_response, #carin_resource_response, #error_response_resource, #extract_bearer_token, #extract_client_id, #extract_token_from_query_params, #find_matching_entry, #get_metadata, #get_params, #match_request_to_expectation, #mock_operation_outcome_resource, #new_link, #read_next_page, #relative_reference?, #remove_transfer_encoding_and_content_length_header, #replace_bundle_urls, #resource_endpoint, #resource_id_endpoint, #server_proxy, #token_response

Methods included from URLs

#base_fhir_url, #base_url, #metadata_url, #patient_url, #resource_id_url, #resume_claims_data_url, #resume_fail_url, #resume_pass_url, #submit_url, #suite_id, #token_url

Instance Method Details

#make_responseObject



12
13
14
# File 'lib/carin_for_blue_button_test_kit/client/v2.0.0/endpoints/token_endpoint.rb', line 12

def make_response
  token_response(request)
end

#tagsObject



16
17
18
# File 'lib/carin_for_blue_button_test_kit/client/v2.0.0/endpoints/token_endpoint.rb', line 16

def tags
  [AUTH_TAG]
end

#test_run_identifierObject



8
9
10
# File 'lib/carin_for_blue_button_test_kit/client/v2.0.0/endpoints/token_endpoint.rb', line 8

def test_run_identifier
  extract_client_id(request)
end

#update_resultObject



20
21
22
# File 'lib/carin_for_blue_button_test_kit/client/v2.0.0/endpoints/token_endpoint.rb', line 20

def update_result
  results_repo.update(result.id, result: 'pass') unless test.config.options[:accepts_multiple_requests]
end