Class: ONCCertificationG10TestKit::SMARTGranularScopeSelectionTest
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- ONCCertificationG10TestKit::SMARTGranularScopeSelectionTest
- Defined in:
- lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb
Instance Method Summary collapse
- #granular_scope_regex(resource_type) ⇒ Object
- #resource_level_scope_regex(resource_type) ⇒ Object
- #resources_with_granular_scopes ⇒ Object
- #v2_resource_level_scope_regex(resource_type) ⇒ Object
Instance Method Details
#granular_scope_regex(resource_type) ⇒ Object
24 25 26 |
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 24 def granular_scope_regex(resource_type) /#{resource_type}\.(\*|c?ru?d?s?)\?.+=.+/ end |
#resource_level_scope_regex(resource_type) ⇒ Object
16 17 18 |
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 16 def resource_level_scope_regex(resource_type) /#{resource_type}\.(\*|read|c?ru?d?s?)\z/ end |
#resources_with_granular_scopes ⇒ Object
12 13 14 |
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 12 def resources_with_granular_scopes ['Condition', 'Observation'] end |
#v2_resource_level_scope_regex(resource_type) ⇒ Object
20 21 22 |
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 20 def v2_resource_level_scope_regex(resource_type) /#{resource_type}\.(\*|c?ru?d?s?)\z/ end |