Sriharsha Chintalapani 821d70eae4
Fix #6782: Separate TableProfile and ColumnProfile api calls (#6783)
* Fix #6571: Add EntityLink for the testCase to ID columns

* Fix #6571: Add EntityLink for the testCase to ID columns

* Fix #6782: Separate TableProfile and ColumnProfile api calls

* Fix #6782: Separate TableProfile and ColumnProfile api calls - fix tests

* Fix #6782: Separate TableProfile and ColumnProfile api calls - fix tests

* Fix setFields

* Fix tests

* Update pipeline status endpoint

* updated ui side as per new schema for profiler tab

* updated profiler details with new API

* Fix Profiler tests and validation errors (#6827)

* add profilerSample field in TableProfile

* add profilerSample field in TableProfile

* get columnProfile with field profile

* get columnProfile with field profile

* Fixed sample data and python tests

* fixed date range filter change issue

* handled empty profiler case

* Added column level test case and results

Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
Co-authored-by: Ayush Shah <ayush@getcollate.io>
Co-authored-by: Teddy Crepineau <teddy.crepineau@gmail.com>
2022-08-22 21:31:24 +05:30

235 lines
9.2 KiB
JSON

{
"testCaseResults": [
{
"name": "table_column_count_equals",
"results": [
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 8 columns vs. the expected 10",
"testCaseStatus": "Failed"
},
{
"result": "Found 8 columns vs. the expected 10",
"testCaseStatus": "Failed"
},
{
"result": "columnCount should not be None for TableColumnCountToEqual",
"testCaseStatus": "Aborted"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
},
{
"result": "Found 10 columns vs. the expected 10",
"testCaseStatus": "Success"
}
]
},
{
"name": "table_column_count_between",
"results": [
{
"result": "Found 9 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "Found 9 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "Found 9 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "columnCount should not be None for TableColumnCountToBeBetween",
"testCaseStatus": "Success"
},
{
"result": "Found 9 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "Found 8 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "Found 8 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "Found 14 column vs. the expected range [1, 10].",
"testCaseStatus": "Failed"
},
{
"result": "Found 8 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
},
{
"result": "Found 8 column vs. the expected range [1, 10].",
"testCaseStatus": "Success"
}
]
},
{
"name": "shop_id.column_value_max_to_be_between",
"results": [
{
"result": "Found max=65 vs. the expected min=50, max=100.",
"testCaseStatus": "Success"
},
{
"result": "Found max=25 vs. the expected min=50, max=100.",
"testCaseStatus": "Failed"
},
{
"result": "Found max=56 vs. the expected min=50, max=100.",
"testCaseStatus": "Success"
},
{
"result": "Found max=99 vs. the expected min=50, max=100.",
"testCaseStatus": "Success"
},
{
"result": "Found max=190 vs. the expected min=50, max=100.",
"testCaseStatus": "Failed"
},
{
"result": "Found max=66 vs. the expected min=50, max=100.",
"testCaseStatus": "Success"
},
{
"result": "Found max=76 vs. the expected min=50, max=100.",
"testCaseStatus": "Success"
},
{
"result": "Found max=46 vs. the expected min=50, max=100.",
"testCaseStatus": "Failed"
},
{
"result": "Found max=100 vs. the expected min=50, max=100.",
"testCaseStatus": "Success"
},
{
"result": "We expect `max` to be informed on the profiler for ColumnValueMaxToBeBetween max=None.",
"testCaseStatus": "Aborted"
}
]
},
{
"name": "last_name.column_values_to_match_regex",
"results": [
{
"result": "Found 99 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Success"
},
{
"result": "Found 0 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Failed"
},
{
"result": "Cannot find the configured column last_name for ColumnValuesToBeNotInSet",
"testCaseStatus": "Aborted"
},
{
"result": "Found 99 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Success"
},
{
"result": "Found 5 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Failed"
},
{
"result": "Found 2 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Failed"
},
{
"result": "Found 99 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Success"
},
{
"result": "Error computing ColumnValuesToMatchRegex for last_name - database error",
"testCaseStatus": "Aborted"
},
{
"result": "Found 99 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Success"
},
{
"result": "Found 99 value(s) matching regex pattern vs 99 value(s) in the column.",
"testCaseStatus": "Success"
}
]
},
{
"name": "zip.column_values_to_be_between",
"results": [
{
"result": "We expect `min` & `max` to be informed on the profiler for ColumnValuesToBeBetween but got min=None, max=None.",
"testCaseStatus": "Aborted"
},
{
"result": "Found min=35005, max=92808 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Failed"
},
{
"result": "Found min=90006, max=92808 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Success"
},
{
"result": "Found min=90002, max=95640 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Success"
},
{
"result": "Found min=90004, max=99001 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Failed"
},
{
"result": "Found min=1001, max=2789 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Failed"
},
{
"result": "Found min=91009, max=92808 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Success"
},
{
"result": "Found min=90008, max=92808 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Success"
},
{
"result": "Found min=92000, max=92808 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Success"
},
{
"result": "Found min=90001, max=96612 vs. the expected min=90001, max=96162.",
"testCaseStatus": "Success"
}
]
}
]
}