Skip to content

Commit

Permalink
S0098 check that attributes are not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Dec 19, 2024
1 parent 0394abf commit d29105f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spec/site/tlc/signal_plans_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,17 @@
# 3. Expect status response before timeout
specify 'config is read with S0098', sxl: '>=1.0.15' do |example|
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "config of traffic parameters",
result = request_status_and_confirm site, "config of traffic parameters",
{ S0098: [:timestamp,:config,:version] }

# the site should have stored the received status
message = result[:collector].messages.first
expect(message).to be_an(RSMP::StatusResponse)
values = message.attributes['sS'].map { |item| [item['n'], item['s']] }.to_h

expect(values['timestamp']).not_to be_empty
expect(values['config']).not_to be_empty
expect(values['timestamp']).not_to be_empty
end
end

Expand Down

0 comments on commit d29105f

Please sign in to comment.