Skip to content

Commit

Permalink
Merge pull request #362 from jfdenise/multi-deployment-behave-features
Browse files Browse the repository at this point in the history
Multi deployment behave features
  • Loading branch information
jfdenise authored Aug 3, 2022
2 parents 3399117 + 1817049 commit 0948f29
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wildfly-builder-image/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ modules:
- name: openjdk
git:
url: https://github.com/jboss-container-images/openjdk
ref: develop
ref: wildfly-container-1.1.0
- name: wildfly-cekit-modules
git:
url: https://github.com/wildfly/wildfly-cekit-modules
Expand Down
11 changes: 11 additions & 0 deletions wildfly-builder-image/tests/features/legacy-s2i.feature
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,14 @@ Scenario: Test external driver created during s2i.
| property | value |
| path | /app |
| port | 8080 |

Scenario: Multiple deployments legacy
Given s2i build http://github.com/wildfly/wildfly-s2i from test/test-app-multi-deployments-legacy with env and True using main
| variable | value |
| MAVEN_S2I_ARTIFACT_DIRS | app1/target,app2/target |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:27.0.0.Alpha2, org.wildfly.cloud:wildfly-cloud-galleon-pack:2.0.0.Alpha2 |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Then container log should contain WFLYSRV0025
33 changes: 33 additions & 0 deletions wildfly-builder-image/tests/features/s2i.feature
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,36 @@ Feature: Wildfly s2i tests
Given failing s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-invalid using main
| variable | value |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###

Scenario: Multiple deployments via deployments directory
Given s2i build http://github.com/wildfly/wildfly-s2i from test/test-app-multi-deployments with env and True using main
| variable | value |
| MAVEN_S2I_ARTIFACT_DIRS | server/target |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Then container log should contain WFLYSRV0025

Scenario: Multiple deployments
Given s2i build http://github.com/wildfly/wildfly-s2i from test/test-app-multi-deployments2 with env and True using main
| variable | value |
| MAVEN_S2I_ARTIFACT_DIRS | server/target,app1/target,app2/target |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Then container log should contain WFLYSRV0025

Scenario: Failing Multiple deployments
Given failing s2i build http://github.com/wildfly/wildfly-s2i from test/test-app-multi-deployments-invalid using main
| variable | value |
| MAVEN_S2I_ARTIFACT_DIRS | server/target,app1/target,app2/target |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###

Scenario: Multiple deployments from both MAVEN_S2I_ARTIFACT_DIRS and deployments dir
Given s2i build http://github.com/wildfly/wildfly-s2i from test/test-app-multi-deployments3 with env and True using main
| variable | value |
| MAVEN_S2I_ARTIFACT_DIRS | server/target,app2/target |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Then container log should contain WFLYSRV0025
2 changes: 1 addition & 1 deletion wildfly-runtime-image/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ modules:
- name: openjdk
git:
url: https://github.com/jboss-container-images/openjdk
ref: develop
ref: wildfly-container-1.1.0
- name: wildfly-cekit-modules
git:
url: https://github.com/wildfly/wildfly-cekit-modules
Expand Down

0 comments on commit 0948f29

Please sign in to comment.