Skip to content

Commit

Permalink
Merge pull request #92 from nineinchnick/issue-63
Browse files Browse the repository at this point in the history
add missing server isResilient property
  • Loading branch information
izar authored Mar 24, 2020
2 parents 4a25881 + dce00a5 commit 8cd2312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions pytm/pytm.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ class Server(Element):
hasAccessControl = varBool(False)
implementsCSRFToken = varBool(False)
handlesResourceConsumption = varBool(False)
isResilient = varBool(False)
authenticationScheme = varString("")
validatesInput = varBool(False)
validatesHeaders = varBool(False)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_pytmfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ def test_DO01(self):
web = Server("Web Server")
process1.handlesResourceConsumption = False
process1.isResilient = False
web.handlesResourceConsumption = False
web.isResilient = False
web.handlesResourceConsumption = True
ThreatObj = Threat(next(item for item in threats_json if item["SID"] == "DO01"))
self.assertTrue(ThreatObj.apply(process1))
self.assertTrue(ThreatObj.apply(web))
Expand Down

0 comments on commit 8cd2312

Please sign in to comment.