Skip to content

Commit 93aa892

Browse files
Config refactors for Spring 3.0 Milestone release (#189)
Co-authored-by: ashakirin <[email protected]> Co-authored-by: Andrei Shakirin <[email protected]>
1 parent e359043 commit 93aa892

File tree

387 files changed

+14752
-8513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+14752
-8513
lines changed

.github/workflows/mvn-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
java-version: '11'
1818
distribution: 'adopt'
1919
- name: Build with Maven
20-
run: mvn --update-snapshots -DskipITs verify
20+
run: mvn --update-snapshots -DtrimStackTrace=false -Dsurefire.useFile=false -DskipITs verify

applications/spring-shell/pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -208,25 +208,6 @@
208208
</execution>
209209
</executions>
210210
</plugin>
211-
<plugin>
212-
<groupId>org.apache.maven.plugins</groupId>
213-
<artifactId>maven-antrun-plugin</artifactId>
214-
<version>1.6</version>
215-
<executions>
216-
<execution>
217-
<id>process-test-classes</id>
218-
<phase>process-test-classes</phase>
219-
<configuration>
220-
<target>
221-
<chmod file="target/test-classes/testcode/mule-app/prepare.sh" perm="755" />
222-
</target>
223-
</configuration>
224-
<goals>
225-
<goal>run</goal>
226-
</goals>
227-
</execution>
228-
</executions>
229-
</plugin>
230211
</plugins>
231212
</build>
232213
</project>

applications/spring-shell/src/test/java/org/springframework/sbm/BootifySimpleMuleAppIntegrationTest.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616
package org.springframework.sbm;
1717

1818
import com.rabbitmq.client.Channel;
19-
import org.jruby.RubyProcess;
2019
import org.junit.jupiter.api.*;
21-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
2220
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
23-
import org.junit.jupiter.api.condition.DisabledOnOs;
2421
import org.springframework.http.HttpStatus;
2522
import org.springframework.http.ResponseEntity;
2623
import org.springframework.sbm.mule.amqp.RabbitMqChannelBuilder;
@@ -83,13 +80,6 @@ public static void afterAll() {
8380
}
8481
}
8582

86-
@Test
87-
@Tag("integration")
88-
@DisabledIfSystemProperty(named= "os.arch", matches = "aarch64", disabledReason = "imbcom/mq image not supported with Apple Silicon")
89-
void t1_testWebsphereMqMigration() throws JMSException, InterruptedException {
90-
checkWmqIntegration(rabbitMqContainer.getNetwork());
91-
}
92-
9383
@Test
9484
@Tag("integration")
9585
public void t0_springIntegrationWorks() throws IOException, TimeoutException, InterruptedException {
@@ -112,10 +102,15 @@ public void t0_springIntegrationWorks() throws IOException, TimeoutException, I
112102
checkSendHttpMessage(container.getContainer().getMappedPort(9081));
113103
checkInboundGatewayHttpMessage(container.getContainer().getMappedPort(9081));
114104
checkRabbitMqIntegration(ampqChannel);
105+
checkDbIntegration(container.getContainer().getMappedPort(9081));
115106
}
116107

117-
118-
108+
@Test
109+
@Tag("integration")
110+
@DisabledIfSystemProperty(named= "os.arch", matches = "aarch64", disabledReason = "imbcom/mq image not supported with Apple Silicon")
111+
void t1_testWebsphereMqMigration() throws JMSException, InterruptedException {
112+
checkWmqIntegration(rabbitMqContainer.getNetwork());
113+
}
119114

120115
private void checkRabbitMqIntegration(Channel amqpChannel)
121116
throws IOException, InterruptedException {
@@ -160,6 +155,12 @@ private void checkWmqIntegration(Network rabbitMqNetwork) throws InterruptedExce
160155
assertThat(latchResult).isTrue();
161156
}
162157

158+
private void checkDbIntegration(int port) {
159+
ResponseEntity<String> responseEntity = restTemplate.getForEntity("http://localhost:" + port + "/db", String.class);
160+
assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.OK);
161+
assertThat(responseEntity.getBody()).contains("{\"ID\":1,\"USERNAME\":\"TestUser\",\"PASSWORD\":\"secret\"");
162+
}
163+
163164
private void checkInboundGatewayHttpMessage(int port) {
164165
ResponseEntity<String> responseEntity = restTemplate.getForEntity("http://localhost:" + port + "/helloworld", String.class);
165166
assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.OK);

applications/spring-shell/src/test/resources/testcode/mule-app/doc/IntegrationTestSBM.drawio

Lines changed: 0 additions & 1 deletion
This file was deleted.

applications/spring-shell/src/test/resources/testcode/mule-app/mule3/mule-project.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

applications/spring-shell/src/test/resources/testcode/mule-app/mule3/src/main/api/api.raml

Lines changed: 0 additions & 95 deletions
This file was deleted.

applications/spring-shell/src/test/resources/testcode/mule-app/mule3/src/main/app/amqp-mule.xml

Lines changed: 0 additions & 49 deletions
This file was deleted.

applications/spring-shell/src/test/resources/testcode/mule-app/mule3/src/main/app/http-mule.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

applications/spring-shell/src/test/resources/testcode/mule-app/mule3/src/main/app/mule-app.properties

Lines changed: 0 additions & 16 deletions
This file was deleted.

applications/spring-shell/src/test/resources/testcode/mule-app/mule3/src/main/app/mule-deploy.properties

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)