Search in sources :

Example 1 with TitusStackResource

use of com.netflix.titus.testkit.junit.master.TitusStackResource in project titus-control-plane by Netflix.

the class JobValidatorNegativeTest method getTitusStackResource.

private static TitusStackResource getTitusStackResource(AdmissionValidator<JobDescriptor> validator) {
    EmbeddedKubeCluster kubeCluster = EmbeddedKubeClusters.basicCluster(0);
    TitusStackResource titusStackResource = new TitusStackResource(EmbeddedTitusCell.aTitusCell().withMaster(EmbeddedTitusMasters.basicMasterWithKubeIntegration(kubeCluster).toBuilder().withCellName("cell-name").build()).withDefaultGateway().withJobValidator(validator).build());
    titusStackResource.before();
    return titusStackResource;
}
Also used : EmbeddedKubeCluster(com.netflix.titus.testkit.embedded.kube.EmbeddedKubeCluster) TitusStackResource(com.netflix.titus.testkit.junit.master.TitusStackResource)

Aggregations

EmbeddedKubeCluster (com.netflix.titus.testkit.embedded.kube.EmbeddedKubeCluster)1 TitusStackResource (com.netflix.titus.testkit.junit.master.TitusStackResource)1