Skip to content

Commit

Permalink
Added test, pulled master
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Dec 7, 2022
1 parent 3e6fe4e commit 82b9f64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.linkedin.metadata;

import com.datahub.authentication.Authentication;
import com.datahub.authorization.Authorizer;
import com.datahub.plugins.auth.authorization.Authorizer;
import com.linkedin.common.urn.Urn;
import com.linkedin.datahub.graphql.QueryContext;
import com.linkedin.datahub.graphql.generated.AutoCompleteResults;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public void testUrn() {
);
}

@Test
public void testExactTable() {
SearchResult results = search(searchService, "stg_customers");
assertEquals(results.getEntities().size(), 1, "Unexpected single urn result for `stg_customers`");
assertEquals(results.getEntities().get(0).getEntity().toString(),
"urn:li:dataset:(urn:li:dataPlatform:dbt,cypress_project.jaffle_shop.stg_customers,PROD)");
}

@Test
public void testStemming() {
List<Set<String>> testSets = List.of(
Expand Down

0 comments on commit 82b9f64

Please sign in to comment.