inferno_core 1.3.1 → 1.4.0
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/bin/inferno +1 -0
- data/lib/inferno/apps/web/serializers/test.rb +1 -0
- data/lib/inferno/apps/web/serializers/test_run.rb +1 -0
- data/lib/inferno/dsl/result_collection.rb +2 -2
- data/lib/inferno/dsl/runnable.rb +17 -2
- data/lib/inferno/entities/input.rb +2 -2
- data/lib/inferno/public/assets.json +0 -1
- data/lib/inferno/public/bundle.js +34 -34
- data/lib/inferno/public/bundle.js.LICENSE.txt +1 -1
- data/lib/inferno/version.rb +1 -1
- metadata +22 -11
- data/lib/inferno/public/237.bundle.js +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a163cd0cd6cb690862f1ca6b4e0fbc3650bcae7c42a87b1a46e6d285b78ec86
|
|
4
|
+
data.tar.gz: ae13cde8131be5360a4e73722cf16f45049c44b43ad58b3b6bdfaf02b8320b90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7abc6425c6c5b99b701ab37f47239d1e6fdd1da4af35077a4c5e47d599342cafb522370c0a3d9c206cf9c262e2395c5842bcaae448d1df452233134c5a5a3bbe
|
|
7
|
+
data.tar.gz: '027187aa0285c74352439a4c5e3c2989c922cf54df84f765a7c576732e708ed1a5c3fb29213d5f119061c8cc8fd350fe7650bf850a6f46cddc1a1a54856de411'
|
data/bin/inferno
CHANGED
|
@@ -22,6 +22,7 @@ module Inferno
|
|
|
22
22
|
field :user_runnable?, name: :user_runnable
|
|
23
23
|
field :optional?, name: :optional
|
|
24
24
|
field :simulation_verification?, name: :is_simulation_verification
|
|
25
|
+
field :attestation?, name: :is_attestation
|
|
25
26
|
field :verifies_requirements, if: :field_present?, extractor: RequirementsFilteringExtractor
|
|
26
27
|
end
|
|
27
28
|
end
|
|
@@ -16,6 +16,7 @@ module Inferno
|
|
|
16
16
|
field :test_group_id, if: :field_present?
|
|
17
17
|
field :test_suite_id, if: :field_present?
|
|
18
18
|
field :test_id, if: :field_present?
|
|
19
|
+
field :wait_timeout, if: :field_present?
|
|
19
20
|
|
|
20
21
|
association :results, blueprint: Result
|
|
21
22
|
association :inputs, blueprint: Input
|
|
@@ -63,14 +63,14 @@ module Inferno
|
|
|
63
63
|
|
|
64
64
|
# Returns the results for required runnables
|
|
65
65
|
#
|
|
66
|
-
# @return Array<Inferno::Entities::Result>
|
|
66
|
+
# @return [Array<Inferno::Entities::Result>]
|
|
67
67
|
def required_results
|
|
68
68
|
results.select(&:required?)
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# Returns the results for optional runnables
|
|
72
72
|
#
|
|
73
|
-
# @return Array<Inferno::Entities::Result>
|
|
73
|
+
# @return [Array<Inferno::Entities::Result>]
|
|
74
74
|
def optional_results
|
|
75
75
|
results.select(&:optional?)
|
|
76
76
|
end
|
data/lib/inferno/dsl/runnable.rb
CHANGED
|
@@ -264,7 +264,7 @@ module Inferno
|
|
|
264
264
|
# Set/Get the IDs of requirements verified by this runnable
|
|
265
265
|
# Set with [] to clear the list
|
|
266
266
|
#
|
|
267
|
-
# @param
|
|
267
|
+
# @param requirement_ids [Array<String>]
|
|
268
268
|
# @return [Array<String>] the requirement IDs
|
|
269
269
|
def verifies_requirements(*requirement_ids)
|
|
270
270
|
if requirement_ids.empty?
|
|
@@ -324,6 +324,21 @@ module Inferno
|
|
|
324
324
|
!!@is_simulation_verification
|
|
325
325
|
end
|
|
326
326
|
|
|
327
|
+
# Mark as attestation. Tests are not attestation by default.
|
|
328
|
+
#
|
|
329
|
+
# @param attestation [Boolean]
|
|
330
|
+
# @return [void]
|
|
331
|
+
def attestation(attestation = true) # rubocop:disable Style/OptionalBooleanParameter
|
|
332
|
+
@is_attestation = attestation
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# The test is attestation if true
|
|
336
|
+
#
|
|
337
|
+
# @return [Boolean]
|
|
338
|
+
def attestation?
|
|
339
|
+
!!@is_attestation
|
|
340
|
+
end
|
|
341
|
+
|
|
327
342
|
# @private
|
|
328
343
|
def default_id
|
|
329
344
|
to_s
|
|
@@ -416,7 +431,7 @@ module Inferno
|
|
|
416
431
|
# [Any of the path options available in Hanami
|
|
417
432
|
# Router](https://github.com/hanami/router/tree/f41001d4c3ee9e2d2c7bb142f74b43f8e1d3a265#a-beautiful-dsl)
|
|
418
433
|
# can be used here.
|
|
419
|
-
# @param [Class] a subclass of Inferno::DSL::SuiteEndpoint
|
|
434
|
+
# @param endpoint_class [Class] a subclass of Inferno::DSL::SuiteEndpoint
|
|
420
435
|
# @return [void]
|
|
421
436
|
def suite_endpoint(method, path, endpoint_class)
|
|
422
437
|
route(method, path, endpoint_class)
|
|
@@ -165,8 +165,8 @@ module Inferno
|
|
|
165
165
|
|
|
166
166
|
# @private
|
|
167
167
|
# Merge component hashes.
|
|
168
|
-
# @param
|
|
169
|
-
# @param
|
|
168
|
+
# @param primary_components [Input]
|
|
169
|
+
# @param secondary_components [Input]
|
|
170
170
|
def merge_components(primary_components:, secondary_components:) # rubocop:disable Metrics/CyclomaticComplexity
|
|
171
171
|
primary_components
|
|
172
172
|
.each { |component| component[:name] = component[:name].to_sym }
|