Skip to content
Snippets Groups Projects
Commit ae3c510a authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Slight update to graph api tests

parent 21874272
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ class TestGraphAPI(object):
('{"service_function_chain": "sfc", "service_function_chain_instance": "sfc_1", "service_functions": {"invalid_json"}}',
"Configuration must be a JSON object.", "A bad request error must have been raised in case of invalid JSON body."),
('{"from": 1528386860, "to":1528389860, "service_function_chain": "sfc", "service_function_chain_instance": "sfc_1", "service_functions": ["nginx", "minio"]}',
"The service function description should be represented with a dictionary.", "A bad request error must have been raised in case of invalid request body."),
"The service functions description should be represented with a JSON object.", "A bad request error must have been raised in case of invalid request body."),
('{"from": 1528386860, "to":1528389860, "service_function_chain_instance": "sfc_1", "service_functions": {"nginx": {"measurement_name": "nginx", "response_time_field": "mean(avg_processing_time)", "request_size_field": "mean(avg_request_size)", "response_size_field": "mean(avg_response_size"}}}',
"Invalid JSON query document.", "A bad request error must have been raised in case of missing service function chain value in the request body"),
('{"from": 1528386860, "to":1628389860, "service_function_chain": "sfc", "service_functions": {"nginx": {"measurement_name": "nginx", "response_time_field": "mean(avg_processing_time)", "request_size_field": "mean(avg_request_size)", "response_size_field": "mean(avg_response_size"}}}',
......@@ -469,7 +469,7 @@ class TestGraphAPI(object):
('{"service_function_chain": "sfc", "service_function_chain_instance": "sfc_1", "service_functions": {"invalid_json"}}',
"Configuration must be a JSON object.", "A bad request error must have been raised in case of invalid JSON body."),
('{"query_period": 45, "results_measurement_name": "graph", "service_function_chain": "sfc", "service_function_chain_instance": "sfc_1", "service_functions": ["nginx", "minio"]}',
"The service function description should be represented with a dictionary.", "A bad request error must have been raised in case of invalid request body."),
"The service functions description should be represented with a JSON object.", "A bad request error must have been raised in case of invalid request body."),
('{"query_period": 45, "results_measurement_name": "graph", "service_function_chain_instance": "sfc_1", "service_functions": {"nginx": {"measurement_name": "nginx", "response_time_field": "mean(avg_processing_time)", "request_size_field": "mean(avg_request_size)", "response_size_field": "mean(avg_response_size"}}}',
"Invalid JSON query document.", "A bad request error must have been raised in case of missing service function chain value in the request body"),
('{"query_period": 45, "results_measurement_name": "graph", "service_function_chain": "sfc", "service_functions": {"nginx": {"measurement_name": "nginx", "response_time_field": "mean(avg_processing_time)", "request_size_field": "mean(avg_request_size)", "response_size_field": "mean(avg_response_size"}}}',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment