subscriptions_test_kit 0.9.0 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inferno_requirements_tools/tasks/requirements_coverage.rb +0 -1
  3. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/conformance_verification/notification_input_payload_verification_test.rb +1 -1
  4. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/conformance_verification/notification_input_verification_test.rb +1 -1
  5. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/conformance_verification/processing_attestation_test.rb +1 -1
  6. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/conformance_verification/subscription_verification_test.rb +1 -1
  7. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/conformance_verification_group.rb +5 -5
  8. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/interaction_test.rb +1 -1
  9. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/interaction_verification/event_notification_verification_test.rb +1 -1
  10. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/interaction_verification/handshake_notification_verification_test.rb +1 -1
  11. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/interaction_verification_group.rb +3 -3
  12. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow_group.rb +4 -4
  13. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client_suite.rb +1 -1
  14. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/capability_statement → capability_statement}/cs_conformance_test.rb +1 -1
  15. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/capability_statement → capability_statement}/topic_discovery_test.rb +2 -2
  16. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/capability_statement_group.rb → capability_statement_group.rb} +3 -3
  17. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction/creation_response_conformance_test.rb +1 -1
  18. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction/notification_delivery_test.rb +1 -1
  19. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction/subscription_conformance_test.rb +1 -1
  20. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction_group.rb +4 -4
  21. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction_verification/notification_conformance_test.rb +1 -1
  22. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction_verification_group.rb +2 -2
  23. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification → event_notification}/empty_content/empty_conformance_test.rb +2 -2
  24. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification → event_notification}/empty_content_group.rb +8 -8
  25. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification → event_notification}/full_resource_content/full_resource_conformance_test.rb +2 -2
  26. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification → event_notification}/full_resource_content_group.rb +8 -8
  27. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification → event_notification}/id_only_content/id_only_conformance_test.rb +2 -2
  28. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification → event_notification}/id_only_content_group.rb +8 -8
  29. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/event_notification_group.rb → event_notification_group.rb} +4 -4
  30. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/handshake_heartbeat → handshake_heartbeat}/handshake_conformance_test.rb +2 -2
  31. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/handshake_heartbeat → handshake_heartbeat}/heartbeat_conformance_test.rb +2 -2
  32. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/handshake_heartbeat_group.rb → handshake_heartbeat_group.rb} +3 -3
  33. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/status_operation → status_operation}/status_invocation_test.rb +2 -2
  34. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/status_operation_group.rb → status_operation_group.rb} +2 -2
  35. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/subscription_rejection → subscription_rejection}/reject_subscriptions_test.rb +2 -2
  36. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/{coverage/subscription_rejection_group.rb → subscription_rejection_group.rb} +2 -2
  37. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/workflow_group.rb +3 -3
  38. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server_suite.rb +11 -3
  39. data/lib/subscriptions_test_kit/version.rb +1 -1
  40. metadata +22 -23
  41. data/lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage_group.rb +0 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3010c0e41d18422300572d2bdd268ba8f979ae507b7b0e409d7f10522a73fd6
4
- data.tar.gz: 6ca1f0f14fc953337763a5cf849210f0bf2ac10d4474dbe32625a8743d67c349
3
+ metadata.gz: 4aa07a6d63da9348618f7c9d28443c743ff8669b25e5304c2d572370d7eb457c
4
+ data.tar.gz: 28ca4154cb6b064fd6c7d5cb7dd47f9b6c68a5eef051214e091152517971979e
5
5
  SHA512:
6
- metadata.gz: 654ce8de2da7ea3311efd3abaed8119bfd9e1bca5ebd7b5f272ca860f93d8057d822f90ed93846aa726a6cfce801491104a132b2debf748fb27507ec3c6a4c13
7
- data.tar.gz: fab4227a438ee3299ec345d88ee02dd4b7c9b851a71cdd9b0e22952be0cbfb9d83779bc3d971439a384a71020b65e61b27866aad1ce6fd7b70cf71858bd28d48
6
+ metadata.gz: 756cebdf92654e1115f752c127e68c41052259087c781a665f9f286f4eaecb48bd10996cba20d6e0cfce1c287e3779be0a401e6a8f297b94bc40952e9686c013
7
+ data.tar.gz: d8146e70aae224a33f534f05b54282d96bdc62742d5710d3f6e30260d480ec52efd9396a98090800756611640cf66bbe695b7322c1f650eb47be3fb5e729afb3
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'CSV'
4
- require 'roo'
5
4
  require_relative '../ext/inferno_core/runnable'
6
5
 
7
6
  module InfernoRequirementsTools
@@ -11,7 +11,7 @@ module SubscriptionsTestKit
11
11
  include SubscriptionConformanceVerification
12
12
  include SubscriptionSimulationUtils
13
13
 
14
- id :subscriptions_r5_backport_r4_client_notification_input_payload_verification
14
+ id :subscriptions_r4_client_notification_input_payload_verification
15
15
  title '[USER INPUT VERIFICATION] Notification Bundle Input Conformance Verification for Payload Content'
16
16
  description 'This test verifies that the notification bundle from the test input meets the requirements '\
17
17
  'of the payload indicated in the subscription created by the client under test.'
@@ -7,7 +7,7 @@ module SubscriptionsTestKit
7
7
  class NotificationInputVerificationTest < Inferno::Test
8
8
  include NotificationConformanceVerification
9
9
 
10
- id :subscriptions_r5_backport_r4_client_notification_input_verification
10
+ id :subscriptions_r4_client_notification_input_verification
11
11
  title '[USER INPUT VERIFICATION] Notification Bundle Input Conformance Verification'
12
12
  description %(
13
13
  This test verifies that the notification bundle provided by the tester is conformant
@@ -7,7 +7,7 @@ module SubscriptionsTestKit
7
7
  class ProcessingAttestationTest < Inferno::Test
8
8
  include URLs
9
9
 
10
- id :subscriptions_r5_backport_r4_client_processing_attestation
10
+ id :subscriptions_r4_client_processing_attestation
11
11
  title 'Client Processes Event Notification'
12
12
  description %(
13
13
  This test asks the tester to attest that the event notification sent by Inferno
@@ -6,7 +6,7 @@ module SubscriptionsTestKit
6
6
  module SubscriptionsR5BackportR4Client
7
7
  class SubscriptionVerificationTest < Inferno::Test
8
8
  include SubscriptionConformanceVerification
9
- id :subscriptions_r5_backport_r4_client_subscription_verification
9
+ id :subscriptions_r4_client_subscription_verification
10
10
  title 'Client Subscription Conformance Verification'
11
11
  description %(
12
12
  This test verifies that the Subscription created by the client under test
@@ -8,13 +8,13 @@ require_relative 'conformance_verification/processing_attestation_test'
8
8
  module SubscriptionsTestKit
9
9
  module SubscriptionsR5BackportR4Client
10
10
  class ConformanceVerificationGroup < Inferno::TestGroup
11
- id :subscriptions_r5_backport_r4_client_conformance_verification
11
+ id :subscriptions_r4_client_conformance_verification
12
12
  title 'Rest-Hook Subscription Conformance Verification'
13
13
 
14
- test from: :subscriptions_r5_backport_r4_client_subscription_verification
15
- test from: :subscriptions_r5_backport_r4_client_notification_input_verification
16
- test from: :subscriptions_r5_backport_r4_client_notification_input_payload_verification
17
- test from: :subscriptions_r5_backport_r4_client_processing_attestation
14
+ test from: :subscriptions_r4_client_subscription_verification
15
+ test from: :subscriptions_r4_client_notification_input_verification
16
+ test from: :subscriptions_r4_client_notification_input_payload_verification
17
+ test from: :subscriptions_r4_client_processing_attestation
18
18
  end
19
19
  end
20
20
  end
@@ -3,7 +3,7 @@
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Client
5
5
  class InteractionTest < Inferno::Test
6
- id :subscriptions_r5_backport_r4_client_interaction
6
+ id :subscriptions_r4_client_interaction
7
7
  description %(
8
8
  During this test, the client under test will interact with Inferno following the Subscription
9
9
  workflow over a `rest-hook` channel. This includes the following steps
@@ -7,7 +7,7 @@ module SubscriptionsTestKit
7
7
  class EventNotificationVerificationTest < Inferno::Test
8
8
  include SubscriptionSimulationUtils
9
9
 
10
- id :subscriptions_r5_backport_r4_client_event_notification_verification
10
+ id :subscriptions_r4_client_event_notification_verification
11
11
  title 'Rest-Hook Event Notification Verification'
12
12
  description %(
13
13
  This test verifies that the client's response to the event notification
@@ -7,7 +7,7 @@ module SubscriptionsTestKit
7
7
  class HandshakeNotificationVerificationTest < Inferno::Test
8
8
  include SubscriptionSimulationUtils
9
9
 
10
- id :subscriptions_r5_backport_r4_client_handshake_notification_verification
10
+ id :subscriptions_r4_client_handshake_notification_verification
11
11
  title 'Rest-Hook Handshake Notification Verification'
12
12
  description %(
13
13
  This test verifies that the client's response to the handshake notification
@@ -6,11 +6,11 @@ require_relative 'interaction_verification/event_notification_verification_test'
6
6
  module SubscriptionsTestKit
7
7
  module SubscriptionsR5BackportR4Client
8
8
  class InteractionVerificationGroup < Inferno::TestGroup
9
- id :subscriptions_r5_backport_r4_client_interaction_verification
9
+ id :subscriptions_r4_client_interaction_verification
10
10
  title 'Rest-Hook Subscription Interaction Verification'
11
11
 
12
- test from: :subscriptions_r5_backport_r4_client_handshake_notification_verification
13
- test from: :subscriptions_r5_backport_r4_client_event_notification_verification
12
+ test from: :subscriptions_r4_client_handshake_notification_verification
13
+ test from: :subscriptions_r4_client_event_notification_verification
14
14
  end
15
15
  end
16
16
  end
@@ -9,7 +9,7 @@ module SubscriptionsTestKit
9
9
  class WorkflowGroup < Inferno::TestGroup
10
10
  include URLs
11
11
 
12
- id :subscriptions_r5_backport_r4_client_workflow
12
+ id :subscriptions_r4_client_workflow
13
13
  title 'Demonstrate the Rest-Hook Subscription Workflow'
14
14
  description %(
15
15
  Demonstrate the ability of the client to request the
@@ -23,11 +23,11 @@ module SubscriptionsTestKit
23
23
  run_as_group
24
24
 
25
25
  group 'Rest-Hook Subscription Interaction' do
26
- test from: :subscriptions_r5_backport_r4_client_interaction
26
+ test from: :subscriptions_r4_client_interaction
27
27
  end
28
28
 
29
- group from: :subscriptions_r5_backport_r4_client_interaction_verification
30
- group from: :subscriptions_r5_backport_r4_client_conformance_verification
29
+ group from: :subscriptions_r4_client_interaction_verification
30
+ group from: :subscriptions_r4_client_conformance_verification
31
31
  end
32
32
  end
33
33
  end
@@ -60,7 +60,7 @@ module SubscriptionsTestKit
60
60
  request.query_parameters['test_run_identifier']
61
61
  end
62
62
 
63
- group from: :subscriptions_r5_backport_r4_client_workflow
63
+ group from: :subscriptions_r4_client_workflow
64
64
  end
65
65
  end
66
66
  end
@@ -1,7 +1,7 @@
1
1
  module SubscriptionsTestKit
2
2
  module SubscriptionsR5BackportR4Server
3
3
  class CSConformanceTest < Inferno::Test
4
- id :subscriptions_r5_backport_r4_server_cs_conformance
4
+ id :subscriptions_r4_server_cs_conformance
5
5
  title 'Capability Statement Conformance Verification'
6
6
  description %(
7
7
  This test attempts to retreive the server's Capability Statement in order to verify that it
@@ -1,11 +1,11 @@
1
- require_relative '../../../../common/subscription_conformance_verification'
1
+ require_relative '../../../common/subscription_conformance_verification'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class TopicDiscoveryTest < Inferno::Test
6
6
  include SubscriptionConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_topic_discovery
8
+ id :subscriptions_r4_server_topic_discovery
9
9
  title 'Attempt topic discovery'
10
10
  description %(
11
11
  This test attempts to perform topic discovery with the server. In order to allow for [discovery of supported
@@ -4,7 +4,7 @@ require_relative 'capability_statement/topic_discovery_test'
4
4
  module SubscriptionsTestKit
5
5
  module SubscriptionsR5BackportR4Server
6
6
  class CapabilityStatementGroup < Inferno::TestGroup
7
- id :subscriptions_r5_backport_r4_server_capability_statement
7
+ id :subscriptions_r4_server_capability_statement
8
8
  title 'Capability Statement Verification'
9
9
  description %(
10
10
  Verify the Backport Subscriptions Server has a conformant Capability Statement and that it declares support for the
@@ -14,8 +14,8 @@ module SubscriptionsTestKit
14
14
 
15
15
  run_as_group
16
16
 
17
- test from: :subscriptions_r5_backport_r4_server_cs_conformance
18
- test from: :subscriptions_r5_backport_r4_server_topic_discovery
17
+ test from: :subscriptions_r4_server_cs_conformance
18
+ test from: :subscriptions_r4_server_topic_discovery
19
19
  end
20
20
  end
21
21
  end
@@ -1,7 +1,7 @@
1
1
  module SubscriptionsTestKit
2
2
  module SubscriptionsR5BackportR4Server
3
3
  class CreationResponseConformanceTest < Inferno::Test
4
- id :subscriptions_r5_backport_r4_server_creation_response_conformance
4
+ id :subscriptions_r4_server_creation_response_conformance
5
5
  title 'Verify Subscription Creation Response'
6
6
  description %(
7
7
  This test ensures that the server responded to the Subscription creation test with the new created Subscription
@@ -7,7 +7,7 @@ module SubscriptionsTestKit
7
7
  include SubscriptionCreation
8
8
  include URLs
9
9
 
10
- id :subscriptions_r5_backport_r4_server_notification_delivery
10
+ id :subscriptions_r4_server_notification_delivery
11
11
  title 'Send Subscription and Receive Notification Requests from Server'
12
12
  description %(
13
13
  This test sends a request to create the Subscription resource to the Subscriptions Backport FHIR Server.
@@ -5,7 +5,7 @@ module SubscriptionsTestKit
5
5
  class SubscriptionConformanceTest < Inferno::Test
6
6
  include SubscriptionConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_subscription_conformance
8
+ id :subscriptions_r4_server_subscription_conformance
9
9
  title '[USER INPUT VERIFICATION] Verify Subscription to Send to Server'
10
10
  description %(
11
11
  The Subscription resource is used to request notifications for a specific client about a specific topic
@@ -5,7 +5,7 @@ require_relative 'interaction/creation_response_conformance_test'
5
5
  module SubscriptionsTestKit
6
6
  module SubscriptionsR5BackportR4Server
7
7
  class InteractionGroup < Inferno::TestGroup
8
- id :subscriptions_r5_backport_r4_server_interaction
8
+ id :subscriptions_r4_server_interaction
9
9
  title 'Subscription Workflow Interaction'
10
10
  description %(
11
11
  Verify that the Subscription instance the tester provided is conformant, and then demonstrate the ability of the
@@ -16,9 +16,9 @@ module SubscriptionsTestKit
16
16
 
17
17
  run_as_group
18
18
 
19
- test from: :subscriptions_r5_backport_r4_server_subscription_conformance
20
- test from: :subscriptions_r5_backport_r4_server_notification_delivery
21
- test from: :subscriptions_r5_backport_r4_server_creation_response_conformance
19
+ test from: :subscriptions_r4_server_subscription_conformance
20
+ test from: :subscriptions_r4_server_notification_delivery
21
+ test from: :subscriptions_r4_server_creation_response_conformance
22
22
  end
23
23
  end
24
24
  end
@@ -5,7 +5,7 @@ module SubscriptionsTestKit
5
5
  class NotificationConformanceTest < Inferno::Test
6
6
  include NotificationConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_notification_conformance
8
+ id :subscriptions_r4_server_notification_conformance
9
9
  title 'Subscription Notification Verification'
10
10
  description %(
11
11
  As described in [Topic-Based Subscription Components](https://hl7.org/fhir/uv/subscriptions-backport/STU1.1/components.html#subscription-notifications),
@@ -3,7 +3,7 @@ require_relative 'interaction_verification/notification_conformance_test'
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class InteractionVerificationGroup < Inferno::TestGroup
6
- id :subscriptions_r5_backport_r4_server_interaction_verification
6
+ id :subscriptions_r4_server_interaction_verification
7
7
  title 'Subscription Workflow Interaction Verification'
8
8
  description %(
9
9
  Inferno takes the received event-notification Bundle and verifies that it is conformant to the
@@ -13,7 +13,7 @@ module SubscriptionsTestKit
13
13
 
14
14
  run_as_group
15
15
 
16
- test from: :subscriptions_r5_backport_r4_server_notification_conformance
16
+ test from: :subscriptions_r4_server_notification_conformance
17
17
  end
18
18
  end
19
19
  end
@@ -1,11 +1,11 @@
1
- require_relative '../../../../../common/notification_conformance_verification'
1
+ require_relative '../../../../common/notification_conformance_verification'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class EmptyConformanceTest < Inferno::Test
6
6
  include NotificationConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_empty_conformance
8
+ id :subscriptions_r4_server_empty_conformance
9
9
  title 'Subscription Empty Notification Verification'
10
10
  description %(
11
11
  This test takes the received empty notification bundle and ensures it is conformant to the
@@ -1,11 +1,11 @@
1
- require_relative '../../common/interaction_group'
2
- require_relative '../../common/interaction_verification_group'
1
+ require_relative '../common/interaction_group'
2
+ require_relative '../common/interaction_verification_group'
3
3
  require_relative 'empty_content/empty_conformance_test'
4
4
 
5
5
  module SubscriptionsTestKit
6
6
  module SubscriptionsR5BackportR4Server
7
7
  class EmptyContentGroup < Inferno::TestGroup
8
- id :subscriptions_r5_backport_r4_server_empty_content
8
+ id :subscriptions_r4_server_empty_content
9
9
  title 'Empty Notification Verification'
10
10
  description %(
11
11
  Verify that the received Notifications are conformant to the
@@ -18,8 +18,8 @@ module SubscriptionsTestKit
18
18
 
19
19
  input_order :url, :credentials, :access_token, :empty_subscription_resource
20
20
 
21
- group from: :subscriptions_r5_backport_r4_server_interaction do
22
- id :subscriptions_r5_backport_r4_server_empty_content_interaction
21
+ group from: :subscriptions_r4_server_interaction do
22
+ id :subscriptions_r4_server_empty_content_interaction
23
23
  optional
24
24
 
25
25
  config(
@@ -44,14 +44,14 @@ module SubscriptionsTestKit
44
44
  }
45
45
  )
46
46
  end
47
- group from: :subscriptions_r5_backport_r4_server_interaction_verification do
48
- id :subscriptions_r5_backport_r4_server_empty_content_interaction_verification
47
+ group from: :subscriptions_r4_server_interaction_verification do
48
+ id :subscriptions_r4_server_empty_content_interaction_verification
49
49
  optional
50
50
 
51
51
  config(
52
52
  options: { subscription_type: 'empty' }
53
53
  )
54
- test from: :subscriptions_r5_backport_r4_server_empty_conformance
54
+ test from: :subscriptions_r4_server_empty_conformance
55
55
  end
56
56
  end
57
57
  end
@@ -1,11 +1,11 @@
1
- require_relative '../../../../../common/notification_conformance_verification'
1
+ require_relative '../../../../common/notification_conformance_verification'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class FullResourceConformanceTest < Inferno::Test
6
6
  include NotificationConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_full_resource_conformance
8
+ id :subscriptions_r4_server_full_resource_conformance
9
9
  title 'Subscription Full-Resource Notification Verification'
10
10
  description %(
11
11
  This test takes the received notification bundle and ensures it is conformant to the
@@ -1,11 +1,11 @@
1
- require_relative '../../common/interaction_group'
2
- require_relative '../../common/interaction_verification_group'
1
+ require_relative '../common/interaction_group'
2
+ require_relative '../common/interaction_verification_group'
3
3
  require_relative 'full_resource_content/full_resource_conformance_test'
4
4
 
5
5
  module SubscriptionsTestKit
6
6
  module SubscriptionsR5BackportR4Server
7
7
  class FullResourceContentGroup < Inferno::TestGroup
8
- id :subscriptions_r5_backport_r4_server_full_resource_content
8
+ id :subscriptions_r4_server_full_resource_content
9
9
  title 'Full Resource Notification Verification'
10
10
  description %(
11
11
  Verify that the received Notifications are conformant to the
@@ -18,8 +18,8 @@ module SubscriptionsTestKit
18
18
 
19
19
  input_order :url, :credentials, :access_token, :full_resource_subscription_resource
20
20
 
21
- group from: :subscriptions_r5_backport_r4_server_interaction do
22
- id :subscriptions_r5_backport_r4_server_full_resource_content_interaction
21
+ group from: :subscriptions_r4_server_interaction do
22
+ id :subscriptions_r4_server_full_resource_content_interaction
23
23
  optional
24
24
 
25
25
  config(
@@ -44,14 +44,14 @@ module SubscriptionsTestKit
44
44
  }
45
45
  )
46
46
  end
47
- group from: :subscriptions_r5_backport_r4_server_interaction_verification do
48
- id :subscriptions_r5_backport_r4_server_full_resource_content_interaction_verification
47
+ group from: :subscriptions_r4_server_interaction_verification do
48
+ id :subscriptions_r4_server_full_resource_content_interaction_verification
49
49
  optional
50
50
 
51
51
  config(
52
52
  options: { subscription_type: 'full-resource' }
53
53
  )
54
- test from: :subscriptions_r5_backport_r4_server_full_resource_conformance
54
+ test from: :subscriptions_r4_server_full_resource_conformance
55
55
  end
56
56
  end
57
57
  end
@@ -1,11 +1,11 @@
1
- require_relative '../../../../../common/notification_conformance_verification'
1
+ require_relative '../../../../common/notification_conformance_verification'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class IdOnlyConformanceTest < Inferno::Test
6
6
  include NotificationConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_id_only_conformance
8
+ id :subscriptions_r4_server_id_only_conformance
9
9
  title 'Subscription Id-Only Notification Verification'
10
10
  description %(
11
11
  This test takes the received notification bundle and ensures it is conformant to the
@@ -1,11 +1,11 @@
1
- require_relative '../../common/interaction_group'
2
- require_relative '../../common/interaction_verification_group'
1
+ require_relative '../common/interaction_group'
2
+ require_relative '../common/interaction_verification_group'
3
3
  require_relative 'id_only_content/id_only_conformance_test'
4
4
 
5
5
  module SubscriptionsTestKit
6
6
  module SubscriptionsR5BackportR4Server
7
7
  class IdOnlyContentGroup < Inferno::TestGroup
8
- id :subscriptions_r5_backport_r4_server_id_only_content
8
+ id :subscriptions_r4_server_id_only_content
9
9
  title 'Id Only Notification Verification'
10
10
  description %(
11
11
  Verify that the received Notifications are conformant to the
@@ -18,8 +18,8 @@ module SubscriptionsTestKit
18
18
 
19
19
  input_order :url, :credentials, :access_token, :id_only_subscription_resource
20
20
 
21
- group from: :subscriptions_r5_backport_r4_server_interaction do
22
- id :subscriptions_r5_backport_r4_server_id_only_content_interaction
21
+ group from: :subscriptions_r4_server_interaction do
22
+ id :subscriptions_r4_server_id_only_content_interaction
23
23
  optional
24
24
 
25
25
  config(
@@ -44,14 +44,14 @@ module SubscriptionsTestKit
44
44
  }
45
45
  )
46
46
  end
47
- group from: :subscriptions_r5_backport_r4_server_interaction_verification do
48
- id :subscriptions_r5_backport_r4_server_id_only_content_interaction_verification
47
+ group from: :subscriptions_r4_server_interaction_verification do
48
+ id :subscriptions_r4_server_id_only_content_interaction_verification
49
49
  optional
50
50
 
51
51
  config(
52
52
  options: { subscription_type: 'id-only' }
53
53
  )
54
- test from: :subscriptions_r5_backport_r4_server_id_only_conformance
54
+ test from: :subscriptions_r4_server_id_only_conformance
55
55
  end
56
56
  end
57
57
  end
@@ -5,7 +5,7 @@ require_relative 'event_notification/id_only_content_group'
5
5
  module SubscriptionsTestKit
6
6
  module SubscriptionsR5BackportR4Server
7
7
  class EventNotificationGroup < Inferno::TestGroup
8
- id :subscriptions_r5_backport_r4_server_event_notification
8
+ id :subscriptions_r4_server_event_notification
9
9
  title 'Backport Subscription Notification Verification'
10
10
  description %(
11
11
  Verify that the received Notifications are conformant to the
@@ -17,9 +17,9 @@ module SubscriptionsTestKit
17
17
  input_order :url, :credentials, :access_token, :empty_subscription_resource,
18
18
  :id_only_subscription_resource, :full_resource_subscription_resource
19
19
 
20
- group from: :subscriptions_r5_backport_r4_server_empty_content
21
- group from: :subscriptions_r5_backport_r4_server_id_only_content
22
- group from: :subscriptions_r5_backport_r4_server_full_resource_content
20
+ group from: :subscriptions_r4_server_empty_content
21
+ group from: :subscriptions_r4_server_id_only_content
22
+ group from: :subscriptions_r4_server_full_resource_content
23
23
  end
24
24
  end
25
25
  end
@@ -1,11 +1,11 @@
1
- require_relative '../../../../common/notification_conformance_verification'
1
+ require_relative '../../../common/notification_conformance_verification'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class HandshakeConformanceTest < Inferno::Test
6
6
  include NotificationConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_handshake_conformance
8
+ id :subscriptions_r4_server_handshake_conformance
9
9
  title 'Subscription Handshake Verification'
10
10
  description %(
11
11
  When a Subscription is created for a REST Hook channel type, the server SHALL set initial status to requested,
@@ -1,11 +1,11 @@
1
- require_relative '../../../../common/notification_conformance_verification'
1
+ require_relative '../../../common/notification_conformance_verification'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class HeartbeatConformanceTest < Inferno::Test
6
6
  include NotificationConformanceVerification
7
7
 
8
- id :subscriptions_r5_backport_r4_server_heartbeat_conformance
8
+ id :subscriptions_r4_server_heartbeat_conformance
9
9
  title 'Subscription Heartbeat Verification'
10
10
  description %(
11
11
  When a Subscription is created for a REST Hook channel type, the server Server may send notifications of type
@@ -4,7 +4,7 @@ require_relative 'handshake_heartbeat/heartbeat_conformance_test'
4
4
  module SubscriptionsTestKit
5
5
  module SubscriptionsR5BackportR4Server
6
6
  class HandshakeHeartbeatGroup < Inferno::TestGroup
7
- id :subscriptions_r5_backport_r4_server_handshake_heartbeat
7
+ id :subscriptions_r4_server_handshake_heartbeat
8
8
  title 'Backport Subscription Handshake and Heartbeat Notification Verification'
9
9
  description %(
10
10
  Verify that the any received Handshake or Heartbeat Notifications are conformant to the
@@ -12,8 +12,8 @@ module SubscriptionsTestKit
12
12
  profile.
13
13
  )
14
14
 
15
- test from: :subscriptions_r5_backport_r4_server_handshake_conformance
16
- test from: :subscriptions_r5_backport_r4_server_heartbeat_conformance
15
+ test from: :subscriptions_r4_server_handshake_conformance
16
+ test from: :subscriptions_r4_server_heartbeat_conformance
17
17
  end
18
18
  end
19
19
  end
@@ -1,11 +1,11 @@
1
- require_relative '../../common/subscription_status_operation'
1
+ require_relative '../common/subscription_status_operation'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class StatusInvocationTest < Inferno::Test
6
6
  include SubscriptionStatusOperation
7
7
 
8
- id :subscriptions_r5_backport_r4_server_status_invocation
8
+ id :subscriptions_r4_server_status_invocation
9
9
  title 'Server supports subscription $status operation'
10
10
  description %(
11
11
  In order to claim conformance with this guide, a server: SHALL support the [$status operation](https://hl7.org/fhir/uv/subscriptions-backport/STU1.1/OperationDefinition-backport-subscription-status.html)
@@ -3,13 +3,13 @@ require_relative 'status_operation/status_invocation_test'
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class StatusOperationGroup < Inferno::TestGroup
6
- id :subscriptions_r5_backport_r4_server_status_operation
6
+ id :subscriptions_r4_server_status_operation
7
7
  title 'Subscription $status Operation Verification'
8
8
  description %(
9
9
  This test group verifies that the Backport Subscriptions Server supports the $status operation.
10
10
  )
11
11
 
12
- test from: :subscriptions_r5_backport_r4_server_status_invocation
12
+ test from: :subscriptions_r4_server_status_invocation
13
13
  end
14
14
  end
15
15
  end
@@ -1,11 +1,11 @@
1
- require_relative '../../common/subscription_creation'
1
+ require_relative '../common/subscription_creation'
2
2
 
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class RejectSubscriptionsTest < Inferno::Test
6
6
  include SubscriptionCreation
7
7
 
8
- id :subscriptions_r5_backport_r4_server_reject_subscriptions
8
+ id :subscriptions_r4_server_reject_subscriptions
9
9
  title 'Server Handles Unsupported Subscriptions'
10
10
  description %(
11
11
  When processing a request for a Subscription a server SHOULD verify that the Subscription is supported and does not
@@ -3,7 +3,7 @@ require_relative 'subscription_rejection/reject_subscriptions_test'
3
3
  module SubscriptionsTestKit
4
4
  module SubscriptionsR5BackportR4Server
5
5
  class SubscriptionRejectionGroup < Inferno::TestGroup
6
- id :subscriptions_r5_backport_r4_server_subscription_rejection
6
+ id :subscriptions_r4_server_subscription_rejection
7
7
  title 'Subscription Creation Rejection Verification'
8
8
  description %(
9
9
  This test group verifies that the Backport Subscriptions Server supports rejecting unsupported
@@ -15,7 +15,7 @@ module SubscriptionsTestKit
15
15
  :unsupported_subscription_channel_endpoint, :unsupported_subscription_payload_type,
16
16
  :unsupported_subscription_channel_payload_combo
17
17
 
18
- test from: :subscriptions_r5_backport_r4_server_reject_subscriptions
18
+ test from: :subscriptions_r4_server_reject_subscriptions
19
19
  end
20
20
  end
21
21
  end
@@ -4,7 +4,7 @@ require_relative 'common/interaction_verification_group'
4
4
  module SubscriptionsTestKit
5
5
  module SubscriptionsR5BackportR4Server
6
6
  class WorkflowGroup < Inferno::TestGroup
7
- id :subscriptions_r5_backport_r4_server_workflow
7
+ id :subscriptions_r4_server_workflow
8
8
  title 'Demonstrate the subscription workflow'
9
9
  description %(
10
10
  Demonstrate the ability of the server to accept a request for the
@@ -20,8 +20,8 @@ module SubscriptionsTestKit
20
20
 
21
21
  input_order :url, :credentials, :access_token, :subscription_resource
22
22
 
23
- group from: :subscriptions_r5_backport_r4_server_interaction
24
- group from: :subscriptions_r5_backport_r4_server_interaction_verification
23
+ group from: :subscriptions_r4_server_interaction
24
+ group from: :subscriptions_r4_server_interaction_verification
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,9 @@
1
1
  require_relative 'subscriptions_r5_backport_r4_server/workflow_group'
2
- require_relative 'subscriptions_r5_backport_r4_server/coverage_group'
2
+ require_relative 'subscriptions_r5_backport_r4_server/capability_statement_group'
3
+ require_relative 'subscriptions_r5_backport_r4_server/event_notification_group'
4
+ require_relative 'subscriptions_r5_backport_r4_server/handshake_heartbeat_group'
5
+ require_relative 'subscriptions_r5_backport_r4_server/status_operation_group'
6
+ require_relative 'subscriptions_r5_backport_r4_server/subscription_rejection_group'
3
7
  require_relative '../endpoints/subscription_rest_hook_endpoint'
4
8
  require_relative '../urls'
5
9
  require_relative '../version'
@@ -72,8 +76,12 @@ module SubscriptionsTestKit
72
76
  SubscriptionsR5BackportR4ServerSuite.extract_token_from_query_params(request)
73
77
  end
74
78
 
75
- group from: :subscriptions_r5_backport_r4_server_workflow
76
- group from: :subscriptions_r5_backport_r4_server_coverage
79
+ group from: :subscriptions_r4_server_workflow
80
+ group from: :subscriptions_r4_server_capability_statement
81
+ group from: :subscriptions_r4_server_event_notification
82
+ group from: :subscriptions_r4_server_handshake_heartbeat
83
+ group from: :subscriptions_r4_server_status_operation
84
+ group from: :subscriptions_r4_server_subscription_rejection
77
85
  end
78
86
  end
79
87
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SubscriptionsTestKit
4
- VERSION = '0.9.0'.freeze
4
+ VERSION = '0.9.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subscriptions_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Naden, Emily Semple, Tom Strassner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-07 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.7.1
34
- type: :runtime
33
+ version: 2.10.1
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.7.1
40
+ version: 2.10.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: database_cleaner-sequel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -135,6 +135,9 @@ files:
135
135
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow/interaction_verification_group.rb
136
136
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client/workflow_group.rb
137
137
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_client_suite.rb
138
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/capability_statement/cs_conformance_test.rb
139
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/capability_statement/topic_discovery_test.rb
140
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/capability_statement_group.rb
138
141
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction/creation_response_conformance_test.rb
139
142
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction/notification_delivery_test.rb
140
143
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction/subscription_conformance_test.rb
@@ -143,24 +146,20 @@ files:
143
146
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/interaction_verification_group.rb
144
147
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/subscription_creation.rb
145
148
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/common/subscription_status_operation.rb
146
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/capability_statement/cs_conformance_test.rb
147
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/capability_statement/topic_discovery_test.rb
148
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/capability_statement_group.rb
149
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification/empty_content/empty_conformance_test.rb
150
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification/empty_content_group.rb
151
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification/full_resource_content/full_resource_conformance_test.rb
152
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification/full_resource_content_group.rb
153
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification/id_only_content/id_only_conformance_test.rb
154
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification/id_only_content_group.rb
155
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/event_notification_group.rb
156
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/handshake_heartbeat/handshake_conformance_test.rb
157
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/handshake_heartbeat/heartbeat_conformance_test.rb
158
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/handshake_heartbeat_group.rb
159
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/status_operation/status_invocation_test.rb
160
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/status_operation_group.rb
161
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/subscription_rejection/reject_subscriptions_test.rb
162
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage/subscription_rejection_group.rb
163
- - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/coverage_group.rb
149
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification/empty_content/empty_conformance_test.rb
150
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification/empty_content_group.rb
151
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification/full_resource_content/full_resource_conformance_test.rb
152
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification/full_resource_content_group.rb
153
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification/id_only_content/id_only_conformance_test.rb
154
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification/id_only_content_group.rb
155
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/event_notification_group.rb
156
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/handshake_heartbeat/handshake_conformance_test.rb
157
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/handshake_heartbeat/heartbeat_conformance_test.rb
158
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/handshake_heartbeat_group.rb
159
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/status_operation/status_invocation_test.rb
160
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/status_operation_group.rb
161
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/subscription_rejection/reject_subscriptions_test.rb
162
+ - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/subscription_rejection_group.rb
164
163
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/workflow_group.rb
165
164
  - lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server_suite.rb
166
165
  - lib/subscriptions_test_kit/tags.rb
@@ -1,26 +0,0 @@
1
- require_relative 'coverage/capability_statement_group'
2
- require_relative 'coverage/event_notification_group'
3
- require_relative 'coverage/handshake_heartbeat_group'
4
- require_relative 'coverage/status_operation_group'
5
- require_relative 'coverage/subscription_rejection_group'
6
-
7
- module SubscriptionsTestKit
8
- module SubscriptionsR5BackportR4Server
9
- module Coverage
10
- class GroupForCoverage < Inferno::TestGroup
11
- id :subscriptions_r5_backport_r4_server_coverage
12
- title 'Demonstrate coverage of all Subscription Backport IG requirements'
13
- description %(
14
- Demonstrate that the server covers all requirements placed on
15
- servers by the IG.
16
- )
17
-
18
- group from: :subscriptions_r5_backport_r4_server_capability_statement
19
- group from: :subscriptions_r5_backport_r4_server_event_notification
20
- group from: :subscriptions_r5_backport_r4_server_handshake_heartbeat
21
- group from: :subscriptions_r5_backport_r4_server_status_operation
22
- group from: :subscriptions_r5_backport_r4_server_subscription_rejection
23
- end
24
- end
25
- end
26
- end