-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing missing region, missing CICSplex and missing both in combination of SMSS and CPSM environments Signed-off-by: Ledina Hido-Evans <[email protected]> Signed-off-by: Dave Nice <[email protected]>
- Loading branch information
Showing
18 changed files
with
261 additions
and
24 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!-- | ||
#%L | ||
CICS Bundle Maven Plugin | ||
%% | ||
Copyright (C) 2019 IBM Corp. | ||
%% | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
#L% | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.ibm.cics.test-bundle-deploy-neither-smss</groupId> | ||
<artifactId>test-bundle-deploy-neither-smss</artifactId> | ||
<name>Example CICS bundle</name> | ||
<version>0.0.1-SNAPSHOT</version> | ||
|
||
<build> | ||
<plugins> | ||
<!-- Test the build succeeds when calling an SMSS endpoint (without a cicsplex or region specified) with a 200 response --> | ||
<plugin> | ||
<groupId>@project.groupId@</groupId> | ||
<artifactId>@project.artifactId@</artifactId> | ||
<version>@project.version@</version> | ||
<extensions>true</extensions> | ||
<executions> | ||
<execution> | ||
<id>deploy</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>deploy</goal> | ||
</goals> | ||
<configuration> | ||
<serverId>neither</serverId> | ||
<bunddef>bundle</bunddef> | ||
<csdgroup>BAR</csdgroup> | ||
<bundle>${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip</bundle> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/prebuild.bsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupSMSSWiremock(Integer.parseInt(wiremockPort))); |
Binary file added
BIN
+3.28 KB
...le-maven-plugin/src/it/test-bundle-deploy-neither-smss/test-app-bundle-0.0.1-SNAPSHOT.zip
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### | ||
# #%L | ||
# CICS Bundle Maven Plugin | ||
# %% | ||
# Copyright (C) 2019 IBM Corp. | ||
# %% | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# #L% | ||
### | ||
# The expected result of the build, possible values are "success" (default) and "failure" | ||
invoker.buildResult = failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/postbuild.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*- | ||
* #%L | ||
* CICS Bundle Maven Plugin | ||
* %% | ||
* Copyright (C) 2019 IBM Corp. | ||
* %% | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* #L% | ||
*/ | ||
import com.ibm.cics.cbmp.DeployPreBuild | ||
|
||
context.get("wireMockServer").shutdownServer() | ||
|
||
File buildLog = new File(basedir, 'build.log') | ||
|
||
assert buildLog.exists() | ||
assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:") | ||
assert buildLog.text.contains("com.ibm.cics.bundle.deploy.BundleDeployException: Some of the supplied parameters were invalid") | ||
assert buildLog.text.contains("- cicsplex: CICSplex could not be found") |
2 changes: 1 addition & 1 deletion
2
cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/prebuild.bsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort))); | ||
context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremockNoCICSplexRegion(Integer.parseInt(wiremockPort))); |
15 changes: 15 additions & 0 deletions
15
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### | ||
# #%L | ||
# CICS Bundle Maven Plugin | ||
# %% | ||
# Copyright (C) 2019 IBM Corp. | ||
# %% | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# #L% | ||
### | ||
# The expected result of the build, possible values are "success" (default) and "failure" | ||
invoker.buildResult = failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/postbuild.bsh
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/postbuild.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*- | ||
* #%L | ||
* CICS Bundle Maven Plugin | ||
* %% | ||
* Copyright (C) 2019 IBM Corp. | ||
* %% | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* #L% | ||
*/ | ||
import com.ibm.cics.cbmp.DeployPreBuild | ||
|
||
context.get("wireMockServer").shutdownServer() | ||
|
||
File buildLog = new File(basedir, 'build.log') | ||
|
||
assert buildLog.exists() | ||
assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:") | ||
assert buildLog.text.contains("(deploy) on project test-bundle-deploy-noCICSplex: Specify both or neither of cicsplex and region in plugin configuration or server configuration") |
15 changes: 15 additions & 0 deletions
15
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### | ||
# #%L | ||
# CICS Bundle Maven Plugin | ||
# %% | ||
# Copyright (C) 2019 IBM Corp. | ||
# %% | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# #L% | ||
### | ||
# The expected result of the build, possible values are "success" (default) and "failure" | ||
invoker.buildResult = failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/postbuild.bsh
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/postbuild.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*- | ||
* #%L | ||
* CICS Bundle Maven Plugin | ||
* %% | ||
* Copyright (C) 2019 IBM Corp. | ||
* %% | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* #L% | ||
*/ | ||
import com.ibm.cics.cbmp.DeployPreBuild | ||
|
||
context.get("wireMockServer").shutdownServer() | ||
|
||
File buildLog = new File(basedir, 'build.log') | ||
|
||
assert buildLog.exists() | ||
assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:") | ||
assert buildLog.text.contains("(deploy) on project test-bundle-deploy-noRegion: Specify both or neither of cicsplex and region in plugin configuration or server configuration") |
2 changes: 1 addition & 1 deletion
2
cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/prebuild.bsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort))); | ||
context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupSMSSWiremock(Integer.parseInt(wiremockPort))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters