Open ASHNA-AGGARWAL-KEYSIGHT opened 2 years ago
GRPC Transport log
2023-03-02 15:38:21 [sanity] [WARNING] Version check is disabled 2023-03-02 15:38:21 [sanity] [INFO] Transport set to GRPC 2023-03-02 15:38:21 [sanity] [DEBUG] gRPCTransport args: location='localhost:40052', transport='grpc', verify=True, logger=None, loglevel=10, ext=None, version_check=False 2023-03-02 15:38:21 [sanity] [INFO] Executing set_config 2023-03-02 15:38:21 [sanity] [DEBUG] Request payload - {'required_object': {'e_a': 10.1, 'e_b': 2245.1111}, 'a': 'asdf', 'b': 1.1, 'c': 1, 'd_values': ['a', 'b', 'c'], 'h': True, 'i': '11011011', 'e': {'e_a': 1.1, 'e_b': 1.2}, 'f': {'choice': 'f_b', 'f_b': 3.0}, 'g': [{'choice': 'g_e', 'g_a': 'a g_a value', 'g_b': 6, 'g_c': 77.7, 'g_e': 3.0, 'g_f': 'a'}], 'j': [{'choice': 'j_a', 'j_a': {'e_a': 1.0, 'e_b': 2.0}}, {'choice': 'j_a', 'j_a': {'e_a': 1.0, 'e_b': 2.0}}], 'k': {'e_object': {'e_a': 77.7, 'e_b': 2.0}, 'f_object': {'choice': 'f_a', 'f_a': 'asdf'}}, 'l': {'string_param': 'test', 'integer': 80, 'float': 100.11, 'double': 1.7976931348623157e+308, 'mac': '00:00:00:00:00:0a', 'ipv4': '1.1.1.1', 'ipv6': '2000::1', 'hex': '0x12'}} gRPC Server: Executing SetConfig 2023-03-02 15:38:21 [sanity] [DEBUG] Response - {'status_code_200': 'c3VjY2Vzcw=='} PASSED openapiart/tests/test_sample.py::test_grpc_get_config 2023-03-02 15:38:21 [sanity] [INFO] Executing get_config gRPC Server: Executing GetConfig 2023-03-02 15:38:21 [sanity] [DEBUG] Response - {'status_code_200': {'required_object': {'e_a': 10.1, 'e_b': 2245.1111}, 'a': 'asdf', 'b': 1.1, 'c': 1, 'd_values': ['a', 'b', 'c'], 'e': {'e_a': 1.1, 'e_b': 1.2}, 'f': {'choice': 'f_b', 'f_b': 3.0}, 'g': [{'g_a': 'a g_a value', 'g_b': 6, 'g_c': 77.7, 'choice': 'g_e', 'g_e': 3.0, 'g_f': 'a'}], 'h': True, 'i': '11011011', 'j': [{'choice': 'j_a', 'j_a': {'e_a': 1.0, 'e_b': 2.0}}, {'choice': 'j_a', 'j_a': {'e_a': 1.0, 'e_b': 2.0}}], 'k': {'e_object': {'e_a': 77.7, 'e_b': 2.0}, 'f_object': {'choice': 'f_a', 'f_a': 'asdf'}}, 'l': {'string_param': 'test', 'integer': 80, 'float': 100.11, 'double': 1.7976931348623157e+308, 'mac': '00:00:00:00:00:0a', 'ipv4': '1.1.1.1', 'ipv6': '2000::1', 'hex': '0x12'}}} PASSED
HTTP Transport log
2023-03-02 15:38:21 [sanity] [WARNING] Version check is disabled 2023-03-02 15:38:21 [sanity] [INFO] Transport set to HTTP 2023-03-02 15:38:21 [sanity] [DEBUG] HttpTransport args: location='http://127.0.0.1:8444', transport=None, verify=False, logger=None, loglevel=10, ext=None, version_check=False 2023-03-02 15:38:21 [sanity] [WARNING] Certificate verification is disabled 2023-03-02 15:38:21 [sanity] [INFO] Executing get_config 2023-03-02 15:38:21 [sanity] [DEBUG] Request url - http://127.0.0.1:8444/api/config 2023-03-02 15:38:21 [sanity] [DEBUG] Method - get 2023-03-02 15:38:21 [sanity] [DEBUG] Request headers - {'Content-Type': 'application/json'} 2023-03-02 15:38:21 [sanity] [DEBUG] Request payload - None GET http://127.0.0.1:8444/api/config -> 200 OK 127.0.0.1 - - [02/Mar/2023 21:08:21] "GET /api/config HTTP/1.1" 200 - 2023-03-02 15:38:21 [sanity] [DEBUG] Response status code - 200 2023-03-02 15:38:21 [sanity] [DEBUG] Response header - {'Server': 'Werkzeug/2.2.3 Python/3.8.10', 'Date': 'Thu, 02 Mar 2023 15:38:21 GMT', 'Content-Type': 'application/json', 'Content-Length': '139', 'Connection': 'close'} 2023-03-02 15:38:21 [sanity] [DEBUG] Response content - b'{\n "a": "asdf",\n "b": 1.1,\n "c": 1,\n "h": true,\n "required_object": {\n "e_a": 1.1,\n "e_b": 1.2\n },\n "response": "status_200"\n}' 2023-03-02 15:38:21 [sanity] [DEBUG] Response text - { "a": "asdf", "b": 1.1, "c": 1, "h": true, "required_object": { "e_a": 1.1, "e_b": 1.2 }, "response": "status_200" } 2023-03-02 15:38:21 [sanity] [INFO] Executing set_config 2023-03-02 15:38:21 [sanity] [INFO] Local Version is api_spec_version: 0.0.1 app_version: '' sdk_version: ''
2023-03-02 15:38:21 [sanity] [INFO] Executing get_version 2023-03-02 15:38:21 [sanity] [DEBUG] Request url - http://127.0.0.1:8444/api/capabilities/version 2023-03-02 15:38:21 [sanity] [DEBUG] Method - get 2023-03-02 15:38:21 [sanity] [DEBUG] Request headers - {'Content-Type': 'application/json'} 2023-03-02 15:38:21 [sanity] [DEBUG] Request payload - None 2023-03-02 15:38:21 [sanity] [INFO] Local Version is api_spec_version: 0.0.1 app_version: '' sdk_version: ''
GET http://127.0.0.1:8444/api/capabilities/version -> 200 OK 127.0.0.1 - - [02/Mar/2023 21:08:21] "GET /api/capabilities/version HTTP/1.1" 200 - 2023-03-02 15:38:21 [sanity] [DEBUG] Response status code - 200 2023-03-02 15:38:21 [sanity] [DEBUG] Response header - {'Server': 'Werkzeug/2.2.3 Python/3.8.10', 'Date': 'Thu, 02 Mar 2023 15:38:21 GMT', 'Content-Type': 'application/json', 'Content-Length': '75', 'Connection': 'close'} 2023-03-02 15:38:21 [sanity] [DEBUG] Response content - b'{\n "api_spec_version": "0.0.1",\n "app_version": "",\n "sdk_version": ""\n}' 2023-03-02 15:38:21 [sanity] [DEBUG] Response text - { "api_spec_version": "0.0.1", "app_version": "", "sdk_version": "" } 2023-03-02 15:38:21 [sanity] [INFO] Remote Version is api_spec_version: 0.0.1 app_version: '' sdk_version: ''
2023-03-02 15:38:21 [sanity] [INFO] Executing get_version 2023-03-02 15:38:21 [sanity] [DEBUG] Request url - http://127.0.0.1:8444/api/capabilities/version 2023-03-02 15:38:21 [sanity] [DEBUG] Method - get 2023-03-02 15:38:21 [sanity] [DEBUG] Request headers - {'Content-Type': 'application/json'} 2023-03-02 15:38:21 [sanity] [DEBUG] Request payload - None 2023-03-02 15:38:21 [sanity] [INFO] Local Version is api_spec_version: 0.0.1 app_version: '' sdk_version: ''
GET http://127.0.0.1:8444/api/capabilities/version -> 200 OK 127.0.0.1 - - [02/Mar/2023 21:08:21] "GET /api/capabilities/version HTTP/1.1" 200 - 2023-03-02 15:38:21 [sanity] [DEBUG] Response status code - 200 2023-03-02 15:38:21 [sanity] [DEBUG] Response header - {'Server': 'Werkzeug/2.2.3 Python/3.8.10', 'Date': 'Thu, 02 Mar 2023 15:38:21 GMT', 'Content-Type': 'application/json', 'Content-Length': '75', 'Connection': 'close'} 2023-03-02 15:38:21 [sanity] [DEBUG] Response content - b'{\n "api_spec_version": "0.0.1",\n "app_version": "",\n "sdk_version": ""\n}' 2023-03-02 15:38:21 [sanity] [DEBUG] Response text - { "api_spec_version": "0.0.1", "app_version": "", "sdk_version": "" } 2023-03-02 15:38:21 [sanity] [DEBUG] Request url - http://127.0.0.1:8444/api/config 2023-03-02 15:38:21 [sanity] [DEBUG] Method - post 2023-03-02 15:38:21 [sanity] [DEBUG] Request headers - {'Content-Type': 'application/json'} 2023-03-02 15:38:21 [sanity] [DEBUG] Request payload - { "a": "asdf", "b": 1.1, "c": 1, "d_values": [ "a", "b", "c" ], "h": true, "level": { "l1_p1": { "l2_p1": { "l3_p1": "test" } }, "l1_p2": { "l4_p1": { "l1_p2": { "l4_p1": { "l1_p1": { "l2_p1": { "l3_p1": "test" } } } } } } }, "required_object": { "e_a": 1.1, "e_b": 1.2 }, "response": "status_200" } POST http://127.0.0.1:8444/api/config -> 200 OK 127.0.0.1 - - [02/Mar/2023 21:08:21] "POST /api/config HTTP/1.1" 200 - 2023-03-02 15:38:21 [sanity] [DEBUG] Response status code - 200 2023-03-02 15:38:21 [sanity] [DEBUG] Response header - {'Server': 'Werkzeug/2.2.3 Python/3.8.10', 'Date': 'Thu, 02 Mar 2023 15:38:21 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '0', 'Connection': 'close'} 2023-03-02 15:38:21 [sanity] [DEBUG] Response content - b'' 2023-03-02 15:38:21 [sanity] [DEBUG] Response text - PASSED