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

io.dekorate.testing.openshift.config.OpenshiftIntegrationTestConfig Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.testing.openshift.config;

import java.lang.Object;
import io.sundr.builder.annotations.Buildable;

@Buildable(builderPackage = "io.fabric8.kubernetes.api.builder") public class OpenshiftIntegrationTestConfig {

    private boolean deployEnabled = true;
    private boolean buildEnabled = true;
    private boolean pushEnabled = false;
    private long imageStreamTagTimeout = 120000;
    private long readinessTimeout = 300000;

    public OpenshiftIntegrationTestConfig() {
    }

    public OpenshiftIntegrationTestConfig(boolean deployEnabled,boolean buildEnabled,boolean pushEnabled,long imageStreamTagTimeout,long readinessTimeout) {
        this.deployEnabled = deployEnabled;
        this.buildEnabled = buildEnabled;
        this.pushEnabled = pushEnabled;
        this.imageStreamTagTimeout = imageStreamTagTimeout;
        this.readinessTimeout = readinessTimeout;
    }

    public boolean isDeployEnabled() {
        return this.deployEnabled;
    }

    public boolean isBuildEnabled() {
        return this.buildEnabled;
    }

    public boolean isPushEnabled() {
        return this.pushEnabled;
    }

    public long getImageStreamTagTimeout() {
        return this.imageStreamTagTimeout;
    }

    public long getReadinessTimeout() {
        return this.readinessTimeout;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OpenshiftIntegrationTestConfig that = (OpenshiftIntegrationTestConfig) o;
        if (deployEnabled != that.deployEnabled) return false;
        if (buildEnabled != that.buildEnabled) return false;
        if (pushEnabled != that.pushEnabled) return false;
        if (imageStreamTagTimeout != that.imageStreamTagTimeout) return false;
        if (readinessTimeout != that.readinessTimeout) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(deployEnabled,  buildEnabled,  pushEnabled,  imageStreamTagTimeout,  readinessTimeout,  super.hashCode());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy