All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.test.services.knative.eventing.OpenShiftExtensionFunqyKnativeEventsService Maven / Gradle / Ivy

package io.quarkus.test.services.knative.eventing;

import io.quarkus.test.bootstrap.ScenarioContext;
import io.quarkus.test.bootstrap.ServiceContext;

public class OpenShiftExtensionFunqyKnativeEventsService extends FunqyKnativeEventsService {

    @Override
    public ServiceContext register(String serviceName, ScenarioContext context) {
        // we set deployment target and registry so that every test don't have to do it (and it's in one place)
        final String serviceScopePrefix = "ts." + serviceName;
        System.setProperty(serviceScopePrefix + ".quarkus.kubernetes.deployment-target", "knative");
        System.setProperty(serviceScopePrefix + ".quarkus.container-image.registry",
                "image-registry.openshift-image-registry.svc:5000");
        return super.register(serviceName, context);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy