| [ |
| { |
| "testDescription": "Asset.name contains testtable", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "attributeName": "name", |
| "operator": "contains", |
| "attributeValue": "testtable" |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| "testDescription": "Asset.name contains testtable order by name descending", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "sortBy": "name", |
| "sortOrder": "DESCENDING", |
| "entityFilters": { |
| "attributeName": "name", |
| "operator": "contains", |
| "attributeValue": "testtable" |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| "testDescription": "hive_column.name contains 30", |
| "searchParameters": { |
| "typeName": "hive_column", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 25, |
| "entityFilters": { |
| "attributeName": "name", |
| "operator": "contains", |
| "attributeValue": "30" |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 2 |
| }, |
| { |
| |
| "testDescription": "hive_table matches name testtable_0", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "attributeName": "name", |
| "operator": "eq", |
| "attributeValue": "testtable_0" |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 1 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 50, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "name", |
| "operator": "neq", |
| "attributeValue": "dummy /Table_1@0" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "temporary", |
| "operator": "eq", |
| "attributeValue": "false" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 50, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "temporary", |
| "operator": "neq", |
| "attributeValue": "true" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "attributeName": "name", |
| "operator": "startsWith", |
| "attributeValue": "test" |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "name", |
| "operator": "endsWith", |
| "attributeValue": "0" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 1 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_column", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "name", |
| "operator": "endsWith", |
| "attributeValue": "8" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 18 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "createTime", |
| "operator": "lte", |
| "attributeValue": "1491250084794" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| |
| "testDescription": "", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "condition": "AND", |
| "criterion": [ |
| { |
| "attributeName": "lastAccessTime", |
| "operator": "gte", |
| "attributeValue": "1491248907000" |
| }, |
| { |
| "attributeName": "description", |
| "operator": "isNull", |
| "attributeValue": "" |
| } |
| ] |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| }, |
| { |
| "testDescription": "hive_table contains testtable or retentionSize != 0", |
| "searchParameters": { |
| "typeName": "hive_table", |
| "excludeDeletedEntities": true, |
| "classification": "", |
| "query": "", |
| "limit": 25, |
| "offset": 0, |
| "entityFilters": { |
| "condition" : "OR", |
| "criterion" : [ |
| { |
| "attributeName": "name", |
| "operator": "contains", |
| "attributeValue": "testtable" |
| }, |
| { |
| "attributeName": "retention", |
| "operator": "neq", |
| "attributeValue": "0" |
| } |
| ] |
| |
| }, |
| "tagFilters": null, |
| "attributes": [ |
| ] |
| }, |
| "expectedCount": 3 |
| } |
| ] |