-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
269 additions
and
143 deletions.
There are no files selected for viewing
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
3 changes: 3 additions & 0 deletions
3
...stall-feature-test/install-features-versionless-bad-platform-server-it/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,3 @@ | ||
# The expected result of the build, possible values are "success" (default) and "failure" | ||
# can be indexed | ||
invoker.buildResult = failure |
63 changes: 63 additions & 0 deletions
63
...t/kernel-install-feature-test/install-features-versionless-bad-platform-server-it/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,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
|
||
<parent> | ||
<groupId>io.openliberty.tools.it</groupId> | ||
<artifactId>kernel-install-feature-tests</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>install-features-versionless-bad-platform-server-it</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.openliberty.tools</groupId> | ||
<artifactId>liberty-maven-plugin</artifactId> | ||
<version>@pom.version@</version> | ||
<configuration> | ||
<assemblyArtifact> | ||
<groupId>${runtimeGroupId}</groupId> | ||
<artifactId>${runtimeKernelId}</artifactId> | ||
<version>${runtimeVersion}</version> | ||
<type>zip</type> | ||
</assemblyArtifact> | ||
<serverName>test</serverName> | ||
<serverXmlFile>src/test/resources/server.xml</serverXmlFile> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>install-liberty-server</id> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>install-server</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>create-server</id> | ||
<phase>pre-integration-test</phase> | ||
<goals> | ||
<goal>create</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>install-server-features</id> | ||
<phase>pre-integration-test</phase> | ||
<goals> | ||
<goal>install-feature</goal> | ||
</goals> | ||
<configuration> | ||
<features> | ||
<acceptLicense>true</acceptLicense> | ||
</features> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
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
7 changes: 7 additions & 0 deletions
7
...re-test/install-features-versionless-bad-platform-server-it/src/test/resources/server.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,7 @@ | ||
<server description="default server"> | ||
<featureManager> | ||
<feature>appSecurityClient-1.0</feature> | ||
<feature>servlet</feature> | ||
<platform>badname</platform> | ||
</featureManager> | ||
</server> |
38 changes: 38 additions & 0 deletions
38
...t/java/net/wasdev/wlp/test/feature/it/InstallFeaturesVersionlessNoPlatformServerTest.java
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,38 @@ | ||
/******************************************************************************* | ||
* (c) Copyright IBM Corporation 2024. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*******************************************************************************/ | ||
package net.wasdev.wlp.test.feature.it; | ||
|
||
import static org.junit.Assert.*; | ||
import org.junit.Test; | ||
import java.io.File; | ||
|
||
public class InstallFeaturesVersionlessNoPlatformServerTest extends BaseInstallFeature { | ||
|
||
@Test | ||
public void testInstalledFeatures() throws Exception { | ||
|
||
|
||
assertInstalled("appSecurityClient-1.0"); | ||
assertNotInstalled("servlet"); | ||
assertNotInstalled("servlet-4.0"); | ||
assertNotInstalled("beanValidation-2.0"); | ||
assertNotInstalled("couchdb-1.0"); | ||
assertNotInstalled("distributedMap-1.0"); | ||
|
||
assertTrue(buildLogCheck("CWWKF1516E: The platform could not be determined. The following versionless features cannot be installed: [servlet]")); | ||
} | ||
|
||
} |
Oops, something went wrong.