inferno_core 0.3.7 → 0.3.10
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_runs/create.rb +3 -2
- data/lib/inferno/apps/web/controllers/test_runs/show.rb +4 -1
- data/lib/inferno/apps/web/serializers/test_group.rb +3 -1
- data/lib/inferno/apps/web/serializers/test_run.rb +3 -1
- data/lib/inferno/apps/web/serializers/test_suite.rb +6 -1
- data/lib/inferno/entities/test_run.rb +2 -2
- data/lib/inferno/entities/test_suite.rb +6 -0
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/version.rb +1 -1
- metadata +2 -4
- data/lib/inferno/public/72a5cd989e6aea904540824ec865a0f8.png +0 -0
- data/lib/inferno/public/e09b16f5cb645eb05f90c8f38f3409fb.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3001d2c9b156117f88ae751c8e2f81416c9b37249d8a0bdce7de759a52bde543
|
4
|
+
data.tar.gz: b2dc6e6d2168c11eee09326d19459fbd202c92cddc871925de5283250cdb7dde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e16fda0221af1b289a1fb2cd82fa011723cef4c0e6cb443c3ec730cb527e2cfb1be11f4a5ff87093709dadb01ad0bd2551bfb0e5fa1a7b2c826a93e1e4e8c7af
|
7
|
+
data.tar.gz: 78a0c14897fd20e3273cd0a4f45a5c84c9d4f5ddc79beb9afca7e9a0a938f5144729e6e2e3c5588d127bcd87dfb5ca291e807a8e7688089dc99b4f3d13cc7742
|
@@ -19,9 +19,10 @@ module Inferno
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def persist_inputs(params, test_run)
|
22
|
+
available_inputs = test_run.runnable.available_inputs
|
22
23
|
params[:inputs]&.each do |input_params|
|
23
24
|
input =
|
24
|
-
|
25
|
+
available_inputs
|
25
26
|
.find { |_, runnable_input| runnable_input.name == input_params[:name] }
|
26
27
|
&.last
|
27
28
|
|
@@ -59,7 +60,7 @@ module Inferno
|
|
59
60
|
|
60
61
|
test_run = repo.create(create_params(params).merge(status: 'queued'))
|
61
62
|
|
62
|
-
self.body = serialize(test_run)
|
63
|
+
self.body = serialize(test_run, suite_options: test_session.suite_options)
|
63
64
|
|
64
65
|
persist_inputs(params, test_run)
|
65
66
|
|
@@ -3,6 +3,8 @@ module Inferno
|
|
3
3
|
module Controllers
|
4
4
|
module TestRuns
|
5
5
|
class Show < Controller
|
6
|
+
include Import[test_sessions_repo: 'repositories.test_sessions']
|
7
|
+
|
6
8
|
def call(params)
|
7
9
|
test_run = repo.find(params[:id])
|
8
10
|
halt 404 if test_run.nil?
|
@@ -17,7 +19,8 @@ module Inferno
|
|
17
19
|
end
|
18
20
|
end
|
19
21
|
|
20
|
-
|
22
|
+
test_session = test_sessions_repo.find(test_run.test_session_id)
|
23
|
+
self.body = serialize(test_run, suite_options: test_session.suite_options)
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
@@ -10,11 +10,13 @@ module Inferno
|
|
10
10
|
field :description
|
11
11
|
field :short_description
|
12
12
|
field :input_instructions
|
13
|
-
field :test_count
|
14
13
|
field :run_as_group?, name: :run_as_group
|
15
14
|
field :user_runnable?, name: :user_runnable
|
16
15
|
field :optional?, name: :optional
|
17
16
|
|
17
|
+
field :test_count do |group, options|
|
18
|
+
group.test_count(options[:suite_options])
|
19
|
+
end
|
18
20
|
field :test_groups do |group, options|
|
19
21
|
suite_options = options[:suite_options]
|
20
22
|
TestGroup.render_as_hash(group.groups(suite_options), suite_options: suite_options)
|
@@ -6,7 +6,9 @@ module Inferno
|
|
6
6
|
field :test_session_id
|
7
7
|
|
8
8
|
field :status
|
9
|
-
field :test_count
|
9
|
+
field :test_count do |test_run, options|
|
10
|
+
test_run.test_count(options[:suite_options])
|
11
|
+
end
|
10
12
|
|
11
13
|
field :test_group_id, if: :field_present?
|
12
14
|
field :test_suite_id, if: :field_present?
|
@@ -9,9 +9,14 @@ module Inferno
|
|
9
9
|
field :description
|
10
10
|
field :short_description
|
11
11
|
field :input_instructions
|
12
|
-
field :test_count
|
13
12
|
field :version
|
14
13
|
field :links
|
14
|
+
field :suite_summary
|
15
|
+
|
16
|
+
field :test_count do |suite, options|
|
17
|
+
suite.test_count(options[:suite_options])
|
18
|
+
end
|
19
|
+
|
15
20
|
association :suite_options, blueprint: SuiteOption
|
16
21
|
association :presets, view: :summary, blueprint: Preset
|
17
22
|
end
|
@@ -68,8 +68,8 @@ module Inferno
|
|
68
68
|
super.merge(test_session: test_session).compact
|
69
69
|
end
|
70
70
|
|
71
|
-
def test_count
|
72
|
-
@test_count ||= runnable.test_count
|
71
|
+
def test_count(selected_suite_options = [])
|
72
|
+
@test_count ||= runnable.test_count(selected_suite_options)
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|