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;
}
Aggregations