@@ -33,8 +33,8 @@ def test_case01():
3333 request = QueryPolicy (** prometheus_attrs )
3434 query = request .get_zimon_query ()
3535 query .includeDiskData = md_instance .includeDiskData .return_value
36- queryString = 'get -j {0} {1} group {2} bucket_size {3} {4 }' .format (
37- '' , '-z' , prometheus_attrs .get ('sensor' ),
36+ queryString = 'get -j {0} {1} {2} group {3} bucket_size {4} {5 }' .format (
37+ '' , '-z' , '-D' , prometheus_attrs .get ('sensor' ),
3838 prometheus_attrs .get ('period' ),
3939 f"last { prometheus_attrs .get ('period' )} " )
4040 queryString += '\n '
@@ -54,8 +54,8 @@ def test_case02():
5454 request = QueryPolicy (** prometheus_attrs )
5555 query = request .get_zimon_query ()
5656 query .includeDiskData = md_instance .includeDiskData .return_value
57- queryString = 'get -j {0} {1} group {2} bucket_size {3} {4 }' .format (
58- '' , '' , prometheus_attrs .get ('sensor' ),
57+ queryString = 'get -j {0} {1} {2} group {3} bucket_size {4} {5 }' .format (
58+ '' , '' , '-D' , prometheus_attrs .get ('sensor' ),
5959 prometheus_attrs .get ('period' ),
6060 f"last { prometheus_attrs .get ('nsamples' )} " )
6161 queryString += '\n '
@@ -74,8 +74,8 @@ def test_case03():
7474 request = QueryPolicy (** prometheus_attrs )
7575 query = request .get_zimon_query ()
7676 query .includeDiskData = md_instance .includeDiskData .return_value
77- queryString = 'get -j {0} {1} group {2} bucket_size {3} {4 }' .format (
78- '' , '-z' , prometheus_attrs .get ('sensor' ),
77+ queryString = 'get -j {0} {1} {2} group {3} bucket_size {4} {5 }' .format (
78+ '' , '-z' , '-D' , prometheus_attrs .get ('sensor' ),
7979 prometheus_attrs .get ('period' ),
8080 f"last { prometheus_attrs .get ('period' )} " )
8181 queryString += ' from ' + "," .join (pquery_filters )
@@ -97,8 +97,8 @@ def test_case04():
9797 request = QueryPolicy (** prometheus_attrs )
9898 query = request .get_zimon_query ()
9999 query .includeDiskData = md_instance .includeDiskData .return_value
100- queryString = 'get -j {0} {1} group {2} bucket_size {3} {4 }' .format (
101- '' , '' , prometheus_attrs .get ('sensor' ),
100+ queryString = 'get -j {0} {1} {2} group {3} bucket_size {4} {5 }' .format (
101+ '' , '' , '-D' , prometheus_attrs .get ('sensor' ),
102102 prometheus_attrs .get ('period' ),
103103 f"last { prometheus_attrs .get ('nsamples' )} " )
104104 queryString += ' from ' + "," .join (pquery_filters )
0 commit comments