use of org.entando.kubernetes.model.app.EntandoApp in project entando-k8s-controller-coordinator by entando-k8s.
the class EntandoOperatorMatcherTest method testOperatorIdActiveAndMatching.
@Test
void testOperatorIdActiveAndMatching() {
System.setProperty(ControllerCoordinatorProperty.ENTANDO_K8S_OPERATOR_ID.getJvmSystemProperty(), "myid");
EntandoApp entandoApp = new EntandoApp();
entandoApp.getMetadata().setAnnotations(Collections.singletonMap(AnnotationNames.OPERATOR_ID_ANNOTATION.getName(), "myid"));
assertTrue(EntandoOperatorMatcher.matchesThisOperator(entandoApp));
}
use of org.entando.kubernetes.model.app.EntandoApp in project entando-k8s-controller-coordinator by entando-k8s.
the class EntandoOperatorMatcherTest method testVersionRangeInactive.
@Test
void testVersionRangeInactive() {
EntandoApp entandoApp = new EntandoApp();
entandoApp.setApiVersion("entando.org/v1");
assertTrue(EntandoOperatorMatcher.matchesThisOperator(entandoApp));
}
Aggregations