mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 11:57:49 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user