This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10776 from EOSIO/pdr/fix_https_r22x
fix https bug (release 2.2.x)
- Loading branch information
Showing
3 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from testUtils import Utils | ||
from Cluster import Cluster | ||
from Node import Node | ||
from Node import ReturnType | ||
from TestHelper import TestHelper | ||
|
||
############################################################### | ||
# http_plugin_tests.py | ||
# | ||
# Integration tests for HTTP plugin | ||
# | ||
############################################################### | ||
|
||
Print=Utils.Print | ||
errorExit=Utils.errorExit | ||
cmdError=Utils.cmdError | ||
|
||
args = TestHelper.parse_args({"-v","--clean-run", "--dump-error-details","--keep-logs"}) | ||
debug=args.v | ||
killAll=args.clean_run | ||
killEosInstances = True | ||
keepLogs = args.keep_logs | ||
dumpErrorDetails = dumpErrorDetails=args.dump_error_details | ||
|
||
|
||
Utils.Debug=debug | ||
https_port = 5555 | ||
cluster=Cluster(walletd=True) | ||
|
||
testSuccessful=False | ||
|
||
ClientName="cleos" | ||
timeout = .5 * 12 * 2 + 60 # time for finalization with 1 producer + 60 seconds padding | ||
Utils.setIrreversibleTimeout(timeout) | ||
|
||
try: | ||
TestHelper.printSystemInfo("BEGIN") | ||
|
||
Print("Stand up cluster") | ||
# standup cluster with HTTPS enabled, but not configured | ||
# HTTP should still work | ||
extraArgs={ 0 : "--https-server-address 127.0.0.1:5555" } | ||
# specificExtraNodeosArgs=extraArgs | ||
|
||
if cluster.launch(dontBootstrap=True, loadSystemContract=False) is False: | ||
cmdError("launcher") | ||
errorExit("Failed to stand up eos cluster.") | ||
|
||
Print("Getting cluster info") | ||
cluster.getInfos() | ||
testSuccessful = True | ||
finally: | ||
TestHelper.shutdown(cluster, None, testSuccessful, killEosInstances, True, keepLogs, killAll, dumpErrorDetails) | ||
|