Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Commit df77547

Browse files
authored
Merge pull request #192 from billdodd/fix/issue-191
Skip Sensors, Thermal and Power URIs for assertion 6.4.25
2 parents d5ceea1 + b53a154 commit df77547

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rfs_test/TEST_protocol_details.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,10 @@ def Assertion_6_4_25(self, log) :
16831683
rq_headers = self.request_headers()
16841684

16851685
for relative_uri in cached_uri:
1686+
uri = relative_uris[relative_uri]
1687+
if '/Sensors' in uri or '/Thermal' in uri or '/Power' in uri:
1688+
# skip URIs whose etag values could change over time
1689+
continue
16861690
rq_headers = self.request_headers()
16871691
json_payload, headers, status = self.http_GET(relative_uris[relative_uri], rq_headers, authorization)
16881692
assertion_status_ = self.response_status_check(relative_uris[relative_uri], status, log)
@@ -1692,7 +1696,8 @@ def Assertion_6_4_25(self, log) :
16921696
continue
16931697
else:
16941698
if 'etag' not in headers:
1695-
assertion_status = log.WARN
1699+
assertion_status_ = log.WARN
1700+
assertion_status = log.status_fixup(assertion_status, assertion_status_)
16961701
log.assertion_log('TX_COMMENT', "~ note: Etag exepcted in headers of %s:%s ~ not found" %(relative_uris[relative_uri], rf_utility.json_string(headers)))
16971702
log.assertion_log('TX_COMMENT', "~ note: Modifications to resource using If-None-Match header without Etag cannot be tested")
16981703
else:

0 commit comments

Comments
 (0)