Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
package org.apache.karaf.itests.ssh;

import org.junit.Assume;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.junit.PaxExam;
Expand All @@ -32,6 +33,11 @@ public class BundleSshCommandSecurityTest extends SshCommandTestBase {

@Test
public void testBundleCommandSecurityViaSsh() throws Exception {
// Skip on Windows where PTY output can be garbled,
// when upgrading to Junit5, this can be replaced with @DisabledOnOs(OS.WINDOWS)
// TODO: remove this once we have a better solution for PTY output on Windows
Assume.assumeFalse(System.getProperty("os.name", "").toLowerCase().contains("win"));

String manageruser = "man" + System.nanoTime() + "_" + counter++;
String vieweruser = "view" + System.nanoTime() + "_" + counter++;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
package org.apache.karaf.itests.ssh;

import org.junit.Assume;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.junit.PaxExam;
Expand All @@ -33,6 +34,10 @@ public class ConfigSshCommandSecurityTest extends SshCommandTestBase {

@Test
public void testConfigCommandSecurityViaSsh() throws Exception {
// Skip on Windows where PTY output can be garbled,
// when upgrading to Junit5, this can be replaced with @DisabledOnOs(OS.WINDOWS)
// TODO: remove this once we have a better solution for PTY output on Windows
Assume.assumeFalse(System.getProperty("os.name", "").toLowerCase().contains("win"));
String manageruser = "man" + System.nanoTime() + "_" + counter++;
String vieweruser = "view" + System.nanoTime() + "_" + counter++;

Expand Down Expand Up @@ -90,6 +95,11 @@ private void testConfigEdits(String user, Result expectedEditResult, String pid,

@Test
public void testConfigCommandSecurityWithoutEditSessionViaSsh() throws Exception {
// Skip on Windows where PTY output can be garbled,
// when upgrading to Junit5, this can be replaced with @DisabledOnOs(OS.WINDOWS)
// TODO: remove this once we have a better solution for PTY output on Windows
Assume.assumeFalse(System.getProperty("os.name", "").toLowerCase().contains("win"));

String manageruser = "man" + System.nanoTime() + "_" + counter++;
String vieweruser = "view" + System.nanoTime() + "_" + counter++;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.apache.karaf.itests.ssh;

import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;

/**
Expand All @@ -26,6 +27,11 @@ public class FeatureSshCommandSecurityTest extends SshCommandTestBase {

@Test
public void testFeatureCommandSecurityViaSsh() throws Exception {
// Skip on Windows where PTY output can be garbled,
// when upgrading to Junit5, this can be replaced with @DisabledOnOs(OS.WINDOWS)
// TODO: remove this once we have a better solution for PTY output on Windows
Assume.assumeFalse(System.getProperty("os.name", "").toLowerCase().contains("win"));

String vieweruser = "viewer" + System.nanoTime() + "_features";
String feature = "wrapper";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Assume;
import org.junit.Test;

/**
Expand All @@ -27,6 +28,10 @@ public class JaasSshCommandSecurityTest extends SshCommandTestBase {

@Test
public void testJaasCommandSecurityViaSsh() throws Exception {
// Skip on Windows where PTY output can be garbled,
// when upgrading to Junit5, this can be replaced with @DisabledOnOs(OS.WINDOWS)
// TODO: remove this once we have a better solution for PTY output on Windows

String vieweruser = "viewer" + System.nanoTime() + "_jaas";

addViewer(vieweruser);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.apache.karaf.itests.ssh;

import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.junit.PaxExam;
Expand All @@ -31,6 +32,11 @@ public class SystemCommandSecurityTest extends SshCommandTestBase {

@Test
public void testSystemCommandSecurityViaSsh() throws Exception {
// Skip on Windows where PTY output can be garbled,
// when upgrading to Junit5, this can be replaced with @DisabledOnOs(OS.WINDOWS)
// TODO: remove this once we have a better solution for PTY output on Windows
Assume.assumeFalse(System.getProperty("os.name", "").toLowerCase().contains("win"));

String manageruser = "man" + System.nanoTime() + "_" + counter++;
String vieweruser = "view" + System.nanoTime() + "_" + counter++;

Expand Down