Specific test to demo right disablement with wrong order
@@ -100,6 +100,18 @@ public class DisablePluginCommandTest {
assertPluginEnabled("dependee");
}
+ /**
+ * Can disable a plugin with a mandatory dependent plugin before its dependent plugin with <i><all/i> strategy
+ */
+ @Test
+ @Issue("JENKINS-27177")
+ @WithPlugin({"mandatory-depender-0.0.2.hpi", "dependee-0.0.2.hpi"})
+ public void canDisableDependentPluginWrongOrderStrategyAll() {
+ assertThat(disablePluginsCLiCommand("dependee", "mandatory-depender", "-strategy", "all"), succeeded());
+ assertPluginDisabled("mandatory-depender");
+ assertPluginDisabled("dependee");
+ }
+
/**
* Can disable a plugin with a mandatory dependent plugin after being disabled the mandatory dependent plugin. With
* default strategy (none).
