Sha256: dc91d538add908ab843f05f93e97c5a78094da60697cd067459bf8d812b6085b
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
require_relative '<%= library_name %>/patient_group' module <%= module_name %> class Suite < Inferno::TestSuite id :<%= test_suite_id %> title '<%= title_name %> Test Suite' description '<%= human_name %> test suite.' # These inputs will be available to all tests in this suite input :url, title: 'FHIR Server Base Url' input :credentials, title: 'OAuth Credentials', type: :oauth_credentials, optional: true # All FHIR requests in this suite will use this FHIR client fhir_client do url :url oauth_credentials :credentials end # All FHIR validation requsets will use this FHIR validator validator do url ENV.fetch('VALIDATOR_URL') end # Tests and TestGroups can be defined inline group do id :capability_statement title 'Capability Statement' description 'Verify that the server has a CapabilityStatement' test do id :capability_statement_read title 'Read CapabilityStatement' description 'Read CapabilityStatement from /metadata endpoint' run do fhir_get_capability_statement assert_response_status(200) assert_resource_type(:capability_statement) end end end # Tests and TestGroups can be written in separate files and then included # using their id group from: :patient_group end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inferno_core-0.4.35 | lib/inferno/apps/cli/templates/lib/%library_name%.rb.tt |
inferno_core-0.4.34 | lib/inferno/apps/cli/templates/lib/%library_name%.rb.tt |