Class: Crucible::Tests::RobustSearchTest
- Defined in:
- lib/tests/suites/search_test_robust.rb
Constant Summary
Constants inherited from BaseSuite
Constants inherited from BaseTest
BaseTest::BASE_SPEC_LINK, BaseTest::JSON_FIELDS, BaseTest::METADATA_FIELDS, BaseTest::REST_SPEC_LINK, BaseTest::STATUS
Instance Attribute Summary
Attributes inherited from BaseTest
#category, #tags, #tests_subset, #warnings
Instance Method Summary collapse
- #description ⇒ Object
- #id ⇒ Object
-
#initialize(client1, client2 = nil) ⇒ RobustSearchTest
constructor
A new instance of RobustSearchTest.
- #setup ⇒ Object
- #teardown ⇒ Object
Methods inherited from BaseSuite
#build_messages, #collect_metadata, fhir_resources, #links, #metadata, #parse_operation_outcome, #requires, #resource_category, test, #title, #validates
Methods inherited from BaseTest
#author, #details, #execute, #execute_test_method, #execute_test_methods, #ignore_client_exception, #multiserver, #requires_authorization, #tests, #warning
Methods included from Assertions
#assert, #assert_bundle_entry_count, #assert_bundle_response, #assert_bundle_transactions_okay, #assert_equal, #assert_etag_present, #assert_last_modified_present, #assert_minimum, #assert_navigation_links, #assert_operator, #assert_resource_content_type, #assert_resource_type, #assert_response_bad, #assert_response_code, #assert_response_conflict, #assert_response_created, #assert_response_gone, #assert_response_not_found, #assert_response_ok, #assert_valid_content_location_present, #assert_valid_profile, #assert_valid_resource_content_type_present, #assertion_negated, #skip
Constructor Details
#initialize(client1, client2 = nil) ⇒ RobustSearchTest
Returns a new instance of RobustSearchTest.
13 14 15 16 |
# File 'lib/tests/suites/search_test_robust.rb', line 13 def initialize(client1, client2=nil) super(client1, client2) @category = {id: 'core_functionality', title: 'Core Functionality'} end |
Instance Method Details
#description ⇒ Object
9 10 11 |
# File 'lib/tests/suites/search_test_robust.rb', line 9 def description 'Deeper testing of search capabilities.' end |
#id ⇒ Object
5 6 7 |
# File 'lib/tests/suites/search_test_robust.rb', line 5 def id 'Search002' end |
#setup ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/tests/suites/search_test_robust.rb', line 18 def setup # Create a patient patient = Crucible::Generator::Resources.new.minimal_patient patient.identifier = [FHIR::Identifier.new] patient.identifier[0].value = SecureRandom.urlsafe_base64 ignore_client_exception { @patient = FHIR::Patient.create(patient) } assert @patient, "Response code #{@client.reply.code} on patient creation." end |
#teardown ⇒ Object
27 28 29 |
# File 'lib/tests/suites/search_test_robust.rb', line 27 def teardown ignore_client_exception { @patient.destroy } end |