index int64 0 0 | repo_id stringclasses 829
values | file_path stringlengths 34 254 | content stringlengths 6 5.38M |
|---|---|---|---|
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/opts_out_of_vhie_sharing.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_MR_HOST>/v1/bluebutton/external/optinout/optout"
body:
encoding: UTF-8
string: "{}"
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<S... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/gets_a_list_of_extract_statuses.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_MR_HOST>/v1/bluebutton/ess/extractstatus"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESSION_... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/gets_a_text_version_of_a_report.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/v1/bluebutton/ess/bbreport/txt"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESSION_TOKE... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/get_dicom.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_MR_HOST>/mhvapi/v1/bluebutton/studyjob/zip/stream/11382904/studyidUrn/453-2487448"
body:
encoding: US-ASCII
string: ""
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/opts_in_to_vhie_sharing.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_HOST>/v1/bluebutton/external/optinout/optin"
body:
encoding: UTF-8
string: "{}"
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vet... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/gets_a_list_of_eligible_data_classes.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/v1/bluebutton/ess/geteligibledataclass"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESS... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/generates_a_report.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/v1/bluebutton/ess/geteligibledataclass"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESS... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/opts_in_to_vhie_sharing_while_opted_in.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_HOST>/v1/bluebutton/external/optinout/optin"
body:
encoding: UTF-8
string: "{}"
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESSI... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/session.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_MR_HOST>/v1/usermgmt/auth/session"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Apptoken:
- "<APP_... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/gets_a_pdf_version_of_a_report.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/v1/bluebutton/ess/bbreport/pdf"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESSION_TOKE... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/report_error_response.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/mhv-api/patient/v1/bluebutton/bbreport/txt"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/gets_vhie_sharing_status.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/v1/bluebutton/external/optinout/status"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESS... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/opts_out_of_vhie_sharing_while_opted_out.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_HOST>/v1/bluebutton/external/optinout/optout"
body:
encoding: UTF-8
string: "{}"
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<SESS... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/gets_a_text_report_for_apivore.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_HOST>/mhv-api/patient/v1/bluebutton/bbreport/txt"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
Token: "<... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client | code_files/vets-api-private/spec/support/vcr_cassettes/bb_client/with_sentry_enabled/gets_a_text_version_of_a_report.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_MR_HOST>/v1/bluebutton/ess/bbreport/txt"
body:
encoding: US-ASCII
string: ''
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- application/json
User-Agent:
- Vets.gov Agen... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/search_typeahead/success.yml | ---
http_interactions:
- request:
method: get
uri: https://api.gsa.gov/technology/searchgov/v1/suggestions?api_key=TEST_KEY&name=va&q=ebenefits
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- <FARADAY_VERSION>
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,ide... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/search_typeahead/missing_query.yml | ---
http_interactions:
- request:
method: get
uri: https://api.gsa.gov/technology/searchgov/v1/suggestions?api_key=TEST_KEY&name=va&q=
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- <FARADAY_VERSION>
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/veteran/ogc_poa_data.yml | ---
http_interactions:
- request:
method: post
uri: https://www.va.gov/ogc/apps/accreditation/attorneyexcellist.asp
body:
encoding: UTF-8
string: id=frmExcelList&name=frmExcelList
headers:
User-Agent:
- Faraday v0.9.2
Content-Type:
- application/x-www-form-urlencoded
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/veteran/ogc_claim_agent_data.yml | ---
http_interactions:
- request:
method: post
uri: https://www.va.gov/ogc/apps/accreditation/caexcellist.asp
body:
encoding: UTF-8
string: id=frmExcelList&name=frmExcelList
headers:
User-Agent:
- Faraday v0.9.2
Content-Type:
- application/x-www-form-urlencoded
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/veteran/ogc_attorney_data.yml | ---
http_interactions:
- request:
method: post
uri: https://www.va.gov/ogc/apps/accreditation/attorneyexcellist.asp
body:
encoding: UTF-8
string: id=frmExcelList&name=frmExcelList
headers:
User-Agent:
- Faraday v0.9.2
Content-Type:
- application/x-www-form-urlencoded
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/veteran/ogc_vso_rep_data_no_middle_initial.yml | ---
http_interactions:
- request:
method: post
uri: https://www.va.gov/ogc/apps/accreditation/orgsexcellist.asp
body:
encoding: UTF-8
string: id=frmExcelList&name=frmExcelList
headers:
User-Agent:
- Faraday v0.9.2
Content-Type:
- application/x-www-form-urlencoded
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/veteran/ogc_vso_rep_data.yml | ---
http_interactions:
- request:
method: post
uri: https://www.va.gov/ogc/apps/accreditation/orgsexcellist.asp
body:
encoding: UTF-8
string: id=frmExcelList&name=frmExcelList
headers:
User-Agent:
- Faraday v0.9.2
Content-Type:
- application/x-www-form-urlencoded
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_appointment_500_server_error.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetVeteranAppointment
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
code: 500
message:... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_appointment_401_unauthorized.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetVeteranAppointment
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer invalid-token
response:
status:
code: 401
messa... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_appointment_validation_error.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetVeteranAppointment
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
code: 200
message:... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_appointments_success.yml | ---
http_interactions:
- request:
method: post
uri: https://api.vass.va.gov/api/GetVeteranAppointments
body:
encoding: UTF-8
string: '{"correlationId":"test-correlation-id","veteranId":"vet-123"}'
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_availability_invalid_dates.yml | ---
http_interactions:
- request:
method: post
uri: https://api.vass.va.gov/api/AppointmentAvailability
body:
encoding: UTF-8
string: '{"correlationId":"test-correlation-id","veteranId":"da1e1a40-1e63-f011-bec2-001dd80351ea","dtStartUtc":"2025-12-10T00:00:00Z","dtEndUtc":"2025-12-03T00:00:00Z"}'... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/cancel_appointment_success.yml | ---
http_interactions:
- request:
method: post
uri: https://api.vass.va.gov/api/CancelAppointment
body:
encoding: UTF-8
string: '{"appointmentId":"appt-abc123"}'
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_availability_success.yml | ---
http_interactions:
- request:
method: post
uri: https://api.vass.va.gov/api/AppointmentAvailability
body:
encoding: UTF-8
string: '{"correlationId":"test-correlation-id","veteranId":"vet-123","dtStartUtc":"2025-11-27T00:00:00Z","dtEndUtc":"2025-12-04T23:59:59Z"}'
headers:
Content-T... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_agent_skills_success.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetAgentSkills
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
code: 200
message: OK
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_appointment_success.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetVeteranAppointment
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
code: 200
message:... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/oauth_token_success.yml | ---
http_interactions:
- request:
method: post
uri: https://login.microsoftonline.us/test-tenant-id/oauth2/v2.0/token
body:
encoding: UTF-8
string: client_id=test-client-id&client_secret=test-client-secret&scope=https://api.va.gov/.default&grant_type=client_credentials
headers:
Content... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_veteran_success.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetVeteran
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
code: 200
message: OK
hea... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/save_appointment_invalid_veteran.yml | ---
http_interactions:
- request:
method: post
uri: https://api.vass.va.gov/api/SaveAppointment
body:
encoding: UTF-8
string: '{"correlationId":"test-correlation-id","veteranId":"invalid-guid","timeStartUTC":"2025-12-03T10:00:00Z","timeEndUTC":"2025-12-03T10:30:00Z","selectedAgentSkills":["skill... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/save_appointment_success.yml | ---
http_interactions:
- request:
method: post
uri: https://api.vass.va.gov/api/SaveAppointment
body:
encoding: UTF-8
string: '{"correlationId":"test-correlation-id","veteranId":"vet-123","timeStartUTC":"2025-11-27T10:00:00Z","timeEndUTC":"2025-11-27T10:30:00Z","selectedAgentSkills":["skill-1","... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/vass/get_appointment_404_not_found.yml | ---
http_interactions:
- request:
method: get
uri: https://api.vass.va.gov/api/GetVeteranAppointment
body:
encoding: US-ASCII
string: ''
headers:
Content-Type:
- application/json
Authorization:
- Bearer test-token
response:
status:
code: 404
message:... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/phr_mgr_client/perform_a_phr_refresh.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_MR_HOST>/v2/phrmgr/refresh/1000000000V000000"
body:
encoding: UTF-8
string: "{}"
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Ve... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/phr_mgr_client/check_phr_refresh_status.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_MR_HOST>/v2/phrmgr/status/1000000000V000000"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
X-Authorizatio... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/phr_mgr_client/get_military_service.yml | ---
http_interactions:
- request:
method: get
uri: "<MHV_MR_HOST>/v2/phrmgr/dod/vaprofile/1234567890"
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- text/plain
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
X-Authorization-Key:... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/phr_mgr_client/perform_a_phr_refresh_with_bad_icn.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_MR_HOST>/v2/phrmgr/refresh/12345"
body:
encoding: UTF-8
string: "{}"
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- Vets.gov Agent
X-Authorization-Key:
... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/phr_mgr_client/create_aal_entry.yml | ---
http_interactions:
- request:
method: post
uri: "<MHV_MR_HOST>/v1/usermgmt/activity"
body:
encoding: UTF-8
string: '{"userProfileId":21207668,"activityType":"Allergy","action":"create","completionTime":"Wed,
30 Apr 2025 12:44:08 GMT","performerType":"Self","detailValue":null,"status"... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/saml/idp_metadata.yml | ---
http_interactions:
- request:
method: get
uri: https://api.idmelabs.com/saml/metadata/provider
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.9.2
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
respon... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/saml/idp_metadata_404.yml | ---
http_interactions:
- request:
method: get
uri: https://api.idmelabs.com/saml/metadata/providerr
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.9.2
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
respo... |
0 | code_files/vets-api-private/spec/support/vcr_cassettes | code_files/vets-api-private/spec/support/vcr_cassettes/saml/idp_metadata_bad_cert.yml | ---
http_interactions:
- request:
method: get
uri: https://api.idmelabs.com/saml/metadata/provider
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Faraday v0.9.2
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
respon... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/schema_matchers.rb | # frozen_string_literal: true
require 'rspec/expectations'
module SchemaMatchers
extend RSpec::Matchers::DSL
def valid_against_schema?(json, schema_name, opts = {})
schema_path = Rails.root.join('spec', 'support', 'schemas', "#{schema_name}.json")
JSON::Validator.validate!(schema_path.to_s, json, { stric... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/be_a_uuid.rb | # frozen_string_literal: true
RSpec::Matchers.define :be_a_uuid do
match do |actual|
expect(actual).to match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/)
end
failure_message do |actual|
"expected #{actual} to be a uuid and match /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/impl_matchers.rb | # frozen_string_literal: true
RSpec::Matchers.define :have_constant do |const|
match do |owner|
owner.const_defined?(const)
end
failure_message do |actual|
"expected #{actual} to have constant #{const} defined on it"
end
end
|
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/have_deep_attributes_matcher.rb | # frozen_string_literal: true
RSpec::Matchers.define :have_deep_attributes do
match do |actual|
expected_hash = expected.as_json
actual_hash = actual.as_json
expect(actual_hash).to eq(expected_hash)
end
failure_message do |actual|
"expected object's attributes:\n\n #{actual.as_json} \n\n to deep... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/pdf_fill_matchers.rb | # frozen_string_literal: true
RSpec::Matchers.define :match_pdf_fields do
match(notify_expectation_failures: true) do |actual|
fields = [actual, expected].map do |path|
PdfForms.new(Settings.binaries.pdftk).get_fields(path).map do |field|
{ name: field.name, value: field.value }
end
end
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/xml_matchers.rb | # frozen_string_literal: true
require 'rspec/expectations'
RSpec::Matchers.define :eq_at_path do |path, expected|
match do |actual|
parsed_xml = Ox.parse(actual)
actual_value = parsed_xml.locate(path).first
actual_value == expected
end
end
RSpec::Matchers.define :eq_text_at_path do |path, expected|
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/episode_body_matcher.rb | # frozen_string_literal: true
RSpec::Matchers.define :match_episode_body do |expected|
match do |actual|
actual == expected
end
failure_message do |actual|
message = "expected that #{actual} would match #{expected}"
outputs = [actual, expected].map { |a| pretty(a) }
message += "\nDiff:#{differ.d... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/negated_matchers.rb | # frozen_string_literal: true
RSpec::Matchers.define_negated_matcher :not_trigger_statsd_increment, :trigger_statsd_increment
RSpec::Matchers.define_negated_matcher :not_trigger_statsd_measure, :trigger_statsd_measure
RSpec::Matchers.define_negated_matcher :not_change, :change
|
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/matchers/attr_encrypted_matcher.rb | # frozen_string_literal: true
RSpec::Matchers.define :encrypt_attr do |attribute|
encrypted_attribute = "#{attribute}_ciphertext"
match do |model|
model.respond_to?(attribute) &&
model.respond_to?(encrypted_attribute.intern) &&
model.class.column_names.include?(encrypted_attribute)
end
failur... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/claim_letters/claims_letters_provider.rb | # frozen_string_literal: true
require 'rails_helper'
shared_examples 'claim letters provider' do
# this is used to instantiate any Claim Letter Provider with a current_user
subject { described_class.new(current_user) }
it { is_expected.to respond_to(:get_letters) }
it { is_expected.to respond_to(:get_letter)... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/evss_claims.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"id",
"type",
"attributes"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/folder.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"oneOf": [
{
"required": [
"folderId",
"name",
"count",
"unreadCount",
"systemFolder"
],
"properties": {
"folderId": {
"type": "integer"
},
"nam... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/suggested_conditions.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/extract_statuses.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"id",
"typ... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/evss_claims_async.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"id",
"type",
"attributes"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/trackings.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"required": [
"id",
"type",
"attributes"... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/rated_disability_base.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"required": [
"decisionCode",
"decisionText",
"diagnosticCode",
"name",
"effectiveDate",
"ratedDisabilityId",
"ratingDecisionId",
"ratingPercentage",
"relatedDisabilityDate",
"specialIssues"
],
"properties": {
"d... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/appointments_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"appointments": {
"description": "Array of appointments",
"items": {
"type": "... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/service_history_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"serviceHistory": {
"description": "Array of service history hashes",
"items": {
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/rated_disabilities.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"ratedDisabilities": {
"description": "Array of previously rated disabilities",
"items": {
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/search.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"body": {
"description": "Complete body of search results data from Search.gov",
"properties":... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/errors.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"errors": {
"items": {
"properties": {
"code": {
"type": "string"
},
"detail": {
"type": "string"
},
"source": {
"ty... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/triage_teams.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"id",
"typ... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/service_and_deployment_history_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"items": {
"properties": {
"attributes": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/letter_beneficiary_benefit_information_dependent.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"monthlyAwardAmount": {
"type": "number",
"not": {
"type": "integer"
}
},
"awardEffectiveDate": {
"type": "string"
},
"hasChapter35Eligibility": {
"type": "boolean"
},
"hasSurviv... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/messages_thread.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"oneOf": [
{
"properties": {
"data": {
"type": "array",
"minItems": 0,
"uniqueItems": true,
"items": {
"required": [
"id",
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/all_triage_team.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"triageTeamId",
"name",
"stationNumber",
"preferredTeam",
"relationType",
"locationName",
"suggestedNameDisplay",
"healthCareSystemName",
"ohTriageGroup"
],
"properties": {
"triageTe... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/user_preferences.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"userPreferences": {
"description": "Array of Preference and PreferenceChoice pairings",
"item... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/delete_all_user_preferences.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"preferenceCode": {
"description": "String representing the Preference code",
"items": {
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/prescriptions_filtered.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "prescription_base.json"
}
},
"links": {
"... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/payment_information.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"responses": {
"description": "Array of responses of banking info",
"properties": {
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/suggested_facilities.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"definitions": {
},
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"typ... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/backend_statuses.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"reportedAt": {
"type": "string"
},
"statuses": {
"description": "Arra... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/messages.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 0,
"uniqueItems": true,
"items": {
"required": [
"id",
"type",
"attributes"... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/evss_claim_async.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"type",
"attributes"
],
"properties": {
"id": {
"type": "string"
}... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/folders.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"id",
"typ... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/intent_to_files.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"intentToFile": {
"description": "Array of ITFs the user has been assigned",
"items": {
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/terms_and_conditions.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "terms_and_conditions_mini.json"
}
}
}
}
|
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/states.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"states": {
"description": "Array of states",
"items": {
"type": "string"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/prescriptions.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "prescription_base.json"
}
},
"links": {
"... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/countries.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"countries": {
"description": "Array of countries",
"items": {
"type": "string... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/user_loa3.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"type",
"attributes"
],
"properties": {
"id": {
"type": "strin... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/disability_rating_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"attributes": {
"type": "object",
"properties"... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/intent_to_file_base.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"required": [
"status"
],
"properties": {
"id": {
"type": "string"
},
"creationDate": {
"type": "string"
},
"expirationDate": {
"type": "string"
},
"participantId": {
"type": "integer"
},
"sou... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/submit_disability_form.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"jobId": {
"type": "string"
}
},
"type": "object",
"required": [
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/intent_to_file.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"intentToFile": "intent_to_file_base.json"
}
}
}
|
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/prescription.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"$ref": "prescription_base.json"
},
"meta": {
"type": "object",
"required": [
"updatedAt",
"failedStationList"
],
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/address_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"address": {
"oneOf": [
{
"$ref": "address_domestic.json"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/category.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"type",
"attributes"
],
"properties": {
"id": {
"type": "string"
}... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/full_name_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"first": {
"type": "string"
},
"middle": {
"type": "string"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/terms_and_conditions_mini.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"id",
"type",
"attributes"
],
"properties": {
"id": {
"type": "string"
},
"type": {
"enum": [
"terms_and_conditions"
]
},
"attributes": {
"type": "object",
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/evss_claim.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"type",
"attributes"
],
"properties": {
"id": {
"type": "string"
}... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/message_threads.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": ["data"],
"properties": {
"data": {
"type": "array",
"minItems": 0,
"uniqueItems": true,
"items": {
"required": ["id", "type", "attributes", "links"],
"properties": {
"id":... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/address_international.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"required": [
"addressOne",
"type",
"city",
"countryName"
],
"properties": {
"addressEffectiveDate": {
"type": "string"
},
"addressOne": {
"type": "string"
},
"addressThree": {
"type": "string"
},
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/email_address_response.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"properties": {
"data": {
"properties": {
"attributes": {
"properties": {
"email": {
"type": "string"
},
"effectiveAt": {
"type": "string"
... |
0 | code_files/vets-api-private/spec/support | code_files/vets-api-private/spec/support/schemas_camelized/message_with_attachment.json | {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"data",
"included"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"type",
"attributes",
"relationships",
"links"
],
"propertie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.