@Override
    public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context) {
        Optional<EnabledInInstances> annotation = AnnotationUtils.findAnnotation(context.getElement(), EnabledInInstances.class);
        if (annotation.isEmpty())
            return ConditionEvaluationResult.enabled(EnabledInInstances.class.getSimpleName() + " is not present");

        List<String> enablingInstances = List.of(annotation.get().value());
        String thisInstance = TestRuntime.get().application().instance();
        String reason = "Enabled in: %s. Current instance: %s.".formatted(enablingInstances.isEmpty() ? "no instances" : "instances " + String.join(", ", enablingInstances), thisInstance);
        return enablingInstances.contains(thisInstance) ? ConditionEvaluationResult.enabled(reason) : ConditionEvaluationResult.disabled(reason);
    }
One or more instances that this should be enabled in.
tenant-cd-api/src/main/java/ai/vespa/hosted/cd/EnabledInInstances.java