Skip to content

Commit

Permalink
test(urn-validation): additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Dec 2, 2024
1 parent 580390e commit 739c639
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,17 @@ public void testUrnWithIllegalDelimiter() {
}

@Test(expectedExceptions = IllegalArgumentException.class)
public void testComplexUrnWithParens() {
public void testComplexUrnWithParens1() {
Urn invalidUrn = UrnUtils.getUrn("urn:li:dataset:(urn:li:dataPlatform:hdfs,(illegal),PROD)");
ValidationApiUtils.validateUrn(entityRegistry, invalidUrn, true);
}

@Test(expectedExceptions = IllegalArgumentException.class)
public void testComplexUrnWithParens2() {
Urn invalidUrn = UrnUtils.getUrn("urn:li:dataJob:(urn:li:dataFlow:(mssql,1/2/3/4.c_n on %28LOCAL%29,PROD),1/2/3/4.c_n on (LOCAL))");
ValidationApiUtils.validateUrn(entityRegistry, invalidUrn, true);
}

@Test(expectedExceptions = IllegalArgumentException.class)
public void testSimpleUrnWithParens() {
Urn invalidUrn = UrnUtils.getUrn("urn:li:corpuser:(foo)123");
Expand Down

0 comments on commit 739c639

Please sign in to comment.