[java-plugin-storage-jdbc] branch main updated: JJDBC-11 Nightly Build failed https://shibboleth.atlassian.net/browse/JJDBC-11
Rod Widdowson
rdw at steadingsoftware.com
Mon Jul 18 18:53:29 UTC 2022
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-plugin-storage-jdbc.
View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-storage-jdbc.git;a=commit;h=8c1d1ec87bd9a1a32779ef006ea671d481ee54eb
The following commit(s) were added to refs/heads/main by this push:
new 8c1d1ec JJDBC-11 Nightly Build failed https://shibboleth.atlassian.net/browse/JJDBC-11
8c1d1ec is described below
commit 8c1d1ec87bd9a1a32779ef006ea671d481ee54eb
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jul 18 19:52:56 2022 +0100
JJDBC-11 Nightly Build failed
https://shibboleth.atlassian.net/browse/JJDBC-11
Tinker with test run times.
---
.../plugin/storage/jdbc/impl/JDCBJPAMixedStorageServiceTest.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDCBJPAMixedStorageServiceTest.java b/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDCBJPAMixedStorageServiceTest.java
index 69dc489..bcc224d 100644
--- a/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDCBJPAMixedStorageServiceTest.java
+++ b/jdbc-storage-impl/src/test/java/net/shibboleth/plugin/storage/jdbc/impl/JDCBJPAMixedStorageServiceTest.java
@@ -17,6 +17,7 @@
package net.shibboleth.plugin.storage.jdbc.impl;
+import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
import java.io.IOException;
@@ -99,6 +100,8 @@ public class JDCBJPAMixedStorageServiceTest {
@Test
public void cleanup() throws ComponentInitializationException, IOException {
+ assertNotNull(jdbcService.getCleanupTask());
+ assertTrue(jpaService.getCleanupInterval().isZero());
String context = Long.toString(random.nextLong());
for (int i = 1; i <= 100; i++) {
jpaService.create(context, Integer.toString(i), Integer.toString(i + 1), System.currentTimeMillis() + 100);
@@ -115,7 +118,7 @@ public class JDCBJPAMixedStorageServiceTest {
Assert.assertEquals(jpaService.readAll(context).size(), 0);
}
- @Test
+ @Test(dependsOnMethods = "cleanup")
public void keyCollision() throws IOException {
jpaService.create("unit_test", "dlo1", "value", null);
jdbcService.create("unit_test", "dn11", "value", null);
@@ -150,7 +153,7 @@ public class JDCBJPAMixedStorageServiceTest {
Assert.assertNull(rec2);
}
- @Test
+ @Test(dependsOnMethods = "cleanup")
public void caseSensitiveContext() throws IOException {
assertTrue(jpaService.create("foo", "bar", "value", null));
assertTrue(jdbcService.create("FOO", "bar", "value", null));
@@ -189,7 +192,7 @@ public class JDCBJPAMixedStorageServiceTest {
Assert.assertNull(rec2);
}
- @Test
+ @Test(dependsOnMethods = "cleanup")
public void caseSensitiveKey() throws IOException {
jdbcService.create("unit_test", "foo", "value", null);
jpaService.create("unit_test", "FOO", "value", null);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list