mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-07 09:09:30 +00:00

* Added Test Case for Matching Enum 1. Implemented the test case using the `matchEnum` parameter. 2. Added integration tests. 3. Added migrations. * fix tests * fixed tests * format * fixed tests * clear search cache before running ingestion * format * changed scopt of aws fixture * moved migrations to 1.5.0
9 lines
493 B
SQL
9 lines
493 B
SQL
-- matchEnum Test Definition Parameter for columnValuesToBeInSet
|
|
UPDATE test_definition
|
|
SET json = jsonb_set(json, '{parameterDefinition}', json->'parameterDefinition' || '['
|
|
'{"name": "matchEnum", "displayName": "Match enum", "description": "If enabled, validate that each value independently matches the enum.", "dataType": "BOOLEAN", "required": false, "optionValues": []}'
|
|
']'::jsonb
|
|
)
|
|
WHERE name = 'columnValuesToBeInSet'
|
|
AND JSONB_ARRAY_LENGTH(json->'parameterDefinition') < 2;
|