use of org.testng.reporters.Files in project che-server by eclipse-che.
the class KubernetesEnvironmentProvisionerTest method setUp.
@BeforeMethod
public void setUp() {
workspaceConfig = new WorkspaceConfigImpl();
// "openshift" is what we use in the test devfile files and what we need to test the upgrade
// and multiple k8s-based types
Map<String, Set<String>> allowedUpgrades = new HashMap<>();
allowedUpgrades.compute("openshift", (__, ___) -> new HashSet<>()).add(KubernetesEnvironment.TYPE);
Set<String> k8sEnvTypes = new HashSet<>();
k8sEnvTypes.add(KubernetesEnvironment.TYPE);
k8sEnvTypes.add("openshift");
k8sEnvProvisioner = new KubernetesEnvironmentProvisioner(k8sRecipeParser, allowedUpgrades, k8sEnvTypes);
}
use of org.testng.reporters.Files in project devspaces-images by redhat-developer.
the class KubernetesEnvironmentProvisionerTest method setUp.
@BeforeMethod
public void setUp() {
workspaceConfig = new WorkspaceConfigImpl();
// "openshift" is what we use in the test devfile files and what we need to test the upgrade
// and multiple k8s-based types
Map<String, Set<String>> allowedUpgrades = new HashMap<>();
allowedUpgrades.compute("openshift", (__, ___) -> new HashSet<>()).add(KubernetesEnvironment.TYPE);
Set<String> k8sEnvTypes = new HashSet<>();
k8sEnvTypes.add(KubernetesEnvironment.TYPE);
k8sEnvTypes.add("openshift");
k8sEnvProvisioner = new KubernetesEnvironmentProvisioner(k8sRecipeParser, allowedUpgrades, k8sEnvTypes);
}
Aggregations