Skip to content

Commit

Permalink
allow overriding tested server from command line
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Oberstein committed Mar 23, 2017
1 parent ebb8203 commit 8aa4482
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autobahntestsuite/autobahntestsuite/wstest.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ def startService(self):
return echo.startServer(self.options['wsuri'], self.options['webport'], debug = self.debug)

elif self.mode == "fuzzingclient":
# allow overriding servers from command line option, providing 1 server
# this is semi-useful, as you cannot accumulate a combined report for
# multiple servers by running wstest over and over again. the generated
# report is only for the last invocation - it would require a massive
# code restructering / rewriting to change that. no time for that unfort.
servers = self.spec.get("servers", [])
if len(servers) == 0:
self.spec["servers"] = [{"url": self.options['wsuri']}]
return fuzzing.startClient(self.spec, debug = self.debug)

elif self.mode == "fuzzingserver":
Expand Down

0 comments on commit 8aa4482

Please sign in to comment.