inferno_core 0.2.0.rc1 → 0.2.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inferno/apps/web/index.html.erb +1 -1
- data/lib/inferno/config/application.rb +1 -0
- data/lib/inferno/config/boot/db.rb +3 -1
- data/lib/inferno/dsl/resume_test_route.rb +3 -3
- data/lib/inferno/public/0e0b993fd6ff351f435ff1c2938daf2d.png +0 -0
- data/lib/inferno/public/a5cd39450ab0336db73c5e57228b649d.png +0 -0
- data/lib/inferno/public/assets.json +2 -2
- data/lib/inferno/public/bundle.js +9 -9
- data/lib/inferno/public/logo192.png +0 -0
- data/lib/inferno/version.rb +1 -1
- metadata +4 -3
- data/lib/inferno/public/logo512.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: c7de4730f1060b36bcbf8b21b72adc9594f13de5206396405b07d08f1daa7502
|
4
|
+
data.tar.gz: 653df5e0cc89e54e22003f1e84aa449b6820e99db2a8e4664948f09e3c37b04d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aad804d546fa0e6d019bff63faf128e268d16fe7347d553526ff93bd289bf954ccedd81eefbd04b98bf8c1197b33a3f3529f70eaf7e685a4d160385150206c09
|
7
|
+
data.tar.gz: 93ab6a078198329e36691ace251afba7589c2ceb6c1e56d7678ca6d8b3f5cdfdcf7896acfb0b15ce477a7ec43483a40c3b0d2001d85d966a05d094e5700919f9
|
@@ -40,6 +40,6 @@
|
|
40
40
|
To begin the development, run `npm start` or `yarn start`.
|
41
41
|
To create a production bundle, use `npm run build` or `yarn build`.
|
42
42
|
-->
|
43
|
-
<script src='<%= Inferno::Application['js_host'] %>/bundle.js'></script>
|
43
|
+
<script src='<%= Inferno::Application['js_host'] %>/bundle.js?<%= Inferno::Application['cache_bust_token']%>'></script>
|
44
44
|
</body>
|
45
45
|
</html>
|
@@ -21,6 +21,7 @@ module Inferno
|
|
21
21
|
Application.register('async_jobs', ENV['ASYNC_JOBS'] != 'false')
|
22
22
|
Application.register('inferno_host', ENV.fetch('INFERNO_HOST', 'http://localhost:4567'))
|
23
23
|
Application.register('base_url', URI.join(Application['inferno_host'], base_path).to_s)
|
24
|
+
Application.register('cache_bust_token', SecureRandom.uuid)
|
24
25
|
|
25
26
|
configure do |config|
|
26
27
|
config.root = File.expand_path('../../..', __dir__)
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'sequel'
|
2
|
+
require 'erb'
|
2
3
|
|
3
4
|
Inferno::Application.boot(:db) do
|
4
5
|
init do
|
@@ -9,7 +10,8 @@ Inferno::Application.boot(:db) do
|
|
9
10
|
Sequel::Model.plugin :json_serializer
|
10
11
|
|
11
12
|
config_path = File.expand_path('database.yml', File.join(Dir.pwd, 'config'))
|
12
|
-
|
13
|
+
config_contents = ERB.new(File.read(config_path)).result
|
14
|
+
config = YAML.safe_load(config_contents)[ENV['APP_ENV']]
|
13
15
|
.merge(logger: Inferno::Application['logger'])
|
14
16
|
connection_attempts_remaining = ENV.fetch('MAX_DB_CONNECTION_ATTEMPTS', '10').to_i
|
15
17
|
connection_retry_delay = ENV.fetch('DB_CONNECTION_RETRY_DELAY', '5').to_i
|
@@ -55,7 +55,7 @@ module Inferno
|
|
55
55
|
|
56
56
|
# @private
|
57
57
|
def redirect_route
|
58
|
-
"#{Application['base_url']}/test_sessions/#{test_run.test_session_id}##{
|
58
|
+
"#{Application['base_url']}/test_sessions/#{test_run.test_session_id}##{resume_ui_at_id}"
|
59
59
|
end
|
60
60
|
|
61
61
|
# @private
|
@@ -64,8 +64,8 @@ module Inferno
|
|
64
64
|
end
|
65
65
|
|
66
66
|
# @private
|
67
|
-
def
|
68
|
-
test.parent.id
|
67
|
+
def resume_ui_at_id
|
68
|
+
test_run.test_suite_id || test_run.test_group_id || test.parent.id
|
69
69
|
end
|
70
70
|
|
71
71
|
# @private
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"main.js": "/public/bundle.js",
|
3
3
|
"217.bundle.js": "/public/217.bundle.js",
|
4
|
-
"inferno_logo.png": "/public/
|
5
|
-
"inferno_icon.png": "/public/
|
4
|
+
"inferno_logo.png": "/public/0e0b993fd6ff351f435ff1c2938daf2d.png",
|
5
|
+
"inferno_icon.png": "/public/a5cd39450ab0336db73c5e57228b649d.png"
|
6
6
|
}
|