mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-11-04 04:48:01 +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("Command: ", cmd)
 | 
				
			||||||
            print("response-status: ", response.status_code)
 | 
					            print("response-status: ", response.status_code)
 | 
				
			||||||
            print("response-headers: ", response.headers)
 | 
					            print("response-headers: ", response.headers)
 | 
				
			||||||
 | 
					            print("response-content: ", response.content)
 | 
				
			||||||
            print("headers: ", headers)
 | 
					            print("headers: ", headers)
 | 
				
			||||||
            print("data-str: ", data_str)
 | 
					            print("data-str: ", data_str)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,7 +19,9 @@ parser.add_argument("--brief", type=str, help="Show output in brief mode?",
 | 
				
			|||||||
                    choices=["true", "false"],
 | 
					                    choices=["true", "false"],
 | 
				
			||||||
                    default = "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
 | 
					qtype = base.command_line_args.type
 | 
				
			||||||
cmd = base.command_line_args.cmd
 | 
					cmd = base.command_line_args.cmd
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user