query-sdk: Fix API for latest merge.

Need to add a logging variable when creating base class.

Improve error code logging from cloud API.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-02-09 12:25:54 -08:00
parent 470e85eb52
commit 65ed7ff6de
2 changed files with 4 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ class CloudSDK:
print("Command: ", cmd)
print("response-status: ", response.status_code)
print("response-headers: ", response.headers)
print("response-content: ", response.content)
print("headers: ", headers)
print("data-str: ", data_str)

View File

@@ -19,7 +19,9 @@ parser.add_argument("--brief", type=str, help="Show output in brief mode?",
choices=["true", "false"],
default = "false")
base = UnitTestBase("query-sdk", parser)
reporting = Reporting(reports_root=os.getcwd() + "/reports/")
base = UnitTestBase("query-sdk", parser, reporting)
qtype = base.command_line_args.type
cmd = base.command_line_args.cmd