inferno_core 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/inferno/apps/web/controllers/test_sessions/create.rb +7 -3
- data/lib/inferno/apps/web/router.rb +5 -0
- data/lib/inferno/apps/web/serializers/suite_option.rb +13 -0
- data/lib/inferno/apps/web/serializers/test_group.rb +6 -2
- data/lib/inferno/apps/web/serializers/test_session.rb +5 -3
- data/lib/inferno/apps/web/serializers/test_suite.rb +4 -1
- data/lib/inferno/db/migrations/007_add_suite_options.rb +5 -0
- data/lib/inferno/db/schema.rb +1 -0
- data/lib/inferno/dsl/input_output_handling.rb +20 -0
- data/lib/inferno/dsl/runnable.rb +12 -6
- data/lib/inferno/dsl/suite_option.rb +40 -0
- data/lib/inferno/entities/test.rb +3 -1
- data/lib/inferno/entities/test_group.rb +4 -4
- data/lib/inferno/entities/test_session.rb +28 -0
- data/lib/inferno/entities/test_suite.rb +5 -4
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/repositories/test_sessions.rb +24 -0
- data/lib/inferno/test_runner.rb +1 -1
- data/lib/inferno/version.rb +1 -1
- metadata +22 -7
- data/lib/inferno/public/bg-header-1920x170.png +0 -0
- data/lib/inferno/public/healthit.gov.logo.png +0 -0
@@ -19,6 +19,18 @@ module Inferno
|
|
19
19
|
}
|
20
20
|
end
|
21
21
|
|
22
|
+
def create(params)
|
23
|
+
raw_suite_options = params[:suite_options]
|
24
|
+
suite_options =
|
25
|
+
if raw_suite_options.blank?
|
26
|
+
'[]'
|
27
|
+
else
|
28
|
+
JSON.generate(raw_suite_options.map(&:to_hash))
|
29
|
+
end
|
30
|
+
|
31
|
+
super(params.merge(suite_options: suite_options))
|
32
|
+
end
|
33
|
+
|
22
34
|
def results_for_test_session(test_session_id)
|
23
35
|
test_session_hash =
|
24
36
|
self.class::Model
|
@@ -37,6 +49,18 @@ module Inferno
|
|
37
49
|
end
|
38
50
|
end
|
39
51
|
|
52
|
+
def build_entity(params)
|
53
|
+
suite_options = JSON.parse(params[:suite_options] || '[]').map do |suite_option_hash|
|
54
|
+
suite_option_hash.deep_symbolize_keys!
|
55
|
+
suite_option_hash[:id] = suite_option_hash[:id].to_sym
|
56
|
+
DSL::SuiteOption.new(suite_option_hash)
|
57
|
+
end
|
58
|
+
|
59
|
+
final_params = params.merge(suite_options: suite_options)
|
60
|
+
add_non_db_entities(final_params)
|
61
|
+
entity_class.new(final_params)
|
62
|
+
end
|
63
|
+
|
40
64
|
class Model < Sequel::Model(db)
|
41
65
|
include Import[test_suites_repo: 'repositories.test_suites']
|
42
66
|
|
data/lib/inferno/test_runner.rb
CHANGED
data/lib/inferno/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferno_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
8
8
|
- Robert Scanlon
|
9
9
|
- Chase Zhou
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -68,6 +68,20 @@ dependencies:
|
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 0.12.0
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: dry-container
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - '='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.8.0
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - '='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.8.0
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
86
|
name: dry-system
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -492,6 +506,7 @@ files:
|
|
492
506
|
- lib/inferno/apps/web/serializers/result.rb
|
493
507
|
- lib/inferno/apps/web/serializers/serializer.rb
|
494
508
|
- lib/inferno/apps/web/serializers/session_data.rb
|
509
|
+
- lib/inferno/apps/web/serializers/suite_option.rb
|
495
510
|
- lib/inferno/apps/web/serializers/test.rb
|
496
511
|
- lib/inferno/apps/web/serializers/test_group.rb
|
497
512
|
- lib/inferno/apps/web/serializers/test_run.rb
|
@@ -511,6 +526,7 @@ files:
|
|
511
526
|
- lib/inferno/db/migrations/004_add_request_results_table.rb
|
512
527
|
- lib/inferno/db/migrations/005_add_updated_at_index_to_results.rb
|
513
528
|
- lib/inferno/db/migrations/006_remove_unused_tables.rb
|
529
|
+
- lib/inferno/db/migrations/007_add_suite_options.rb
|
514
530
|
- lib/inferno/db/schema.rb
|
515
531
|
- lib/inferno/dsl.rb
|
516
532
|
- lib/inferno/dsl/assertions.rb
|
@@ -526,6 +542,7 @@ files:
|
|
526
542
|
- lib/inferno/dsl/results.rb
|
527
543
|
- lib/inferno/dsl/resume_test_route.rb
|
528
544
|
- lib/inferno/dsl/runnable.rb
|
545
|
+
- lib/inferno/dsl/suite_option.rb
|
529
546
|
- lib/inferno/dsl/tcp_exception_handler.rb
|
530
547
|
- lib/inferno/entities.rb
|
531
548
|
- lib/inferno/entities/attributes.rb
|
@@ -553,11 +570,9 @@ files:
|
|
553
570
|
- lib/inferno/public/217.bundle.js
|
554
571
|
- lib/inferno/public/a5cd39450ab0336db73c5e57228b649d.png
|
555
572
|
- lib/inferno/public/assets.json
|
556
|
-
- lib/inferno/public/bg-header-1920x170.png
|
557
573
|
- lib/inferno/public/bundle.js
|
558
574
|
- lib/inferno/public/bundle.js.LICENSE.txt
|
559
575
|
- lib/inferno/public/favicon.ico
|
560
|
-
- lib/inferno/public/healthit.gov.logo.png
|
561
576
|
- lib/inferno/public/logo192.png
|
562
577
|
- lib/inferno/repositories.rb
|
563
578
|
- lib/inferno/repositories/headers.rb
|
@@ -599,7 +614,7 @@ metadata:
|
|
599
614
|
homepage_uri: https://github.com/inferno-framework/inferno-core
|
600
615
|
source_code_uri: https://github.com/inferno-framework/inferno-core
|
601
616
|
changelog_uri: https://github.com/inferno-framework/inferno-core/blob/main/CHANGELOG.md
|
602
|
-
post_install_message:
|
617
|
+
post_install_message:
|
603
618
|
rdoc_options: []
|
604
619
|
require_paths:
|
605
620
|
- lib
|
@@ -616,7 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
616
631
|
version: '0'
|
617
632
|
requirements: []
|
618
633
|
rubygems_version: 3.1.6
|
619
|
-
signing_key:
|
634
|
+
signing_key:
|
620
635
|
specification_version: 4
|
621
636
|
summary: Inferno Core is an open source tool for testing data exchanges enabled by
|
622
637
|
the FHIR standand
|
Binary file
|
Binary file
|