Skip to content

Commit

Permalink
S0004 extendedoutputstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Nov 29, 2023
1 parent 4db550d commit 01df757
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion spec/site/tlc/io_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,25 @@
end

describe 'Output' do
# Verify that output status can be read with S0004
# Verify that output status can be read with S0004, extended output status
# 1. Given the site is connected
# 2. When we subscribe to S0004
# 3. We should receive a status updated
# 4. And the outputstatus attribute should be a digit string
specify 'is read with S0004', sxl: ['>=1.0.7','<1.2'] do |example|
Validator::Site.connected do |task,supervisor,site|
prepare task, site
request_status_and_confirm site, "output status",
{ S0004: [:outputstatus,:extendedoutputstatus] }
end
end

# Verify that output status can be read with S0004
# 1. Given the site is connected
# 2. When we subscribe to S0004
# 3. We should receive a status updated
# 4. And the outputstatus attribute should be a digit string
specify 'is read with S0004', sxl: ['>=1.2'] do |example|
Validator::Site.connected do |task,supervisor,site|
prepare task, site
request_status_and_confirm site, "output status",
Expand Down

0 comments on commit 01df757

Please sign in to comment.