Skip to content

Commit 6497f28

Browse files
author
Jacek Gębal
committed
Update unit test setup to avoid UK violation when testing maven plugin on a PDB.
1 parent 2751fed commit 6497f28

33 files changed

Lines changed: 72 additions & 67 deletions

File tree

src/test/java/org/utplsql/maven/plugin/UtPlsqlMojoTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ public void dbms_output() throws Exception {
309309
@Test
310310
public void db_config_using_system_properties() throws Exception {
311311
System.setProperty("dbUrl", "jdbc:oracle:thin:@//localhost:1521/FREEPDB1");
312-
System.setProperty("dbUser", "UT3");
313-
System.setProperty("dbPass", "UT3");
312+
System.setProperty("dbUser", "APP");
313+
System.setProperty("dbPass", "pass");
314314

315315
UtPlsqlMojo utPlsqlMojo = createUtPlsqlMojo("db_config_using_system_properties");
316316
assertNotNull(utPlsqlMojo);
@@ -370,7 +370,7 @@ public void include_object_expr() throws Exception {
370370

371371
utPlsqlMojo.execute();
372372

373-
assertEquals("*", utPlsqlMojo.includeObjectExpr);
373+
assertEquals("APP.*", utPlsqlMojo.includeObjectExpr);
374374
}
375375

376376
/**
@@ -405,7 +405,7 @@ public void include_schema_expr() throws Exception {
405405

406406
utPlsqlMojo.execute();
407407

408-
assertEquals("*", utPlsqlMojo.includeSchemaExpr);
408+
assertEquals("APP", utPlsqlMojo.includeSchemaExpr);
409409
}
410410

411411
/**

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/exclude_object/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/exclude_object_expr/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/include_object/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/include_object_expr/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/minimalist/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/ora_stuck_timeout/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/owner_param/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<dbUrl>jdbc:oracle:thin:@//localhost:1521/FREEPDB1</dbUrl>
13-
<dbUser>UT3</dbUser>
14-
<dbPass>UT3</dbPass>
13+
<dbUser>APP</dbUser>
14+
<dbPass>pass</dbPass>
1515
</properties>
1616

1717
<build>

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/owner_param/scripts/sources/foo/packages/PKG_TEST_ME.pks

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ CREATE OR REPLACE PACKAGE CODE_OWNER.PKG_TEST_ME AS
55
FUNCTION FC_TEST_ME(PPARAM1 IN VARCHAR2) RETURN NUMBER;
66
PROCEDURE PR_TEST_ME(PSNAME IN VARCHAR2);
77
END PKG_TEST_ME;
8-
/
8+
/
9+
10+
grant execute on pkg_test_me to tests_owner;
11+
grant debug on pkg_test_me to tests_owner;

src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT/owner_param/scripts/sources/foo/tables/TO_TEST_ME.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ CREATE TABLE TO_TEST_ME
66
SNAME VARCHAR2(10)
77
)
88
/
9+
10+
grant all on to_test_me to tests_owner;

0 commit comments

Comments
 (0)