Skip to content

Commit

Permalink
Merge pull request #469 from jfdenise/test-32beta1-features
Browse files Browse the repository at this point in the history
behave features upgrade to WildFly 32.0.0.Beta1
  • Loading branch information
jfdenise authored Apr 12, 2024
2 parents 47edd03 + 170a53f commit 8b75c78
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 26 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,20 @@ jobs:
docker image ls
docker inspect ${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }}
docker run --rm ${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} bash
- name: Behave Tests
- name: Behave Tests JDK11, must remove tests that can't run on Java 11
if: matrix.jdk == 'jdk11'
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit -v test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave
rm -rf tests/features/no-jdk11-*
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave
popd
- name: Behave Tests JDK
if: matrix.jdk != 'jdk11'
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave
popd
- name: Additional Tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion wildfly-builder-image/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ envs:
- name: PROVISIONING_MAVEN_PLUGIN_ARTIFACT_ID
value: wildfly-maven-plugin
- name: PROVISIONING_MAVEN_PLUGIN_VERSION
value: 5.0.0.Beta4
value: 5.0.0.Final
ports:
- value: 8080
modules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Scenario: Build elytron app
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-web-security with env and true using legacy-s2i-images-ee-10-test-apps
| variable | value |
| GALLEON_PROVISION_LAYERS | datasources-web-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
Then container log should contain WFLYSRV0025

Scenario: check Elytron configuration with elytron core realms security domain fail
Expand Down
28 changes: 8 additions & 20 deletions wildfly-builder-image/tests/features/legacy-s2i.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Scenario: Test preconfigure.sh
| variable | value |
| TEST_EXTENSION_PRE_ADD_PROPERTY | foo |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
Then container log should contain WFLYSRV0025
And container log should contain WFLYSRV0010: Deployed "ROOT.war"
And check that page is served
Expand All @@ -31,12 +31,12 @@ Scenario: Test preconfigure.sh
Given failing s2i build http://github.com/openshift/openshift-jee-sample from . using master
| variable | value |
| GALLEON_PROVISION_LAYERS | foo |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |

Scenario: Test default cloud config
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
| GALLEON_PROVISION_LAYERS | cloud-default-config |
Then container log should contain WFLYSRV0025
And container log should contain WFLYSRV0010: Deployed "ROOT.war"
Expand All @@ -48,7 +48,7 @@ Scenario: Test preconfigure.sh
Scenario: Test cloud-server, exclude jaxrs
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
| GALLEON_PROVISION_LAYERS | cloud-server,-jaxrs |
Then container log should contain WFLYSRV0025
And check that page is served
Expand All @@ -58,24 +58,12 @@ Scenario: Test preconfigure.sh
Then XML file /opt/server/.galleon/provisioning.xml should contain value cloud-server on XPath //*[local-name()='installation']/*[local-name()='config']/*[local-name()='layers']/*[local-name()='include']/@name
Then XML file /opt/server/.galleon/provisioning.xml should contain value jaxrs on XPath //*[local-name()='installation']/*[local-name()='config']/*[local-name()='layers']/*[local-name()='exclude']/@name

Scenario: Test preview FP and preview cloud FP with legacy app.
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-preview-feature-pack:31.0.1.Final, org.wildfly.cloud:wildfly-preview-cloud-galleon-pack:5.0.2.Final |
Then container log should contain WFLYSRV0025
And container log should contain WFLYSRV0010: Deployed "ROOT.war"
And check that page is served
| property | value |
| path | / |
| port | 8080 |

Scenario: Test external driver created during s2i.
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-custom with env and true using legacy-s2i-images
| variable | value |
| ENV_FILES | /opt/server/standalone/configuration/datasources.env |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
Then container log should contain WFLYSRV0025
And check that page is served
| property | value |
Expand All @@ -90,7 +78,7 @@ Scenario: Test external driver created during s2i.
| ENV_FILES | /opt/server/standalone/configuration/datasources.env |
| DISABLE_BOOT_SCRIPT_INVOKER | true |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
Then container log should contain Configuring the server using embedded server
Then container log should contain WFLYSRV0025
And check that page is served
Expand All @@ -104,7 +92,7 @@ Scenario: Test external driver created during s2i.
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-binary with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_LAYERS | jaxrs-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
Then container log should contain WFLYSRV0025
And container log should contain WFLYSRV0010: Deployed "app.war"
And check that page is served
Expand All @@ -117,7 +105,7 @@ Scenario: Test external driver created during s2i.
| variable | value |
| MAVEN_S2I_ARTIFACT_DIRS | app1/target,app2/target |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Expand Down
2 changes: 1 addition & 1 deletion wildfly-builder-image/tests/features/messaging.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Scenario: Configure amq7 remote broker
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app with env and true using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:31.0.1.Final, org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
| MQ_SERVICE_PREFIX_MAPPING | wf-app-amq7=TEST |
| WF_APP_AMQ_TCP_SERVICE_HOST | 127.0.0.1 |
| WF_APP_AMQ_TCP_SERVICE_PORT | 5678 |
Expand Down
14 changes: 14 additions & 0 deletions wildfly-builder-image/tests/features/no-jdk11-legacy-s2i.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@wildfly/wildfly-s2i
Feature: Wildfly Legacy s2i tests that can't run on JDK11

Scenario: Test preview FP and preview cloud FP with legacy app.
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_LAYERS | cloud-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-preview-feature-pack:32.0.0.Beta1, org.wildfly.cloud:wildfly-preview-cloud-galleon-pack:7.0.0.Beta2 |
Then container log should contain WFLYSRV0025
And container log should contain WFLYSRV0010: Deployed "ROOT.war"
And check that page is served
| property | value |
| path | / |
| port | 8080 |
2 changes: 1 addition & 1 deletion wildfly-builder-image/tests/features/oidc.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Feature: OIDC tests
Given s2i build http://github.com/wildfly/wildfly-s2i from test/test-app-elytron-oidc-client-legacy with env and True using main
| variable | value |
| GALLEON_PROVISION_LAYERS | cloud-server,elytron-oidc-client |
| GALLEON_PROVISION_FEATURE_PACKS|org.wildfly:wildfly-galleon-pack:31.0.1.Final,org.wildfly.cloud:wildfly-cloud-galleon-pack:6.0.0.Final |
| GALLEON_PROVISION_FEATURE_PACKS|org.wildfly:wildfly-galleon-pack:32.0.0.Beta1,org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.0.Beta2 |
Scenario: Check oidc subsystem configuration, legacy.
Given XML namespaces
| prefix | url |
Expand Down

0 comments on commit 8b75c78

Please sign in to comment.