[java-identity-provider] branch main updated: Turn off a bunch of installer tests
Rod Widdowson
rdw at steadingsoftware.com
Sat Jul 29 16:29:32 UTC 2023
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=1aa61daadeb32232b3d2a999eabea66307e8f3c2
The following commit(s) were added to refs/heads/main by this push:
new 1aa61daad Turn off a bunch of installer tests
1aa61daad is described below
commit 1aa61daadeb32232b3d2a999eabea66307e8f3c2
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Jul 29 17:27:06 2023 +0100
Turn off a bunch of installer tests
With no released plugins supported by V5 out ability to test their
installation is reduced.
---
.../idp/installer/plugin/impl/PluginCLITest.java | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/idp-installer/src/test/java/net/shibboleth/idp/installer/plugin/impl/PluginCLITest.java b/idp-installer/src/test/java/net/shibboleth/idp/installer/plugin/impl/PluginCLITest.java
index a83f3f867..5741b782a 100644
--- a/idp-installer/src/test/java/net/shibboleth/idp/installer/plugin/impl/PluginCLITest.java
+++ b/idp-installer/src/test/java/net/shibboleth/idp/installer/plugin/impl/PluginCLITest.java
@@ -41,6 +41,8 @@ import net.shibboleth.shared.spring.httpclient.resource.HTTPResource;
@SuppressWarnings("javadoc")
public class PluginCLITest extends BasePluginTest {
+ private final static boolean RunInstallTests = false;
+
private final String PLUGIN_DISTRO = "http://test.shibboleth.net/downloads/identity-provider/plugins/metadatagen/1.0.0/idp-plugin-metadatagen-dist-1.0.0.tar.gz";
private final String PLUGIN_ID = "net.shibboleth.idp.plugin.metadatagen";
@@ -73,7 +75,7 @@ public class PluginCLITest extends BasePluginTest {
assertEquals(PluginInstallerCLI.runMain(new String[] { "-L", } ), AbstractCommandLine.RC_OK);
}
- @Test(enabled = true) public void testInstallById() throws IOException {
+ @Test(enabled = RunInstallTests) public void testInstallById() throws IOException {
assertEquals(PluginInstallerCLI.runMain(new String[] { "-I", PLUGIN_ID} ), AbstractCommandLine.RC_OK);
}
@@ -89,7 +91,7 @@ public class PluginCLITest extends BasePluginTest {
assertEquals(PluginInstallerCLI.runMain(new String[] { "-i", "a"}), AbstractCommandLine.RC_INIT);
}
- @Test(enabled = true) public void testWeb() {
+ @Test(enabled = RunInstallTests) public void testWeb() {
assertEquals(PluginInstallerCLI.runMain(new String[] {
"-i", PLUGIN_DISTRO,
"--noCheck",
@@ -98,7 +100,7 @@ public class PluginCLITest extends BasePluginTest {
AbstractCommandLine.RC_OK);
}
- @Test(enabled = true, dependsOnMethods = {"testWeb"})
+ @Test(enabled = RunInstallTests, dependsOnMethods = {"testWeb"})
public void testUpdate() {
assertEquals(PluginInstallerCLI.runMain(new String[] {
"-u", PLUGIN_ID,
@@ -108,7 +110,7 @@ public class PluginCLITest extends BasePluginTest {
AbstractCommandLine.RC_OK);
}
- @Test(enabled = true, dependsOnMethods = {"testUpdate"})
+ @Test(enabled = RunInstallTests, dependsOnMethods = {"testUpdate"})
public void testForceUpdate() {
assertEquals(PluginInstallerCLI.runMain(new String[] {
"-u", PLUGIN_ID,
@@ -116,7 +118,7 @@ public class PluginCLITest extends BasePluginTest {
AbstractCommandLine.RC_OK);
}
- @Test(enabled = true, dependsOnMethods = {"testForceUpdate"})
+ @Test(enabled = RunInstallTests, dependsOnMethods = {"testForceUpdate"})
public void testListContents() {
assertEquals(PluginInstallerCLI.runMain(new String[] {
"-cl", PLUGIN_ID,
@@ -124,7 +126,7 @@ public class PluginCLITest extends BasePluginTest {
AbstractCommandLine.RC_OK);
}
- @Test(enabled = true, dependsOnMethods = {"testListContents"}, ignoreMissingDependencies = true)
+ @Test(enabled = RunInstallTests, dependsOnMethods = {"testListContents"}, ignoreMissingDependencies = true)
public void testUninstall() {
assertEquals(PluginInstallerCLI.runMain(new String[] {
"-r", PLUGIN_ID,
@@ -133,7 +135,7 @@ public class PluginCLITest extends BasePluginTest {
AbstractCommandLine.RC_OK);
}
- @Test(enabled = true) public void testLocal() throws Exception {
+ @Test(enabled = RunInstallTests) public void testLocal() throws Exception {
Path unpack = null;
try {
Resource from;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list