rsmp-validator 0.3.2 → 0.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/config/secrets_example.yaml +2 -2
- data/config/simulator/supervisor.yaml +1 -1
- data/config/simulator/tlc.yaml +2 -1
- data/config/{cross_rs4s.yaml → sites/cross_rs4s.yaml} +5 -5
- data/config/sites/cross_rs5.yaml +62 -0
- data/config/{lightmotion_satellite.yaml → sites/lightmotion_satellite.yaml} +1 -1
- data/config/{swarco_itc3.yaml → sites/swarco_itc3.yaml} +3 -4
- data/config/validator.rb +1 -0
- data/config/validator_example.yaml +2 -2
- data/lib/rsmp/validator/buffer_replay_queue.rb +37 -0
- data/lib/rsmp/validator/cli/config_cli.rb +34 -9
- data/lib/rsmp/validator/config_check.rb +21 -2
- data/lib/rsmp/validator/config_normalizer.rb +3 -2
- data/lib/rsmp/validator/configuration/loader.rb +7 -13
- data/lib/rsmp/validator/configuration/secrets.rb +7 -3
- data/lib/rsmp/validator/configuration/sxls_override.rb +19 -4
- data/lib/rsmp/validator/configuration/test_requirements.rb +63 -0
- data/lib/rsmp/validator/configuration/version_normalization.rb +10 -5
- data/lib/rsmp/validator/configuration.rb +2 -9
- data/lib/rsmp/validator/helpers/alarms.rb +3 -3
- data/lib/rsmp/validator/helpers/connection.rb +14 -14
- data/lib/rsmp/validator/helpers/expectations.rb +35 -0
- data/lib/rsmp/validator/helpers/input.rb +3 -3
- data/lib/rsmp/validator/helpers/signal_plans.rb +11 -16
- data/lib/rsmp/validator/helpers/signal_priority.rb +23 -22
- data/lib/rsmp/validator/lifecycle.rb +2 -0
- data/lib/rsmp/validator/missing_configuration.rb +10 -0
- data/lib/rsmp/validator/options/site_test_options.rb +1 -1
- data/lib/rsmp/validator/options/supervisor_test_options.rb +1 -1
- data/lib/rsmp/validator/site_tester.rb +4 -19
- data/lib/rsmp/validator/version.rb +1 -1
- data/lib/rsmp/validator.rb +1 -0
- data/schemas/site_test.json +0 -4
- data/schemas/supervisor_test.json +0 -2
- data/schemas/test_config/common.json +21 -0
- data/schemas/test_config/core/3.1.4.json +14 -0
- data/schemas/test_config/core/3.1.5.json +14 -0
- data/schemas/test_config/core.json +33 -0
- data/schemas/test_config/tlc/1.0.15.json +13 -0
- data/schemas/test_config/tlc/1.0.7.json +67 -0
- data/schemas/test_config/tlc/1.0.8.json +13 -0
- data/schemas/test_config/tlc/1.1.0.json +13 -0
- data/schemas/test_config/versions.json +28 -0
- data/test/site/core/aggregated_status_spec.rb +28 -6
- data/test/site/core/message_buffer_spec.rb +90 -75
- data/test/site/tlc/alarm_spec.rb +9 -5
- data/test/site/tlc/clock_spec.rb +9 -9
- data/test/site/tlc/detector_logics_spec.rb +11 -9
- data/test/site/tlc/emergency_routes_spec.rb +4 -4
- data/test/site/tlc/invalid_command_spec.rb +9 -8
- data/test/site/tlc/invalid_status_spec.rb +8 -7
- data/test/site/tlc/modes_spec.rb +21 -21
- data/test/site/tlc/signal_groups_spec.rb +10 -10
- data/test/site/tlc/signal_plans_spec.rb +21 -21
- data/test/site/tlc/signal_priority_spec.rb +5 -5
- data/test/site/tlc/subscribe_spec.rb +31 -26
- data/test/site/tlc/system_spec.rb +11 -11
- data/test/site/tlc/traffic_data_spec.rb +12 -10
- data/test/site/tlc/traffic_situations_spec.rb +3 -3
- data/test/supervisor/aggregated_status_spec.rb +4 -0
- metadata +25 -11
- /data/config/{gem_tlc.yaml → sites/gem_tlc.yaml} +0 -0
- /data/config/{gem_tlc_secrets.yaml → sites/gem_tlc_secrets.yaml} +0 -0
- /data/config/{kapsch_etx.yaml → sites/kapsch_etx.yaml} +0 -0
- /data/config/{semaforica_cartesio.yaml → sites/semaforica_cartesio.yaml} +0 -0
- /data/config/{gem_supervisor.yaml → supervisors/gem_supervisor.yaml} +0 -0
- /data/config/{tecsen_tmacs_supervisor.yaml → supervisors/tecsen_tmacs_supervisor.yaml} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
describe 'Site::Tlc::TrafficSituations' do
|
|
2
2
|
# Verify status S0015 current traffic situation
|
|
3
3
|
#
|
|
4
|
-
# 1. Given the
|
|
4
|
+
# 1. Given the site is connected
|
|
5
5
|
# 2. Request status
|
|
6
6
|
# 3. Expect status response before timeout
|
|
7
7
|
it 'is read with S0015' do
|
|
@@ -18,7 +18,7 @@ describe 'Site::Tlc::TrafficSituations' do
|
|
|
18
18
|
|
|
19
19
|
# Verify that we change traffic situation
|
|
20
20
|
#
|
|
21
|
-
# 1. Given the
|
|
21
|
+
# 1. Given the site is connected
|
|
22
22
|
# 2. Verify that there is a RSMP::Validator.get_config('validator') with a traffic situation
|
|
23
23
|
# 3. Send the control command to switch traffic situation for each traffic situation
|
|
24
24
|
# 4. Wait for status "Current traffic situation" = requested traffic situation
|
|
@@ -38,7 +38,7 @@ describe 'Site::Tlc::TrafficSituations' do
|
|
|
38
38
|
|
|
39
39
|
# Verify status S0019 number of traffic situations
|
|
40
40
|
#
|
|
41
|
-
# 1. Given the
|
|
41
|
+
# 1. Given the site is connected
|
|
42
42
|
# 2. Request status
|
|
43
43
|
# 3. Expect status response before timeout
|
|
44
44
|
it 'list size is read with S0019' do
|
|
@@ -2,6 +2,10 @@ describe 'Supervisor' do
|
|
|
2
2
|
# Validate behaviour related to aggregated status messages
|
|
3
3
|
describe 'Aggregated Status' do
|
|
4
4
|
# Validate that the supervisor responds correctly when we send an aggregated status message
|
|
5
|
+
#
|
|
6
|
+
# 1. Given the supervisor is connected
|
|
7
|
+
# 2. When we send an aggregated status with a high priority alarm
|
|
8
|
+
# 3. Then the supervisor should acknowledge the message
|
|
5
9
|
it 'receives aggregated status' do
|
|
6
10
|
with_supervisor(:connected) do |supervisor_proxy|
|
|
7
11
|
component = supervisor_proxy.node.find_component RSMP::Validator.get_config('main_component')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rsmp-validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RSMP Nordic
|
|
@@ -100,21 +100,22 @@ executables:
|
|
|
100
100
|
extensions: []
|
|
101
101
|
extra_rdoc_files: []
|
|
102
102
|
files:
|
|
103
|
-
- config/cross_rs4s.yaml
|
|
104
|
-
- config/gem_supervisor.yaml
|
|
105
|
-
- config/gem_tlc.yaml
|
|
106
|
-
- config/gem_tlc_secrets.yaml
|
|
107
|
-
- config/kapsch_etx.yaml
|
|
108
|
-
- config/lightmotion_satellite.yaml
|
|
109
103
|
- config/secrets.yaml
|
|
110
104
|
- config/secrets_example.yaml
|
|
111
|
-
- config/semaforica_cartesio.yaml
|
|
112
105
|
- config/simulator/node_log.yaml
|
|
113
106
|
- config/simulator/supervisor.yaml
|
|
114
107
|
- config/simulator/tlc.yaml
|
|
108
|
+
- config/sites/cross_rs4s.yaml
|
|
109
|
+
- config/sites/cross_rs5.yaml
|
|
110
|
+
- config/sites/gem_tlc.yaml
|
|
111
|
+
- config/sites/gem_tlc_secrets.yaml
|
|
112
|
+
- config/sites/kapsch_etx.yaml
|
|
113
|
+
- config/sites/lightmotion_satellite.yaml
|
|
114
|
+
- config/sites/semaforica_cartesio.yaml
|
|
115
|
+
- config/sites/swarco_itc3.yaml
|
|
116
|
+
- config/supervisors/gem_supervisor.yaml
|
|
117
|
+
- config/supervisors/tecsen_tmacs_supervisor.yaml
|
|
115
118
|
- config/sus.rb
|
|
116
|
-
- config/swarco_itc3.yaml
|
|
117
|
-
- config/tecsen_tmacs_supervisor.yaml
|
|
118
119
|
- config/validator.rb
|
|
119
120
|
- config/validator.yaml
|
|
120
121
|
- config/validator_example.yaml
|
|
@@ -127,6 +128,7 @@ files:
|
|
|
127
128
|
- lib/rsmp/validator/auto_node.rb
|
|
128
129
|
- lib/rsmp/validator/auto_site.rb
|
|
129
130
|
- lib/rsmp/validator/auto_supervisor.rb
|
|
131
|
+
- lib/rsmp/validator/buffer_replay_queue.rb
|
|
130
132
|
- lib/rsmp/validator/cli/config_cli.rb
|
|
131
133
|
- lib/rsmp/validator/cli/entrypoint.rb
|
|
132
134
|
- lib/rsmp/validator/cli/run_options.rb
|
|
@@ -144,11 +146,13 @@ files:
|
|
|
144
146
|
- lib/rsmp/validator/configuration/loader.rb
|
|
145
147
|
- lib/rsmp/validator/configuration/secrets.rb
|
|
146
148
|
- lib/rsmp/validator/configuration/sxls_override.rb
|
|
149
|
+
- lib/rsmp/validator/configuration/test_requirements.rb
|
|
147
150
|
- lib/rsmp/validator/configuration/validation.rb
|
|
148
151
|
- lib/rsmp/validator/configuration/version_normalization.rb
|
|
149
152
|
- lib/rsmp/validator/helpers/alarms.rb
|
|
150
153
|
- lib/rsmp/validator/helpers/clock.rb
|
|
151
154
|
- lib/rsmp/validator/helpers/connection.rb
|
|
155
|
+
- lib/rsmp/validator/helpers/expectations.rb
|
|
152
156
|
- lib/rsmp/validator/helpers/handshake.rb
|
|
153
157
|
- lib/rsmp/validator/helpers/input.rb
|
|
154
158
|
- lib/rsmp/validator/helpers/security.rb
|
|
@@ -158,6 +162,7 @@ files:
|
|
|
158
162
|
- lib/rsmp/validator/helpers/status.rb
|
|
159
163
|
- lib/rsmp/validator/lifecycle.rb
|
|
160
164
|
- lib/rsmp/validator/log.rb
|
|
165
|
+
- lib/rsmp/validator/missing_configuration.rb
|
|
161
166
|
- lib/rsmp/validator/mode_detection.rb
|
|
162
167
|
- lib/rsmp/validator/options/site_test_options.rb
|
|
163
168
|
- lib/rsmp/validator/options/supervisor_test_options.rb
|
|
@@ -168,6 +173,15 @@ files:
|
|
|
168
173
|
- lib/rsmp/validator/version_filter.rb
|
|
169
174
|
- schemas/site_test.json
|
|
170
175
|
- schemas/supervisor_test.json
|
|
176
|
+
- schemas/test_config/common.json
|
|
177
|
+
- schemas/test_config/core.json
|
|
178
|
+
- schemas/test_config/core/3.1.4.json
|
|
179
|
+
- schemas/test_config/core/3.1.5.json
|
|
180
|
+
- schemas/test_config/tlc/1.0.15.json
|
|
181
|
+
- schemas/test_config/tlc/1.0.7.json
|
|
182
|
+
- schemas/test_config/tlc/1.0.8.json
|
|
183
|
+
- schemas/test_config/tlc/1.1.0.json
|
|
184
|
+
- schemas/test_config/versions.json
|
|
171
185
|
- test/site/core/aggregated_status_spec.rb
|
|
172
186
|
- test/site/core/connect_spec.rb
|
|
173
187
|
- test/site/core/core_spec.rb
|
|
@@ -213,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
213
227
|
- !ruby/object:Gem::Version
|
|
214
228
|
version: '0'
|
|
215
229
|
requirements: []
|
|
216
|
-
rubygems_version: 4.0.
|
|
230
|
+
rubygems_version: 4.0.20
|
|
217
231
|
specification_version: 4
|
|
218
232
|
summary: RSMP compliance test suite
|
|
219
233
|
test_files: []
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|