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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '04907a50c17164b399f516b86d3a7c5b1ef96190778040b40229b317cf26854e'
4
- data.tar.gz: f0733a73b174e304aea2ac09e53b923828afcfe41bb2c0624a9e93eaf6472e1a
3
+ metadata.gz: 8a163cd0cd6cb690862f1ca6b4e0fbc3650bcae7c42a87b1a46e6d285b78ec86
4
+ data.tar.gz: ae13cde8131be5360a4e73722cf16f45049c44b43ad58b3b6bdfaf02b8320b90
5
5
  SHA512:
6
- metadata.gz: 18a59073c3bca8a42747492631fe1e76bd80a28d6fd795fe06f5c95380de7a08947705bfab7a6b3158b37f3109b5ceb6ddc69e85964399a8ca82408b437b3ae6
7
- data.tar.gz: 9b6b5c1b4a77b77f3cdea0cabeaadf1440f669c342c95d0fc2f8ae6cbbb1adbd5e0b989f81e98eb720e9afd02db2cae7374becf3b7d858f657cd30ea870f2caf
6
+ metadata.gz: 7abc6425c6c5b99b701ab37f47239d1e6fdd1da4af35077a4c5e47d599342cafb522370c0a3d9c206cf9c262e2395c5842bcaae448d1df452233134c5a5a3bbe
7
+ data.tar.gz: '027187aa0285c74352439a4c5e3c2989c922cf54df84f765a7c576732e708ed1a5c3fb29213d5f119061c8cc8fd350fe7650bf850a6f46cddc1a1a54856de411'
data/bin/inferno CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'bundler/setup'
3
4
  require 'pry'
4
5
  require_relative '../lib/inferno/config/application'
5
6
  require_relative '../lib/inferno/apps/cli'
@@ -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
@@ -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 requirements [Array<String>]
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 primary_source [Input]
169
- # @param secondary_source [Input]
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 }
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "main.js": "/public/bundle.js",
3
- "237.bundle.js": "/public/237.bundle.js",
4
3
  "inferno_logo.png": "/public/0e0b993fd6ff351f435ff1c2938daf2d.png",
5
4
  "inferno_icon.png": "/public/a5cd39450ab0336db73c5e57228b649d.png"
6
5
  }