-
Notifications
You must be signed in to change notification settings - Fork 82
#2071: create soapui commandlet #2099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b857033
be293d3
21260aa
71eb6b2
28bec76
b3fa88a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| package com.devonfw.tools.ide.tool.soapui; | ||
|
|
||
| import com.devonfw.tools.ide.common.Tag; | ||
| import com.devonfw.tools.ide.context.IdeContext; | ||
| import com.devonfw.tools.ide.tool.LocalToolCommandlet; | ||
|
|
||
| import java.util.Set; | ||
|
|
||
| /** | ||
| * {@link LocalToolCommandlet} for <a href="https://www.soapui.org/">SoapUI</a>, an open source API testing tool for SOAP and REST services. | ||
| */ | ||
| public class SoapUi extends LocalToolCommandlet { | ||
|
|
||
| private static final String SOAPUI = "soapui"; | ||
|
|
||
| private static final String SOAPUI_BAT = SOAPUI + ".bat"; | ||
|
|
||
| private static final String SOAPUI_BASH_SCRIPT = SOAPUI + ".sh"; | ||
|
|
||
| /** | ||
| * The constructor. | ||
| * | ||
| * @param ideContext {@link IdeContext}. | ||
| */ | ||
| public SoapUi(IdeContext ideContext) { | ||
| super(ideContext, SOAPUI, Set.of(Tag.TEST, Tag.REST)); | ||
| } | ||
|
|
||
| @Override | ||
| protected String getBinaryName() { | ||
| if (this.context.getSystemInfo().isWindows()) { | ||
| return SOAPUI_BAT; | ||
| } else { | ||
| return SOAPUI_BASH_SCRIPT; | ||
| } | ||
| } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| package com.devonfw.tools.ide.tool.soapui; | ||
|
|
||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| import com.devonfw.tools.ide.context.AbstractIdeContextTest; | ||
| import com.devonfw.tools.ide.context.IdeTestContext; | ||
| import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo; | ||
| import com.github.tomakehurst.wiremock.junit5.WireMockTest; | ||
|
|
||
| /** | ||
| * Test of {@link SoapUi}. | ||
| */ | ||
| @WireMockTest | ||
| public class SoapUiTest extends AbstractIdeContextTest { | ||
|
|
||
| private static final String PROJECT_SOAPUI = "soapui"; | ||
|
|
||
| private static final String SOAPUI_VERSION = "5.10.0"; | ||
|
|
||
| @Test | ||
| void testSoapUiInstall(WireMockRuntimeInfo wireMockRuntimeInfo) { | ||
|
|
||
| // arrange | ||
| IdeTestContext context = newContext(PROJECT_SOAPUI, wireMockRuntimeInfo); | ||
| SoapUi soapUiCommandlet = context.getCommandletManager().getCommandlet(SoapUi.class); | ||
|
|
||
| // act | ||
| soapUiCommandlet.install(); | ||
|
|
||
| // assert | ||
| assertThat(context.getSoftwarePath().resolve("soapui/.ide.software.version")).exists().hasContent(SOAPUI_VERSION); | ||
| assertThat(context).logAtSuccess().hasMessageContaining("Successfully installed soapui in version " + SOAPUI_VERSION); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ${testbaseurl}/download/soapui/soapui/5.10.0/soapui-5.10.0.tgz |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| SOAPUI_VERSION=5.10.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| this is the IDE_ROOT directory |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| @echo off | ||
| echo soapui %* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/bin/bash | ||
| echo "soapui $*" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,6 +106,7 @@ The column `inclusion` indicates the way the component is included: | |
| |https://docs.astral.sh/uv/[uv] |Optional|https://docs.astral.sh/uv/reference/policies/license/[Apache 2.0] | ||
| |https://github.com/openjdk/jfx[OpenJFX] |Optional|https://github.com/openjdk/jfx/blob/master/LICENSE[GPLv2] (with the “Classpath” Exception) | ||
| |https://squirrel-sql.sourceforge.io/[SQuirreL SQL Client]|Optional|https://github.com/squirrel-sql-client/squirrel-sql-stable-releases/blob/main/LICENSE[LGPL 2.1] | ||
| |https://www.soapui.org/[SoapUI]|Optional|https://github.com/SmartBear/soapui/blob/next/LICENSE.txt[EUPL 1.1] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote from the license you linked:
This means that you also need to add a copy of the |
||
| |https://docs.nestjs.com/cli/overview[NestJS CLI] |Optional|https://github.com/nestjs/nest-cli/blob/master/LICENSE[MIT License] | ||
| |https://docs.aws.amazon.com/cdk/v2/guide/home.html[AWS CDK CLI] |Optional|https://github.com/aws/aws-cdk-cli/blob/main/LICENSE[Apache 2.0] | ||
| |https://www.spyder-ide.org/[Spyder] |Optional|https://github.com/spyder-ide/spyder/blob/master/LICENSE.txt[MIT License] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be moved up to 2026.07.002.
Also copy the exact title of the issue to CHANGELOG.