inferno_core 0.4.10 → 0.4.12
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/results/index.rb +1 -1
- data/lib/inferno/apps/web/router.rb +1 -1
- data/lib/inferno/dsl/input_output_handling.rb +3 -2
- data/lib/inferno/exceptions.rb +2 -2
- data/lib/inferno/public/217.bundle.js +1 -1
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/public/bundle.js.LICENSE.txt +39 -46
- data/lib/inferno/repositories/session_data.rb +39 -11
- data/lib/inferno/utils/preset_processor.rb +6 -0
- data/lib/inferno/version.rb +1 -1
- metadata +2 -2
@@ -1,9 +1,3 @@
|
|
1
|
-
/*
|
2
|
-
object-assign
|
3
|
-
(c) Sindre Sorhus
|
4
|
-
@license MIT
|
5
|
-
*/
|
6
|
-
|
7
1
|
/*!
|
8
2
|
* Determine if an object is a Buffer
|
9
3
|
*
|
@@ -13,54 +7,50 @@ object-assign
|
|
13
7
|
|
14
8
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
15
9
|
|
10
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
11
|
+
|
16
12
|
/**
|
17
|
-
* @
|
13
|
+
* @license React
|
14
|
+
* react-dom.production.min.js
|
18
15
|
*
|
19
|
-
* Copyright (c)
|
16
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
20
17
|
*
|
21
18
|
* This source code is licensed under the MIT license found in the
|
22
|
-
* LICENSE
|
23
|
-
*
|
24
|
-
* @license MIT
|
25
|
-
*/
|
26
|
-
|
27
|
-
/**
|
28
|
-
* A better abstraction over CSS.
|
29
|
-
*
|
30
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
31
|
-
* @website https://github.com/cssinjs/jss
|
32
|
-
* @license MIT
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
33
20
|
*/
|
34
21
|
|
35
22
|
/**
|
36
|
-
* React
|
23
|
+
* @license React
|
24
|
+
* react-is.production.min.js
|
37
25
|
*
|
38
|
-
* Copyright (c)
|
26
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
39
27
|
*
|
40
28
|
* This source code is licensed under the MIT license found in the
|
41
|
-
* LICENSE
|
42
|
-
*
|
43
|
-
* @license MIT
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
44
30
|
*/
|
45
31
|
|
46
32
|
/**
|
47
|
-
* React
|
33
|
+
* @license React
|
34
|
+
* react-jsx-runtime.production.min.js
|
48
35
|
*
|
49
|
-
* Copyright (c)
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
50
37
|
*
|
51
38
|
* This source code is licensed under the MIT license found in the
|
52
|
-
* LICENSE
|
53
|
-
*
|
54
|
-
* @license MIT
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
55
40
|
*/
|
56
41
|
|
57
|
-
/**
|
42
|
+
/**
|
43
|
+
* @license React
|
44
|
+
* react.production.min.js
|
45
|
+
*
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
58
47
|
*
|
59
48
|
* This source code is licensed under the MIT license found in the
|
60
49
|
* LICENSE file in the root directory of this source tree.
|
61
50
|
*/
|
62
51
|
|
63
|
-
/**
|
52
|
+
/**
|
53
|
+
* @license React
|
64
54
|
* scheduler.production.min.js
|
65
55
|
*
|
66
56
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
@@ -69,35 +59,38 @@ object-assign
|
|
69
59
|
* LICENSE file in the root directory of this source tree.
|
70
60
|
*/
|
71
61
|
|
72
|
-
/**
|
73
|
-
*
|
74
|
-
*
|
75
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
62
|
+
/**
|
63
|
+
* @mui/styled-engine v5.11.11
|
76
64
|
*
|
65
|
+
* @license MIT
|
77
66
|
* This source code is licensed under the MIT license found in the
|
78
67
|
* LICENSE file in the root directory of this source tree.
|
79
68
|
*/
|
80
69
|
|
81
|
-
/**
|
82
|
-
*
|
70
|
+
/**
|
71
|
+
* @remix-run/router v1.4.0
|
83
72
|
*
|
84
|
-
* Copyright (c)
|
73
|
+
* Copyright (c) Remix Software Inc.
|
85
74
|
*
|
86
75
|
* This source code is licensed under the MIT license found in the
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
76
|
+
* LICENSE.md file in the root directory of this source tree.
|
77
|
+
*
|
78
|
+
* @license MIT
|
88
79
|
*/
|
89
80
|
|
90
|
-
/**
|
91
|
-
*
|
81
|
+
/**
|
82
|
+
* React Router DOM v6.9.0
|
92
83
|
*
|
93
|
-
* Copyright (c)
|
84
|
+
* Copyright (c) Remix Software Inc.
|
94
85
|
*
|
95
86
|
* This source code is licensed under the MIT license found in the
|
96
|
-
* LICENSE file in the root directory of this source tree.
|
87
|
+
* LICENSE.md file in the root directory of this source tree.
|
88
|
+
*
|
89
|
+
* @license MIT
|
97
90
|
*/
|
98
91
|
|
99
|
-
/** @license React
|
100
|
-
* react-
|
92
|
+
/** @license React v16.13.1
|
93
|
+
* react-is.production.min.js
|
101
94
|
*
|
102
95
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
103
96
|
*
|
@@ -106,7 +99,7 @@ object-assign
|
|
106
99
|
*/
|
107
100
|
|
108
101
|
/** @license React v17.0.2
|
109
|
-
* react.production.min.js
|
102
|
+
* react-is.production.min.js
|
110
103
|
*
|
111
104
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
112
105
|
*
|
@@ -30,6 +30,8 @@ module Inferno
|
|
30
30
|
case type.to_s
|
31
31
|
when 'oauth_credentials'
|
32
32
|
DSL::OAuthCredentials.new(JSON.parse(raw_value || '{}'))
|
33
|
+
when 'checkbox'
|
34
|
+
JSON.parse(raw_value || '[]')
|
33
35
|
else
|
34
36
|
raw_value
|
35
37
|
end
|
@@ -58,23 +60,49 @@ module Inferno
|
|
58
60
|
case params[:type]&.to_s
|
59
61
|
when 'text', 'textarea', 'radio'
|
60
62
|
params[:value].to_s
|
63
|
+
when 'checkbox'
|
64
|
+
serialize_checkbox_input(params)
|
61
65
|
when 'oauth_credentials'
|
62
|
-
|
63
|
-
if params[:value].is_a? String
|
64
|
-
DSL::OAuthCredentials.new(JSON.parse(params[:value]))
|
65
|
-
elsif !params[:value].is_a? DSL::OAuthCredentials
|
66
|
-
raise Exceptions::BadSessionDataType.new(params[:name], DSL::OAuthCredentials, params[:value].class)
|
67
|
-
else
|
68
|
-
params[:value]
|
69
|
-
end
|
70
|
-
|
71
|
-
credentials.name = params[:name]
|
72
|
-
credentials.to_s
|
66
|
+
serialize_oauth_credentials_input(params)
|
73
67
|
else
|
74
68
|
raise Exceptions::UnknownSessionDataType, params
|
75
69
|
end
|
76
70
|
end
|
77
71
|
|
72
|
+
def serialize_checkbox_input(params)
|
73
|
+
if params[:value].is_a?(String)
|
74
|
+
params[:value]
|
75
|
+
elsif params[:value].nil?
|
76
|
+
'[]'
|
77
|
+
elsif params[:value].is_a?(Array)
|
78
|
+
params[:value].to_json
|
79
|
+
else
|
80
|
+
raise Exceptions::BadSessionDataType.new(
|
81
|
+
params[:name],
|
82
|
+
'JSON String or Array',
|
83
|
+
params[:value].class
|
84
|
+
)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def serialize_oauth_credentials_input(params)
|
89
|
+
credentials =
|
90
|
+
if params[:value].is_a? String
|
91
|
+
DSL::OAuthCredentials.new(JSON.parse(params[:value]))
|
92
|
+
elsif !params[:value].is_a? DSL::OAuthCredentials
|
93
|
+
raise Exceptions::BadSessionDataType.new(
|
94
|
+
params[:name],
|
95
|
+
DSL::OAuthCredentials.name,
|
96
|
+
params[:value].class
|
97
|
+
)
|
98
|
+
else
|
99
|
+
params[:value]
|
100
|
+
end
|
101
|
+
|
102
|
+
credentials.name = params[:name]
|
103
|
+
credentials.to_s
|
104
|
+
end
|
105
|
+
|
78
106
|
class Model < Sequel::Model(db)
|
79
107
|
many_to_one :test_session, class: 'Inferno::Repositories::TestSessions::Model', key: :test_session_id
|
80
108
|
end
|
@@ -19,11 +19,17 @@ module Inferno
|
|
19
19
|
def processed_inputs
|
20
20
|
preset.inputs
|
21
21
|
.map { |input| input_for_options(input) }
|
22
|
+
.compact
|
22
23
|
end
|
23
24
|
|
24
25
|
private
|
25
26
|
|
26
27
|
def input_for_options(input)
|
28
|
+
if suite_inputs[input[:name].to_sym].nil?
|
29
|
+
Inferno::Application['logger'].warn("Unknown input #{input[:name]} in preset #{preset.id}")
|
30
|
+
return
|
31
|
+
end
|
32
|
+
|
27
33
|
{
|
28
34
|
name: input[:name],
|
29
35
|
value: value(input),
|
data/lib/inferno/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferno_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|