Skip to content

Exclude IT tests using voyager on OLCNE cert profile #2535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Sep 15, 2021
Merged
23 changes: 6 additions & 17 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,39 +309,28 @@
<properties>
<skipITs>false</skipITs>
<includes-failsafe>
**/ItCoherenceTests,
**/ItConfigDistributionStrategy,
**/ItCrossDomainTransaction,
**/ItElasticLogging,
**/ItElasticLoggingFluentd,
**/ItExternalRmiTunneling,
**/ItInitContainers,
**/ItIntrospectVersion,
**/ItIstioCrossDomainTransaction,
**/ItIstioDomainInImage,
**/ItIstioDomainInPV,
**/ItIstioMiiDomain,
**/ItIstioTwoDomainsInImage,
**/ItKubernetesEvents,
**/ItManageNameSpace,
**/ItMiiAuxiliaryImage,
**/ItMiiAuxiliaryImageCluster,
**/ItMiiSampleWlsAux,
**/ItMiiServiceMigration,
**/ItMiiDomain,
**/ItMiiDomainModelInPV,
**/ItMiiDynamicUpdate,
**/ItMiiMultiModel,
**/ItMiiSample,
**/ItMiiSampleWlsMain,
**/ItMiiUpdateDomainConfig,
**/ItMonitoringExporter,
**/ItOperatorRestart,
**/ItParameterizedDomain,
**/ItPodTemplates,
**/ItPodsRestart,
**/ItPodsShutdownOption,
**/ItProductionSecureMode,
**/ItWlsSamples,
**/ItServerStartPolicy,
**/ItSessionMigration,
**/ItSystemResOverrides,
**/ItUsabilityOperatorHelmChart
**/ItSystemResOverrides
</includes-failsafe>
</properties>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ void testLivenessProbe() {
true, "/bin/sh", "-c", destLocation + " " + serverName),
String.format("Failed to execute script %s in pod %s namespace %s", destLocation,
serverName, domainNamespace));
logger.info("Command executed to kill server inside pod, exit value {0}, stdout {1}, stderr {2}",
execResult.exitValue(), execResult.stdout(), execResult.stderr());
assertTrue(execResult.exitValue() == 0,
String.format("Failed to execute kill server inside pod, stderr %s stdout %s", destLocation,
execResult.stderr(), execResult.stdout()));
Expand Down Expand Up @@ -1490,6 +1492,9 @@ private File createScriptToKillServer() throws IOException {
killServerScript.deleteOnExit();
try (FileWriter fw = new FileWriter(killServerScript)) {
fw.write("#!/bin/bash\n");
fw.write("jps\n");
fw.write("jps | grep Server\n");
fw.write("jps | grep Server | awk '{print $1}'\n");
fw.write("kill -9 `jps | grep Server | awk '{print $1}'`");
}
killServerScript.setExecutable(true, false);
Expand Down